Natasha
Natasha

Reputation: 973

Enable PUT and DELETE requests in ASP.NET MVC app for Windows 10?

I have ASP.NET MVC website (4.5). I try to run this application under Visual Studio 2015 and get the "Page not found" exception on PUT and DELETE requests.

How to enable these requests?

Upvotes: 1

Views: 742

Answers (1)

Ph0en1x
Ph0en1x

Reputation: 10067

If you want to do this for some solution, in solution root it will be .vs\config folder and applicationhost.config file. In this file you need to add PUT and DELETE verbs for ExtensionlessUrl-Integrated-4.0 module, like that

<add name="ExtensionlessUrl-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" responseBufferLimit="0" />

However I think there is should be nicer way to do that via UI, but I don't have Win 10 installed so can't check now. Will be good if some one else tell how.

Upvotes: 4

Related Questions