“405 method not allowed” in IIS7.5 for “PUT” method

后端 未结 20 2165
情深已故
情深已故 2020-11-28 02:15

I use WebClient type to upload *.cab files to my server. On the server side, I registered a HTTP handler for *.cab file with the PUT method as below:



        
20条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 03:10

    Often this error is caused by the WebDAV module that try to handle this kind of requests. An easy solution is to remove it from modules and from handlers of the system.webServer section just inside your web.config file. Here a configuration example:

    
        
            
        
        
            
        
    
    

提交回复
热议问题