Link to home
Start Free TrialLog in
Avatar of steverpayne
steverpayneFlag for United States of America

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of skca54
skca54
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of dnojcd
dnojcd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What is the 'action' of the form set to?

Dave Dietz
Avatar of steverpayne

ASKER

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?
One thing to try - change the extension to .asp and see what happens.
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?
When you say 'wouldn't do it' - do you mean windows stopped you changing the extension?
when i run it, it just shows a white page in IE.
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
it is emailing to someone in the office.
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
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>
Check the application mapping for .asp and make sure that POST is an allowed verb.

Dave Dietz
it is all verbs.
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
https://www.experts-exchange.com/questions/24312066/HTTP-Error-405-The-HTTP-verb-used-to-access-this-page-is-not-allowed.html

thanks
Avatar of TBWDEVELOP
TBWDEVELOP

"Properties" doesn't show up in IIS manager anymore.. How do I do this in Server 2008?
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?