简体   繁体   中英

IIS 7 Classic ASP application running in Integrated mode

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.

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 comPlusentry in the web.config. Escpecially executeInMta can be important in certain cases for Classic ASP.

We had a similar issue. We run the app pool in integrated mode and have a custom http module which inspects the request on .net side. We needed jump over that part in .net code for .asp extenstions and everything worked again. Seems like whenever .net runs first and accesses the request object it's somehow "locked" for later modules.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM