I'm encounting a method now allowed exception when calling a controller action which accepts the Delete verb.
I thought the problem was that the HandlerMappings in IIS 7.0 were wrong and when I looked at:
ExtensionlessUrl-ISAPI-4.0_64bit
ExtensionlessUrl-ISAPI-4.0_32bit
ExtensionlessUrl-Integrated-4.0
Sure enough they didn't accept the DELETE verb. I added this to the list of Verbs but I am still getting an error so I'm at a loss as to why this is the case. Can anyone shed any light on this?
I discovered this issue was being caused by the WebDav module. I removed this from my web.config and this resolved the issue.
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule" />
</modules>
</system.webServer>
Hope this helps someone else!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With