0

I am having problem with a call to:

[HttpDelete]
public IHttpActionResult DeleteFile(Guid appendixId, Guid? storageId)

The routing seems okey but get get "405 Method Not Allowed".

I am wondering if there is a way to hock in to web api to catch the call as early as possible. That way I can know what might be wrong. Anyone know a way?

The problem seems not to be in the code. Is seems to be somewhere else. The reason for this is that I shelved and a colleague ran the exact same code and it worked. What on my machine could give this kind of error?

MichaelGul
  • 49
  • 6

1 Answers1

0

if you trying on iis express

open

%userprofile%\documents\IISExpress\config\applicationhost.config

and add DELETE verb to ExtensionlessUrl tag.

levent
  • 3,464
  • 1
  • 12
  • 22