PUT and DELETE get 404 in WCF REST.net 4 service when working in IIS 6.0

I added a wildcard mapping for c: \ windows \ microsoft.net \ framework \ v4.0.30319 \ aspnet_isapi.dll and unchecked the check that the file exists. This gives me the possibility of GET and POST, but not PUT and DELETE.

I have disabled and enabled WebDav under web service extensions.

The application works like a champion while working in a development environment. PUT and DELETE do not work when starting the application in IIS.

Any help is appreciated.

+4
source share
2 answers

Are additional verbs defined in the ISAPI extension that are associated with WCF?
To do this, open IIS and edit the website properties. From their click on the Home Directory tab, and then the configuration button. On the mappings tab, find the appropriate extensions and double-click on it. In a new window, you will find a field called "Limit To" that should have the HTTP tags that you want to use.

+3
source

An old question, but there is a potential solution:

Make sure you do not have http://www.iis.net/downloads/microsoft/urlscan , by default it prohibits PUT and DELETE among other verbs.

0
source

All Articles