Tuesday, April 7, 2015

405 Method Not Allowed in my Web API

Today I went back to an existing project that I spend my time on and I started getting errors when doing PUTs to my Web API.  The errors didn't happen before, but I've now pulled down the latest code so something's changed.

I spent a while making looking over recent changes but couldn't find out why I was now getting 405 errors.  I ran across a few blog posts that mentioned the WebDAVModule.  I double checked my web.config on my UI project and my Web API project.  I found the following entry in my Web API, but not in my upper layer UI project.  Once it was in both projects, everything worked.

<remove name="WebDAVModule" />


No comments:

Post a Comment