IIS 6.0 - HTTP 405 error when accessing cgi file

Can anyone help with this problem. We have suddenly been getting an HTTP 405 error when accessing a cgi file on our IIS web server:

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.

The only thing that comes to mind is that we were getting ACL IIS error messages last week and I tried changing the permissions for the site to remedy that which may be the reason why the site cannot run properly. I think these 2 issues may be related. Any help appreciated.

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.

Sam PanwarSr. Server AdministratorCommented:

405 usually happens when you try to POST to a URL that is not deemed to be
executable by IIS. you did not allow"Scripts" or "Scripts and Executables" Execute Permission, or you did not allow the specified verb on the ScriptMap setting.

Please also make sure that you have installed cgi on the server and alow cgi extension in the web extension of the IIS.

You can dignosis issue from the IIS web log files for the website, and if you search on the error codes, you will find the right solution.

IIS6 on Windows Server 2003 pretty much expects that you use either the event log, HTTPERR log, or IIS web log files to troubleshoot issues -- HTML error messages are not going to disclose much
details for security reasons.

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
rmullins83Author Commented:
Where are the locations for the IIS logs that can help with this?

At the moment 'Scripts only' is given permissions in IIS site properties. How do I alter the ScriptMap setting so that a cgi file can be access? I also seem to get an access error on a .dll file also.
rmullins83Author Commented:
I have just checked the HTTPERR logs and am getting this against the HTTP 503 error:

2008-02-06 11:23:31 212.188.x.x 1499 212.188.x.x 80 HTTP/1.0 HEAD / 503 1 AppOffline DefaultAppPool

Any ideas on solving this?
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

rmullins83Author Commented:
IIS seems to want to download the cgi exe files that we have on our web site, rather than call them. Is there a way to deal with this.
rmullins83Author Commented:
This turned out to be a permissions issue with the default IUSR account. Thanks for your posts.
Sam PanwarSr. Server AdministratorCommented:

If it is permission issue then I already mentioned in my reply. So point will be not refund.
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
Microsoft IIS Web Server

From novice to tech pro — start learning today.