I would like to add a custom OData endpoint to SharePoint 2010.
Because of its dependency on .NET 4.0, the Web API OData provider is currently not an option for SharePoint 2010 (based on .NET 3.5). Therefore I am attempting to use the WCF Data Services Toolkit even though it is a 'dead' project (last update was May 2011).
I followed these instructions which rely on the Microsoft.SharePoint.Client.ServerRuntime to provide the hosting support alleviating the need to modify web.config. However, after deploying my SharePoint WSP to my server, and trying to access the new WCF service, I get the following error:
The type 'Company.Services.CapturxData, CapturxOData, Version=184.108.40.206, Culture=neutral, PublicKeyToken=590c8a9e4250b98a', provided as the Service attribute value in the ServiceHost directive could not be found.
even though the CapturxOData assembly is loaded into the W3WP.exe process and the type is correctly referenced in my CapturxData.svc file:
<%@ ServiceHost Language="C#" Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressDataServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=220.127.116.11, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Service="Company.Services.CapturxData, $SharePoint.Project.AssemblyFullName$" %>
Are there additional configuration steps or configuration options to be set for this scenario to work? Or is there another way to add a custom OData provider to SharePoint 2010?