Microsoft KB Archive/942051

= Error message when a user visits a Web site that is hosted on a server that is running Internet Information Services 7.0: &quot;HTTP Error 405.0 - Method not allowed&quot; =

Article ID: 942051

Article Last Modified on 10/9/2007

-

APPLIES TO


 * Microsoft Internet Information Services 7.0

-



SYMPTOMS
Consider the following scenario. You have a Web site that is hosted on a server that is running Internet Information Services (IIS) 7.0. When a user visits this Web site, the user receives an error message that resembles the following error message:

Server Error in Application &quot; &quot;

HTTP Error 405.0 - Method not allowed

HRESULT: 0x80070001

Description of HRESULT

The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.



Cause 1
This problem occurs because the client makes an HTTP request by using an HTTP method that does not comply with the HTTP specifications. To resolve this problem, see Resolution 1.

Cause 2
This problem occurs because a client makes an HTTP request by sending the POST method to a static HTML page. Static HTML pages do not support the POST method. To resolve this problem, see Resolution 2.



Resolution 1
Make sure that the client sends a request that contains a valid HTTP method. To do this, follow these steps:
 * 1) Click Start, type Notepad in the Start Search box, right-click Notepad, and then click Run as administrator.

Note If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.
 * 1) On the File menu, click Open. In the File name box, type %windir%\system32\inetsrv\config\applicationhost.config, and then click Open.
 * 2) In the ApplicationHost.config file, locate the   tag.
 * 3) Make sure that all the handlers use valid HTTP methods.
 * 4) Save the ApplicationHost.config file.

Resolution 2
Instead of making the HTTP request to a static HTML page, make the HTTP request by sending the POST method to an Active Server Pages (ASP) page.

Keywords: kbexpertiseadvanced kbtshoot kbprb KB942051

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.