Sharepoint 2010 Custom WCF Service

I am trying to create a custom WCF service and host it in Sharepoint 2010. I found a way to do this here:

http://msdn.microsoft.com/en-us/library/ff521581.aspx

The problem is the attribute "BasicHttpBindingServiceMetadataExchangeEndpointAttribute", which should be located in Microsoft.Sharepoint.Client.Services.

But I could not find the dll file or attribute. There is little information on the Internet about this.

Does anyone know where I can get this dll from, or does anyone have a link to a good howot or tutorial on how to create WCF services on Sharepoint?

Thanks in advance.

+6
wcf sharepoint-2010
source share
1 answer

I also ran into this problem. The answer is in the tutorial, but I missed it.

To add a link to the Microsoft.SharePoint.Client.ServerRuntime that contains the services provided by the SharePoint Foundation, use the Browse tab of the Add Link window to browse to the Microsoft.SharePoint.Client.ServerRuntime.dll file inside% Windows% \ assembly \ GAC_MSIL \ Microsoft.SharePoint.Client.ServerRuntime, select the DLL and click OK.

Then you will need to use Microsoft.SharePoint.Client.Services; above the attribute. I have no reference to this namespace using the using statement alone. Also make sure you have the microsoft.sharepoint.client and microsoft.sharepoint.client.serverruntime files I am stuck after deploying myself. I got 404 errors and could not add a link to the service to check it. If you find a fix, email me mondo at shaw.ca thanks and good luck!

+6
source share

All Articles