Exception – HTTP Error 405.0 – Method Not Allowed: The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used

Sathish Nadarajan
 
Solution Architect
June 29, 2017
 
Rate this article
 
Views
14634

This is a very common exception, everyone will be facing while configuring the IIS for the first time. I was creating a VM and configuring the IIS on it. After completing all the configuration steps, I was hosting a Web Application. The default page, is loading if it is a HTML, Image etc.,

But, when I host a .Net Web Application or a SharePoint Provider Hosted Application, it throws exception – “The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.”

And the Screen looks below.

clip_image002

The fix for this is (actually it is not a fix, the step which we usually miss when configuring the IIS) enabling the Application Development on the “Manage Features” of the Server.

clip_image004

Make sure that all the items under “Application Development” has been checked and install. Now, come back to our site. Refresh the browser. The .NET application loads properly.

This is very simple, but definitely, we may miss this step during the first-time configuration and this will reduce our half an hour of search.

 

 

Happy Coding,

Sathish Nadarajan.

Category : Exception, IIS, SharePoint

Author Info

Sathish Nadarajan
 
Solution Architect
 
Rate this article
 
Sathish is a Microsoft MVP for SharePoint (Office Servers and Services) having 15+ years of experience in Microsoft Technologies. He holds a Masters Degree in Computer Aided Design and Business ...read more
 

Leave a comment