Solved

IIS 8.5 HTTP Error 405.0 Method Not Allowed

Posted on 2015-02-12
8
1,859 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 81

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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

734 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