ASP.NET Web API - PUT & DELETE Verbs Not Allowed - IIS 8

前端 未结 19 2369
Happy的楠姐
Happy的楠姐 2020-11-22 05:16

I recently upgraded from Visual Studio 2010 to the Visual Studio 2012 RC. The installer also installs IIS 8 Express which Visual Studio now uses as the default web server.

19条回答
  •  我在风中等你
    2020-11-22 06:07

    I am using an ashx file in an MVC application and none of the above answers worked for me. IIS 10.

    Here's what did work. Instead of changing "ExtensionlessUrl-Integrated-4.0" in IIS or web.config I changed "SimpleHandlerFactory-Integrated-4.0" for "*.ashx" files:

    
    

提交回复
热议问题