ASP.NET MVC2 Web App 405 error with PUT verb

Discussion in 'ASP.NET / ASP.NET Core' started by jmarver, Dec 21, 2010.

  1. Sorry if this has already been answered but I'm trying to find out how to configure IIS 7 to allow my MVC2 Web app to allow a PUT verb to be executed. Right now, any time I use a PUT verb I get a 405 method not allowed code returned.

    It's my understanding that I need to configure a Handler Mapping using IIS 7 manager but I'm not sure what Handler Mapping to configure. Or, do I create a new one for MVC2 Apps?

    Any help would be greatly appreciated.
     
  2. Found the answer by posting my question on Stack Overflow. Apparently, the WebDAVModule in IIS 7 was intercepting the PUT verb before my MVC2 controller could get at it and was passing back the 405 error. After adding

    <remove name="WebDAVModule"/>

    to the web.config the PUT verb started working again. Thanks again, Victor!
     
  3. Cool...More people should use that site, many good Devs hang out there.
     
  4. mjp

    mjp

    Stack Overflow?

    I prefer Snack Overflow. But I see that site still needs some work. ;)
     
  5. OMG! OMG! OMG! The first thing I saw was Ding Dongs!
     
  6. mjp

    mjp

    So I see which side of that debate you are on. You're a Ding Dong man. That's fine. I lean toward Ho-hos, but hey, I still respect you.




    With apologies to jmarver for the thread hijacking.
     

Share This Page