DELETE method .NET WebAPI does not work

后端 未结 3 2119
一整个雨季
一整个雨季 2021-01-15 06:15

I\'ve seen tons of posts about this, but the DELETE method of my new WebAPI simply does not work and returns a 404, using Windows 7 32-bit, IIS 7.5.

I\'ve tried

3条回答
  •  醉话见心
    2021-01-15 07:05

    The Solution is to add PUT & DELETE verb in correct applicationHost.config file.

    For IIS :

    Go to lcation: C:\Windows\System32\inetsrv\config and edit the applicationHost.config file as:

     
      
        
    

    For IIS EXPRESS GO TO : %userprofile%\documents\iisexpress\config\ and do the same in applicationHost.config file.

提交回复
热议问题