popped up error message as "Unable to start debugging on the web server. The remote server returned an error: (405) Method Not Allowed." when running ASP.net web project on Microsoft visual studio 2017. This error is due to the IIS Installation and configuration on the machine.
To resolve the issue, need to update the IIS installation with some selected windows features as below mentioned in windows features pop up.
Go to control panel on your windows machine.
Click on Programs link.
Click on Programs and Features link.
Click Turn Windows fetures on or off option link on left side of above mentioned window.
In Windows Features pop up window, Choose all the items related to web server and ASP.net under Internet Information Services.
Web Management Tools
World wide web services
Select Internet Information Services Hostable web core
Click on ok and proceed to update once selected above mentioned options on windows features pop up.
Once installed all the IIS windows features, reset the iis using iisreset command on command promt as administrator.
C:\Windows\system32>iisreset Attempting stop... Internet services successfully stopped Attempting start... Internet services successfully restarted
Try to run again the asp.net web application.