Tuesday, June 10, 2008

IIS Error: You have attempted to execute a CGI, ISAPI..

I setup a new asp.net 2.0 application under IIS web service and I come across this error:

The page cannot be displayed
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.

When you get this error it usually means that you have not set execute permissions to "Scripts only" under the "home directory" tab in your website properties. When creating a new website the value for execute permission is set to "none". Changing to "Scripts only" will solve this problem.

1 comment: