405 - HTTP verb used to access this page is not allowed
Posted on 2014-10-30
We are in the process of moving our Intranet from a machine running Windows Server 2003 to a virtual machine running Windows Server 2012 R2. The Intranet was created by a vendor who is no longer in business. Most of it consist of classic asp pages and for the most part it runs fine on the new machine.
It has a asp page with a form on it that should allows users to upload files. It works on the old server but not on the new one. On the new one we get the error in the title of this post. The pertinent HTML code is below.
<form method="POST" action="upload_action.aspx?folder=<%=request("folder")%>"enctype="multipart/form-data">
<input type="FILE" name="FILE1" size="50"/>
<input type="SUBMIT" value="Upload"/>
It should post to a aspx file but it never gets there. As soon as the button is click the error page comes up.
In IIS under Request Filtering for the Default Web Site in the HTTP Verbs tab I've added the verb "POST" and set Allowed to "True"
On the File Name Extension tab I've added ".aspx" and set allowed to true.
Any suggestions would be greatly appreciated.