I have an action on my Email Web API 2 controller:
[Authorize] [RoutePrefix("api/Email")] public class EmailController : ApiController {
When I call an action from Fiddler using DELETE http://localhost:35191/api/Email/Remove/35571 (or any other method), I get back 500 with a common IIS error page that does not give me any error information.
It seems like an error occurs before my action has ever been called, because setting a breakpoint in the action causes the breakpoint to never hit.
Is there some kind of configuration needed to use DELETE methods in IIS (Express)?
I tried explicitly allowing DELETE in my web.config:
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
but to no avail.
source share