tags:

views:

247

answers:

1

I have a ASP.NET 1.1 application running on IIS 6 / Windows Server 2003. It's our application, but we're trying to specifically replicate a customer's installation so the app folder has been copied entirely from their production server onto our test machine, and then we've created the Virtual Directory and Web Application for IIS manually.

Internet Information Services (IIS) Manager:

  • Application Pools
  • Web Sites
    • Default Web Site
      • xxxxx (Virtual Directory)
        • yyyyy (Web Application)
  • Web Service Extensions

The problem I have is that when we access the app, we get the standard IIS security error message:

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. 
--------------------------------------------------------------------------------

Please try the following:

•Contact the Web site administrator if you believe this directory should allow execute access.
HTTP Error 403.1 - Forbidden: Execute access is denied.
Internet Information Services (IIS)

Now this is pretty standard, except as far as I can see it's not anything so simple.

I have checked:

  • IIS user has read access to the directory
  • IIS user and Network Service users have read/write access to the Temporary ASP.NET Files folder
  • Virtual directory is set to the correct version of ASP.NET
  • ASP.NET 1.1 Web Service Extension is allowed
  • Virtual directory has the correct mappings of file extensions and all verbs to the aspnet 1.1 DLL
  • Virtual directory properties allow Scripts and Executables to be run
  • Anonymous access is turned on and the username and password is correct

What am I missing?

+1  A: 

When you did create an application on IIS did you check allow script execution ? You need to turn two first choices on in order to execute anything from this application including virtual directory you have made.

Right click on parent application > Home Directory tab > Executive Permissions set to Scripts only...

eugeneK
I think what you mean is if the Web Application (yyyyy) is one level down from the Virtual Directory (xxxxx) that the properties of each are individually set to allow Script execution? Turns out you're right and the lower level (yyyyy) doesn't override the higher level (xxxxx) in this case, so that fixed it.
Coxy
It could be either upper level does not override or upper level set to not execute script... I couldn't see your IIS settings but when scripts cannot be executed this is the first thing to look for...
eugeneK