SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am converting a feature from SharePoint 2010 to SharePoint 2013. Part of my project is to convert my feature from the old style manifest, ddf, makecab method to the newer Visual Studio SharePoint project with mapped folders. In our old implementation, we hosted all of our files in 14/TEMPLATE/FEATURES/PROJ and made virtual directories in IIS through code to access our WCF services. I'm now trying to eliminate our need for IIS virtual folders by deploying our WCF to 15/ISAPI/PROJ.

When I add myservice.svc to 15/ISAPI/PROJ, and try to access it from http://myserver/_vti_bin/PROJ/myservice.svc, I get redirected to /_layouts/15/AccessDenied.aspx. I thought that maybe my problem was that I need to add a web.config to ISAPI/PROJ (we never needed one with the IIS virtual directory, so I never thought to add it here). When I add the web.config and debug the Silverlight code that calls the service, I get a Not Found error on the async _completed call.

My SVC file looks like this:

<%@ ServiceHost Language="C#" Debug="true" Service="Project.WCF.WCFServices.WorkFlowData" CodeBehind="WorkFlowData.svc.cs" %>

What can I do to get this to work?

share|improve this question
up vote 3 down vote accepted

I think you might need to use the SharePoint provided ServiceHostFactory to create the appropriate endpoints for your service.

Look at this tutorial for the Service Host Factories available:

  • SOAP = MultipleBaseAddressBasicHttpBindingServiceHostFactory

  • REST = MultipleBaseAddressWebServiceHostFactory

  • Data Service = MultipleBaseAddressDataServiceHostFactory

share|improve this answer
we're currently creating endpoints dynamically in Silverlight, but I will take a look at this. – coder1 Apr 25 '13 at 20:24
When I use a factory, I get Endpoint not found. – coder1 Apr 29 '13 at 19:30
The link is broken :( – Anatoly Mironov Nov 27 '13 at 9:02
Thanks, updated. – James Love Nov 27 '13 at 12:27

Your Answer


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.