IIS 7 Classic ASP application running in Integrated mode

asp-classicasp.netiis-7sitecoresitecore6

We have a ASP .Net application hosted on IIS 7 on Integrated mode.

We have a few classic ASP pages inside this ASP .Net application. When i am trying to fo form post from classic ASP page and try to access posted data using Request.Form("name"), it is giving me unspecified error. Request object is getting wiped off on form post.

If i change the folder containing classic asp pages to an application and change its application pool to a new application pool which is using classic mode, everything works fine.

Can i have Classic ASP pages running inside ASP .Net application hosted on IIS 7 in Integrated mode?

We are using Sitecore 6.5 for our web application.

Best Answer

Yes you can run ASP Classic on IIS7 using an integrated pipeline.

You might have to add a custom HTTP handler. Take a look at the answer from Kim Hansen. She uses the following code:

<add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="File" requireAccess="Script" />

Take a look at this resource for some general tips on running ASP Classic on IIS7.

Some other things to look into:

  • 32 bit applications is disabled by default. Some COM objects need this to be enabled. This option can be set per site
  • Take a look at the comPlus entry in the web.config. Escpecially executeInMta can be important in certain cases for Classic ASP.