Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

1 view
Skip to first unread message

ontheRock

unread,
Jan 12, 2005, 9:28:57 AM1/12/05
to
Why am I getting an "HTTP Error 405 - The HTTP verb used to access this
page is not allowed. Internet Information Services (IIS)" error when
passing a form from html to cgi page? As a client, is there an IIS
setting that I need to change on my computer? or permissions?

Tom Kaminski [MVP] A@T D.O.T

unread,
Jan 12, 2005, 9:45:24 AM1/12/05
to
"ontheRock" <melly.o...@gmail.com> wrote in message
news:1105540137.7...@c13g2000cwb.googlegroups.com...

From the IIS MMC, are you allowing executables on the folder?


David Wang [Msft]

unread,
Jan 18, 2005, 5:08:54 AM1/18/05
to
The target URL which is receiving the form data must be considered "script"
or "executable" by IIS, or else you will get a 405.

In other words, if .htm is a static file, it makes no sense to POST to a
.htm because it's not as if the static file will do anything with the POST'd
dynamic data, so IIS returns 405. However, if the URL is an .ASP file or
.EXE/.DLL AND IIS is configured to allow scripts/executables execution
permission, THEN IIS considers the URLs OK to POST to.

I suspect that you either:
1. Did not declare the CGI page extension to be a ScriptMap
2. Did not allow Scripts/Executables execution option in the directory
containing the CGI page.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//


"ontheRock" <melly.o...@gmail.com> wrote in message
news:1105540137.7...@c13g2000cwb.googlegroups.com...

mbstone99

unread,
Feb 22, 2005, 11:09:23 AM2/22/05
to

> I suspect that you either:
> 1. Did not declare the CGI page extension to be a ScriptMap
> 2. Did not allow Scripts/Executables execution option in the
> directory
> containing the CGI page.
>

I am having the same issue here with that 405 error. We are running
IIS on a Win 2003 Server. I checked all the NT file persmissions to
make sure they were correct as well as I made sure that web permissions
has scripting and executables execution option for the directory. The
only part that I don't understand where to turn it on is declaring the
CGI page extension to be a ScriptMap. Could you please elaborate on
how I set that up.

Thanks
Matt

--
mbstone99
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message875349.html

David Wang [Msft]

unread,
Feb 22, 2005, 8:32:06 PM2/22/05
to
In IIS Manager UI, right click on the application and select Properties.
There should be a "Virtual Directory" or "Home Directory" tab. On the tab,
there is a button called "Configuration..." and if you have an application
configured, it will be enabled. Then, in the "mappings" tab, make sure the
CGI page extension is listed there with a ScriptMap engine.

POST to a CGI or ISAPI should work by default as soon as you allow "Scripts
and Executables", have the right ACLs, and enabled the CGI EXE/ ISAPI DLL in
Web Service Extensions. POST to a Script need the additional configuration
in the "mappings" tab (which declares which CGI/ISAPI runs for the given
extension, at which point it is the same case as POST'ing to a CGI/ISAPI).

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"mbstone99" <mbstone9...@mail.webservertalk.com> wrote in message
news:mbstone9...@mail.webservertalk.com...

0 new messages