Solved

IIS 8.5 HTTP Error 405.0 Method Not Allowed

Posted on 2015-02-12
8
1,593 Views
Last Modified: 2015-02-17
I am moving a website from Server 2003 to Server 2012.  This is the page:

Partial Class Qredirect
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        For i As Integer = 0 To Request.Form.Count - 1
            Session(Request.Form.GetKey(i)) = Request.Form(i).ToString()
        Next
        Server.Transfer(Session("DestPage").ToString(), True)
    End Sub

End Class

_________________________________________________________________

This is the error page:

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.Most likely causes:
The request sent to the Web server used an HTTP verb that is not allowed by the module configured to handle the request.
A request was sent to the server that contained an invalid HTTP verb.
The request is for static content and contains an HTTP verb other than GET or HEAD.
A request was sent to a virtual directory using the HTTP verb POST and the default document is a static file that does not support HTTP verbs other than GET or HEAD.
 Things you can try:
Verify the list of verbs enabled for the module handler this request was sent to, and ensure that this verb should be allowed for the Web site.
Check the IIS log file to see which verb is not allowed for the request.
Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.
 Detailed Error Information:
Module    StaticFileModule
Notification    ExecuteRequestHandler
Handler    StaticFile
Error Code    0x80070001

____________________________________________________________________

It looks like the StaticFile handler is the problem.  I tried changing the permissions and restrictions in IIS but that hasn't worked.
0
Comment
Question by:schwientekd
  • 5
  • 2
8 Comments
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 40606099
Make sure that the client sends a request that contains a valid HTTP method. To do this, follow these steps:

    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 provide confirmation. On the File menu, click Open. In the File name box, type %windir%\system32\inetsrv\config\applicationhost.config, and then click Open.
    In the ApplicationHost.config file, locate the <handlers> tag.     Make sure that all the handlers use valid HTTP methods. Save the applicationHost.config file.

Resolution 2
Send the POST request to a page that is configured to be handled by a handler other than the StaticFile handler (for example, the ASPClassic handler). Or, change the request that is being handled by the StaticFile handler so that it is a GET request instead of a POST request.

source: http://bit.ly/1AfJv7X
0
 
LVL 4

Expert Comment

by:Praveen Kumar Bonala
ID: 40606142
modify your web.config file with following:

 <system.webServer>
    <modules>
    <remove name="WebDAVModule" />
    </modules>
  </system.webServer>
0
 

Author Comment

by:schwientekd
ID: 40606155
Praveen,

I modified web.config and no change.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:schwientekd
ID: 40606162
David,

I am not familiar with how to make sure that all the handlers use valid HTTP methods in the applicationHost.config file.  The site works in Server 2003 so wondering if there is some IIS default in Server 2012 that is different?
0
 
LVL 4

Expert Comment

by:Praveen Kumar Bonala
ID: 40606185
Can you please check IIS log, and let me know the error clearly from log file.
0
 

Author Comment

by:schwientekd
ID: 40606365
This is the last line in the log file.

2015-02-12 18:58:13 192.168.100.10 POST /YEQ/Qredirect.aspx - 443 - 192.168.100.69 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/40.0.2214.111+Safari/537.36 https://vm-tampa/redirect/Yeq-session-redirect-qnew1.asp?PlanYear=2015 405 0 1 31
0
 

Accepted Solution

by:
schwientekd earned 0 total points
ID: 40606636
I got past this error by installing all options in Roles and Features | Web Server (IIS) | Web Server | Application Development.  I should have done them one by one to figure out which was missing but I think it may have been .NET Extensibility.  Now I have a different error coming up but this one seems to be resolved.
0
 

Author Closing Comment

by:schwientekd
ID: 40613813
Figured out the problem on my own.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
A procedure for exporting installed hotfix details of remote computers using powershell
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question