ASP.NET Web Api in Web forms

前端 未结 1 1912
失恋的感觉
失恋的感觉 2021-01-01 00:27

i´m trying to use the asp.net web api in WEB FORMS with visual studio 2010 (sp1) i have done this steps http://myrandomykien.blogspot.com/2012/02/simplest-web-api-site-with-

相关标签:
1条回答
  • 2021-01-01 01:04

    You have to make sure that extensionless requests are routed to ASP.NET which is done by default by your development server but not IIS.

    There are couple of possible approaches.

    First, you could add runAllManagedModulesForAllRequests="true" in the modules section of the system.webServer. Some people claim there are better methods, you can then follow them:

    http://www.britishdeveloper.co.uk/2010/06/dont-use-modules-runallmanagedmodulesfo.html

    0 讨论(0)
提交回复
热议问题