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

前端 未结 19 1900
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:17

    I am not sure if you have edited right configuration file. Try following steps

    1. open %userprofile%\ducuments\iisexpress\config\applicationhost.config

    2. By default bellow given entries are commented in the applicationhost.config file. uncomment these entries.

    <add name="WebDAVModule" image="%IIS_BIN%\webdav.dll" />
    
    
    <add name="WebDAVModule" />
    
    <add name="WebDAV" path="*"
     verb="PROPFIND,PROPPATCH,MKCOL,PUT,COPY,DELETE,MOVE,LOCK,UNLOCK"
     modules="WebDAVModule" resourceType="Unspecified" requireAccess="None"
     />
    
    0 讨论(0)
提交回复
热议问题