I've followed this tutorial and also this one (tried every possible combination of those) to deploy a custom WCF service in Sharepoint 2010.
But I'm not having any luck. Once the service is deployed, I tried to access it and get the annoying and undescriptive error:
XML Parsing Error: no element found
Location: http://mysharepointsite/_vti_bin/folder/service.svc
Line Number 1, Column 1:
I can't find any description of it. There's nothing in the event log.
Any ideas?
Thank you
UPDATE
The .svc file contains the following:
<%@ServiceHost Language="C#" Debug="true"
Service="MyNamespace.MyServiceClass, $SharePoint.Project.AssemblyFullName$"
Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressBasicHttpBindingServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
I've added the .svc extension to the replaceToken section in the .csproj to get the $SharePoint.Project.AssemblyFullName$
replaced by the actual assembly full name.