Some of our users sometimes experience this issue when publishing Single-Page Application into production upon a Windows Server. The following is error message that you see:
Error 405 – Methods not Allowed
Solution for the Problem
To do this open up your web.config file. There are 2 web.config files in your project – The one you want to open is the one inside the wwwroot folder.
Inside the web.config add the following 3 lines inside the already existing system.webServer node:
<system.webServer> <modules runAllManagedModulesForAllRequests="false"> <remove name="WebDAVModule" /> </modules> </system.webServer>
Now just save your file and publish changes to your live site.
Javier is Content Specialist and also .NET developer. He writes helpful guides and articles, assist with other marketing and .NET community work