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 would like to use ASP.NET WebApi inside a SharePoint 2013 farm solution.

I know it is not supported out-of-the-box, but I found SignalR can be run by means of a simple HttpModule, so I was wondering whether a similar appoach could be used.

Thanks in advance, Rich

Cross Post @

Update 1 I wrote a module to map HttpRoutes similar to the one in the referenced article:

  • When turned OFF, I get a 404 - Not Found (which is OK)
  • When turned ON, I get a 401 - Unauthorized from SharePoint

No matter which controller&action I pick.

My guess is WebApi should be integrated somehow with SharePoint security. Tips?

share|improve this question

Did you implement a virtual path provider like written in my blog post mentioned above? If not, you need one.

Edit: You can see the sourcecode here:

share|improve this answer
Can you please add more details about how to do what you propose? – Robert Lindgren Nov 13 '13 at 6:47

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.