Solved

IIS 8.5 HTTP Error 405.0 Method Not Allowed

Posted on 2015-02-12
8
1,328 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 78

Expert Comment

by:David Johnson, CD, MVP
Comment Utility
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
Comment Utility
modify your web.config file with following:

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

Author Comment

by:schwientekd
Comment Utility
Praveen,

I modified web.config and no change.
0
 

Author Comment

by:schwientekd
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 4

Expert Comment

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

Author Comment

by:schwientekd
Comment Utility
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
Comment Utility
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
Comment Utility
Figured out the problem on my own.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article will review the basic installation and configuration for Windows Software Update Services (WSUS) in a Windows 2012 R2 environment.  WSUS is a Microsoft tool that allows administrators to manage and control updates to be approved and ins…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

771 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now