HTTP Error 405 - The HTTP verb used to access this page is not allowed

I have a internal web site at our office. I want to have a form email the results of the employee request to a user in the office I use ms exchnage 2003. I have a form that is setup and it is ready to be used. From what i read, i have to give permission to allow this. This is the error i get:

The page cannot be displayed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
--------------------------------------------------------------------------------

Please try the following:

Contact the Web site administrator if you believe that this request should be allowed.
Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
steverpayneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

skca54Senior EngineerCommented:
In IIS Manager. Right click your site and select properties. Select Home Directory. Click Configuration. Select your application extension - i.e. .HTML. Click Edit. In Verbs check and make a note of what is set in Limit to. For now set Verbs to All verbs and see if youe site works. Let us know what Limit to was.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dnojcdCommented:
405 occurs when you try to post to a URL which is not having execute permission.as mentioned in the earlier post check by allowing all verbs.also give execute permission to "scripts" or"scripts and executables"
Dave_DietzCommented:
What is the 'action' of the form set to?

Dave Dietz
5 Ways Acronis Skyrockets Your Data Protection

Risks to data security are risks to business continuity. Businesses need to know what these risks look like – and where they can turn for help.
Check our newest E-Book and learn how you can differentiate your data protection business with advanced cloud solutions Acronis delivers

steverpayneAuthor Commented:
skca54,

There is nothing there for htm files. What do i need to add it to. It asks me to browse a file for dll and i dont see one for htm. what should i do?
skca54Senior EngineerCommented:
One thing to try - change the extension to .asp and see what happens.
steverpayneAuthor Commented:
the action on the form is to post. I tried to change it to asp but it wouldnt do it. nothing happens. any other suggestions?
skca54Senior EngineerCommented:
When you say 'wouldn't do it' - do you mean windows stopped you changing the extension?
steverpayneAuthor Commented:
when i run it, it just shows a white page in IE.
Dave_DietzCommented:
What I actually was wondering was are you POSTing to an actual file name or is it set to a directory name.

POSTing to directories hoping that the default document will get the POST doesn't work properly.

Dave Dietz
steverpayneAuthor Commented:
it is emailing to someone in the office.
Dave_DietzCommented:
Can you paste in the <form> tag line from the HTML page so we can see what you are trying to post to?

Dave Dietz
steverpayneAuthor Commented:
Here is the code:

<HTML>
<HEAD>
<TITLE>Leave Request beta</TITLE>
<META NAME="DESCRIPTION" CONTENT="Same day appointments.Insurance accepted and processed for you.
HMO’s are also accepted Medical records & explanations provided at each visit.
Prescription copies for your records Instant HIV/HSV 2/Syphilis Testing.
Immediate Routine Laboratory results. Our capable staff is courteous and friendly.
Parking available (call for reservations)">
<META NAME="KEYWORDS" CONTENT="pineda, ang, moskovitz, caceres, doctors, physicans, hiv, aids, std, lab, testing, medical records, medical, insurance, ppo, hmo, medicare, english, spanish, internal medicine, family medicine, urgent care,
endocrinology, women health, men, gastroenterology, cardiology, 202-667-5041, 1759 q street nw, 1759 q street nw, washington, dc, washington, dc, metro area, healthcare, dupont circle, hsv, herpes, blue cross/blue shield, aetna, cigna, mamsi, carefirst, alliance ppo, phcs, united, healthcare">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<div align="center">
  <p>
    <script type="text/javascript" src="milonic_src.js"></script>
  </p>
  <noscript>
  </noscript>
  <p>
    <script type="text/javascript">
<!--
if(ns4)_d.write("<script language=JavaScript src=mmenuns4.js><\/script>");
else _d.write("<script language=JavaScript src=mmenudom.js><\/script>");
-->
</script>
    <script type="text/javascript" src="menu_data.js"></script>
  </p>
  <p> </p>
   
  <p>&nbsp;</p>
  <p></p>
  <TABLE WIDTH=760 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <!--DWLayoutTable-->
    <TR>
      <TD COLSPAN=3> <img src="caclayout01.jpg" width=760 height=25 alt=""></TD>
    </TR>
    <TR>
      <TD colspan="2"> <IMG SRC="caclayout02.jpg" WIDTH=312 HEIGHT=117 ALT=""></TD>
      <TD width="448"><div align="center"><img src="images/logo.jpg" width="444" height="111"></div></TD>
    </TR>
    <TR>
      <TD COLSPAN=3 images="images/caclayout_final_04.jpg"><p><img src="caclayout04.jpg" width="760" height="35"></p>
        </TD>
    </TR>
    <TR>
      <TD width="124" height="501" valign="top"> <div align="center"><a href="index.htm"><img src="images/menu.gif" width="108" height="23" border="0"></a></div></TD>
      <TD COLSPAN=2 valign="top"><table width="100%" height="500" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="561" height="439" valign="top">
<div id=d9>
                <h3 align=center>LEAVE OF ABSENCE FORM</h3>
                <form action="aspmailer.asp" method="post" name="Leave" id="Leave">
                  <p>
                    <input name="request_leave" type="checkbox" id="request_leave" value="leaverequest">
                    I am hereby Requesting leave</p>
                  <table width="69%" border="0" align="center">
                    <tr>
                      <td width="13%"><strong>For:</strong></td>
                      <td width="31%"><p>
                          <input name="hr1" type="text" id="hr1" size="5">
                          /
                          <input name="days1" type="text" id="days1" size="5">
                        </p>
                        <p>Hr/Days</p></td>
                      <td width="3%"><strong>From:</strong></td>
                      <td width="22%"><p>
                          <input name="hr2" type="text" id="hr2" size="5">
                          /
                          <input name="date" type="text" id="date" size="5">
                        </p>
                        <p>Hr/Date</p></td>
                      <td width="31%"><p>To:
                          <input name="hr3" type="text" id="hr3" size="5">
                          /
                          <input name="date2" type="text" id="date2" size="5">
                        </p>
                        <p align="left">Hr/Date</p></td>
                    </tr>
                  </table>
                  <p>&nbsp;</p><table width="76%" border="0" align="center">
                    <tr>
                      <td width="20%" height="179"><strong>On:</strong></td>
                      <td width="25%"><p>
                          <input name="mon" type="checkbox" id="mon" value="checkbox">
                          Monday</p>
                        <p>
                          <input name="tues" type="checkbox" id="tues" value="checkbox">
                          Tuesday </p>
                        <p>
                          <input name="wed" type="checkbox" id="wed" value="checkbox">
                          Wednesday</p>
                        <p>
                          <input name="thur" type="checkbox" id="thur" value="checkbox">
                          Thursday</p>
                        <p>
                          <input name="fri" type="checkbox" id="fri" value="checkbox">
                          Friday</p>
                        </td>
                      <td width="55%"><p>Date:
                          <input name="ondate" type="text" id="ondate">
                        </p>
                        <p>&nbsp; </p>
                        <p>&nbsp;</p></td>
                    </tr>
                  </table>
                  <p>I will be covered by:
                    <select name="coveredby" id="coveredby">
                      <option>Choose One</option>
                      <option>Cesar A Caceres</option>
                      <option>Joel Ang</option>
                      <option>meles Awalome</option>
                      <option>Gary Clark</option>
                      <option>Sandra Duran</option>
                      <option>Greg Eaheart</option>
                      <option>Brent Ferrell</option>
                      <option>Jose Guzman</option>
                      <option>Harrial Hayward</option>
                      <option>Stanley Kuliczkowski</option>
                      <option>Alvaro Maldonado</option>
                      <option>marriama Monroe</option>
                      <option>David Pacheco</option>
                      <option>Steve Payne</option>
                      <option>Jermaine Richardson</option>
                      <option>Jacquwline Schick</option>
                    </select>
                  </p>
                  <p>Employee Name:
                    <select name="employee" id="employee">
                      <option>Choose One</option>
                      <option>Cesar A Caceres</option>
                      <option>Joel Ang</option>
                      <option>meles Awalome</option>
                      <option>Gary Clark</option>
                      <option>Sandra Duran</option>
                      <option>Greg Eaheart</option>
                      <option>Brent Ferrell</option>
                      <option>Jose Guzman</option>
                      <option>Harrial Hayward</option>
                      <option>Stanley Kuliczkowski</option>
                      <option>Alvaro Maldonado</option>
                      <option>marriama Monroe</option>
                      <option>David Pacheco</option>
                      <option>Steve Payne</option>
                      <option>Jermaine Richardson</option>
                      <option>Jacquwline Schick</option>
                    </select>
                    Date:
                    <input name="date-covered" type="text" id="date-covered">
                  </p>
                  <p align="center">Approved By: ___________________________ Date:_____________________<br>
                    Joel C. Ang, MD<br>
                  </p>
                  <p>&nbsp;</p>
                  <p>
                    <input type="submit" name="Submit" value="Submit Request">
                  </p>
                </form>
                <p align=left>&nbsp;</p>
                <h3 align=center>
                 
                </h3>
               
              </div>
              <p align="center">&nbsp;</p>
              <p align="center">&nbsp;</p>
              <p align="center">&nbsp;</p>
              <h2 align="center">&nbsp;</h2>
              <h1 align="center">&nbsp;</h1>
              <p><br>
                <br>
              </p>
              </td>
          </tr>
        </table></TD>
    </TR>
    <TR>
      <TD COLSPAN=3> <IMG SRC="caclayout06.jpg" WIDTH=760 HEIGHT=46 ALT=""></TD>
    </TR>
    <TR>
      <TD COLSPAN=3> <div align="center">&copy; Copyright 2005-2006 All Rights
          Reserved. Clinical Systems Associates Inc.</div></TD>
    </TR>
    <tr>
      <td height="1"></td>
      <td width="188"></td>
      <td></td>
    </tr>
  </TABLE>
 
</div>
</BODY>
</HTML>
Dave_DietzCommented:
Check the application mapping for .asp and make sure that POST is an allowed verb.

Dave Dietz
steverpayneAuthor Commented:
it is all verbs.
ethar1Commented:
hi,
i was facing same problem , thanks guy for your efforts.
for security how can know the appropriate verb I should allow insted of all verbs.
please take a look at
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Q_24312066.html

thanks
TBWDEVELOPCommented:
"Properties" doesn't show up in IIS manager anymore.. How do I do this in Server 2008?
TBWDEVELOPCommented:
I found it, but I'm still getting the save error "405 - HTTP verb used to access this page is not allowed.
        Server Error   405 - HTTP verb used to access this page is not allowed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access."

What in the world am I doing wrong?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.