Monday, July 9, 2012

Support for ASP Classic pages on IIS7/Windows Server 2008 64 bit

We had to recently upgrade our servers and one of the sites that was running under ASP.Net 2.0 framework had an ASP page.In order to get that page to work on the new iis7, windows server 2008.I had to add the following bit to web.config file under the system.webserver/handlers tag.

<system.webServer>
        <handlers>
            <remove name="ASPClassic" />
            <add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="bitness64" />
        </handlers>
    </system.webServer>

No comments: