Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

some how im developing ASp.net mvc application, the DELETE method work fine in VS server, but however, when i test it in an IIS. it's not working and absolutly return a 405 Error..

and currently, I dont know where and how i can get IIS allow my DELETE/PUT HTTP method in my application....

Can some one help me please?

share|improve this question
    
I don't have an answer, but also keep in mind that PUT/DELETE are not supported by some HTTP proxies, so you might want to use other methods. –  Dario Solera Nov 19 '09 at 12:35
    
maybe i will implement the POST with extra field if there's no other way around this problem... :) –  DucDigital Nov 19 '09 at 14:12
add comment

2 Answers 2

up vote 0 down vote accepted

Make sure that the account that your app is using has write access to the web site / virtual directory that your app is running in. It will also need write access to the folders at the filesystem level.

share|improve this answer
    
how can i set this? beside, im currently using asp.net mvc, so i think it's different than ASP.net form –  DucDigital Nov 19 '09 at 13:21
    
You'd set it in the IIS configuration, in the properties of your site / virtual directory. –  squillman Nov 19 '09 at 14:45
    
Note that it's not common for admins to enable write access. Like you say in your comment, you would probably be better off using filesystem objects in your app to work with the filesystem if this is any kind of app that will be used widely in various environments. –  squillman Nov 19 '09 at 14:50
add comment

You can try your HTTP delete method with this http request generator ; Enter the url -> select delete method -> insert to post section the xml (only if needed) -> press send request. You will get detailed report about your request

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.