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 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 @ http://stackoverflow.com/questions/16447751/sharepoint-2013-and-asp-net-webapi

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

1 Answer 1

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: https://spsignalr.codeplex.com/

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

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.