Web API on IIS 7.5 — 405 Method Not Allowed for PUT

PUT http://xxx.com/api/v1/loans/xxx/

I am getting a 405 Method Not Allowed error from my local IIS 7.5.  It works if running under VSDS.

When I use Fiddler Composer to send the request, I am getting error 405 and useful information back from IIS 7.5.

The key is to set up “Failed Request Tracking Rules”.  Here is how.

When I view the “FailedReqLogFiles”’s xml log in a browser, I can see the culprit, WebDAVModule:

image

So I uninstalled the Windows feature:

image

and now I can PUT.

Advertisements

One thought on “Web API on IIS 7.5 — 405 Method Not Allowed for PUT

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s