Posts

Showing posts from December, 2013

An error occurred while processing this request

Image
I recently started to develop a web form with knockout JS. The system is running on SharePoint 2010. The data given / taken  to  the form with JSON through WCF services. I had a problem, I did not want that the service will be expose to web. To prevent exposure, created casing in the SharePoint an Application Page. The WCF data services and any entity framework written in framework 4.5, and as you know that SharePoint 2010 and with the Application Page written in 3.5. This means that every reference to in the form of entity framework like linq or lambda expressions written in framework 3.5 - which created (and still creates) a lot of problems. I will present you one example of the problem we encounter - but Google unfortunately did not help. The following code in FW3.5 not working in Client Data Service if (ctx != null && ctx.UsersContext != null ) {      string username = "username" ;      var userList = ctx.UsersContext.Where(z => z.Code =