SharePoint: Getting “This collection already contains an address with scheme http” Error When Creating a Custom WCF Service

April 23, 2013

Problem: The problem is caused by the fact that IIS supports specifying multiple IIS bindings per site (which results in multiple base addresses per scheme, in our case HTTP), but a WCF service hosted under a site allows binding to only one base address per scheme. Multiple addresses example (in our case two): Solution: Create a custom service factory to intercept and remove the additional unwanted base addresses that IIS was providing. A) Add the custom service factory to your Custom.svc file   <%@ServiceHost language=c# Debug="true" Service="MySolution.Services.CustomService, $SharePoint.Project.AssemblyFullName$" Factory="MySolution.Core.CustomHostFactory", $SharePoint.Project.AssemblyFullName$ %> * Don’t forget to add the assembly full name: $SharePoint.Project.AssemblyFullName$ or you’ll get “The CLR Type...
no comments

Getting “Your query is malformed.Please rephrase your query” Error When Using FQL Query Keyword With Double Quotes

April 11, 2013

When trying to use FQL (Fast Query Language) query keyword with double quotes, for example: body: string(“”hello world””, mode=”and”) You’ll get “Your query is malformed.Please rephrase your query” Error.  Since FQL has a problem with double quotes, the trick is to use backslash (\) in front of the quotes,  for example: body: string(“\”hello world\””, mode=”and”) Hope this trick was helpful for you as it was for me.
no comments

I’m Speaking at Israel JavaScript Conference 2013 (js-il)

April 4, 2013

The Israel first JavaScript Conference - will take place on Tuesday, June 18, 2013. The topic of my session is: JavaScript UI Components As the HTML5 and JavaScript applications continues to gain incredible momentum and also the need for cross-platform development brought many companies like "Kendo UI" to realize that if they plan to stay in the game they need to re-invent them self's and offer developers a rich HTML, JavaScript framework to enhance their web development experience . In our lesson we'll discuss about why when and how we plan to use awesome UI Components like Charts, Trees, Graphs, Lists and...
no comments