Http 405 Method Not Allowed error - Web API Controller PUT Request AngularJs

4018
Views
2
Answers

I have a Http PUT AJAX call from AngularJs UI to Web API Put Request. This Request generates an Http 405 Method Not Allowed error.
Any Ideas?

edit | flag
William Patrick
Asked on: Mar 27, 2014 at 8:26PM

2 Answers

179
2
179

You can either uninstall WebDAV or remove it from the Handlers of the site, because the WebDAV module will block both the DELETE and PUT verbs for IIS.

You can DO something like this in Your Web.config file under WEbServer Section (excuse the Tag Formation)

system.webServer>
    modules
>
        remove name
="WebDAVModule" />
   
/modules>
    handlers
>
        remove name
="WebDAV" />
   
/handlers>
/system.webServer>
edit | flag
Gokul A
Answered on: Mar 27, 2014 at 8:29PM
181
0
181

Great man!!! Thanks!

edit | flag
ed rock
Answered on: Nov 14, 2014 at 12:41AM

Post your Answer

Search

Welcome to Ask Amoeba!
This is 100% free and interactive site for sharing professional Questions and Answers, Opensource projects, Interview questions.
Learners, beginners, Experts stop and share your knowledge and ideas!

Browse Categories

Browse Tags