Calling DELETE in a RESTful service gets cancelled in IISExpress
DELETE and IISExpress
I am working on a cross domain client/server solution with HTML5 and ASP.NET. When I finally got GET/POST/DELETE working, I switched from Cassini –the Visual Studio Development Server– to IISExpress. Suddenly DELETE stopped working. A quick inspection in Chrome showed me the request was cancelled:
My best guess is that IISExpress by default allows GET and POST only. I have no access to the target server so I had to find a solution within my project.
It turns out that adding this code to my web.config fixed my problem:
<system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer>
If you are stuck on the same problem, I hope it helps you too!