Apr 8 2008

Running ASP.NET 1.1 on IIS 7.0

Category:Bil@l @ 11:25

When you install ASP.NET 1.1 on IIS 7.0, you will notice:

1. A new application pool called ASP.NET 1.1 application pool that should be assigned to applications you want to run them under the ASP.NET 1.1 runtime.

2. A new configuration element in the %windir%\system32\inetsrv\config\applicationHost.config file:


    <isapiCgiRestriction notListedIsapisAllowed="false" notListedCgisAllowed="false">
        <clear />
        <add path="C:\Windows\system32\inetsrv\asp.dll" allowed="true" groupId="ASP" description="Active Server Pages" />
        <add path="C:\Windows\system32\MQISE.DLL" allowed="true" groupId="" />
        <add path="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v2.0.50727" description="ASP.NET v2.0.50727" />
        <add path="C:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll" allowed="false" groupId="ASP.NET v1.1.4322" description="ASP.NET v1.1.4322" />


As you can see the ASP.NET 1.1 aspnet_isapi.dll filter is configured by default to be allowed="false" which means when you try to access a page configutred under the ASP.NET 1.1 application pool, you receive the following error page:

Server Error in Application "Default Web Site/ASP.NET_1.1_App"


HTTP Error 404.2 - Not Found
Description: The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.

Error Code: 0x800704ec

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ASP.NET_1.1_App/Default.aspx

Physical Path: {}:\inetpub\wwwroot\ASP.NET_1.1_App\Default.aspx

Logon User: Anonymous

Logon Method: Anonymous

Handler: ASPNET-ISAPI-1.1-PageHandlerFactory 

The above is caused by the fact the ASP.NET 1.1 isapi filter is disbaled. To get of this exception and make your ASP.NET 1.1 pages run fine, all you need to do is enable the above XML configuration to something as:

        <add path="C:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v1.1.4322" description="ASP.NET v1.1.4322" />


And you are done!

Hope this helps,


Comments are closed