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

Tuesday, 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

How To Create A Windows 8 App For SharePoint Part 2 – The Development Stage

Sunday, September 30, 2012

  The Development Stage In my last post How To Create A Windows 8 App For SharePoint Part 1 – The Planning Stage we discussed about the reason I chose Windows 8 HTML5 as my development environment and why it’s the best and the most intuitive environment for SharePoint developers who plan to start creating Win8 apps. Today we will focus on developing our Win8 app and integrate it with SharePoint Online 2013. The app will serve as a search and use The new Search REST API to pull data from SharePoint 2013 Search engine (FAST) and display it in our app....

SharePoint 2013: Create a Metro Live Tile using MetroJS, JsRender and the new REST API

Saturday, August 11, 2012

Hi guys, One of the biggest changes made in SharePoint 2013 is the UI. And of course I’m talking about The Metro UI Style. We see it ,feel it and interact with it since Microsoft introduced Windows phone 7. and later on in Windows 8 etc... As stated on Wikipedia “A key design principle of Metro is better focus on the content of applications, relying more on typography and less on graphics ("content before chrome").” More and more websites are adopting the Metro UI Style, web sites like www.microsoft.com, www.touchality.com and www.mykindofphone.com. more examples you can find here. We will focus on the Metro...

SharePoint 2010: Long Polling technique using JQuery and WCF rest services example

Friday, June 15, 2012

Hi guys, In the world of web 2.0 we need to make our application (in our case SharePoint) more collaborative, interactive and responsive. that’s why I created a nice example that uses the Long Polling pattern to get us the real-time web applications experience like Gmail or Facebook has. In our example we’ll create a simple Like button that updates our custom list number field and increases it every time we click our button. below we create a label div that shows in real-time the number of likes. (in the end of my post you can download the sample...