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
SharePoint MVP
Published On :   29 Jun 2017
Visit Count
Today :  2    Total :   344
Plan, Migrate, Secure, Report
SharePoint & Office 365 Tool. Simple & Easy to Use. 15-Day Trial!

Sharegate: Kick-Ass Tool
Think Your SharePoint & Office 365 Are Secure ? Find Out Now!


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.

SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Categories

SharePoint Analytics