Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a VS2010 solution that has a few projects inside. One of them is a Sharepoint 2010 project that contains a WCF service generated from the CKS template.

I needed to migrate this solution to SP2013/VS2012 and so I did following this guide.

Everything seemed to went well (no errors in the migration report). But noticed that the Sharepoint project has an error in the WCF service.

In the MyService.svc.cs

[BasicHttpBindingServiceMetadataExchangeEndpoint]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
public class MyService : IMyService
{
// code...
}

The [BasicHttpBindingServiceMetadataExchangeEndpoint] attribute is not being found. In VS2010/SP2010 it was in Microsoft.SharePoint.Client.Services namespace. But now in VS2012/SP2013 there is no Services namespace inside Microsoft.SharePoint.Client so I can't compile the service. I can't find where that class is now, or if has been removed or renamed.

Have you been able to migrate a SP2010 WCF service to SP2013 with no problem? Any help?

Thank you

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

I found it. The missing DLL was in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.ServerRuntime.dll But wasn't registered on VS, so you need to manually browse to the file.

share|improve this answer
    
Same problem here and can confirm that emzero solution works. Thanks, you saved me some lost time searching for that missing reference. –  SPArchaeologist Sep 9 '13 at 10:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.