Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to guide for getting a classic asp application working under IIS 7.0

I am looking for a nice easy step by step "How To" guide for getting a classic asp application working under IIS 7.0.

It is on a 64 bit windows server 2008 machine if that makes any difference.

like image 553
GordyII Avatar asked Mar 12 '09 04:03

GordyII


People also ask

How do I run Classic ASP on IIS?

Click Start, and then click Control Panel. In Control Panel, click Programs and Features, and then click Turn Windows Features on or off. Expand Internet Information Services, then World Wide Web Services, then Application Development Features. Select ASP, and then click OK.

Does iis10 support Classic ASP?

1 Answer. Yes, you just need enable classic asp in iis? Normally, the iis version in windows 10 is iis10, you can follow below steps to enable classic asp in iis. Search for Turn Windows Features on or off in the win10 search bar.

Is Classic ASP still supported?

Answers. Classic ASP is still supported and will be all the time that it is included in IIS, which is a component of Windows Server. It has the same support lifecycle as the parent server. That's up to 2027 on Win Server 2016 and 2029 on Server 2019.


2 Answers

We've been moving some Classic ASP code to 64 bit Windows 2008. Here are some things we did or discovered along the way:

  • Start off by hosting the application in a 'Classic' pipeline mode application pool. Once things are running just fine you can switch to 'Integrated Mode' should you need to leverage the features it offers at a later date.

  • If your ASP application consumes any 32 bit third party or in-house components you will need to configure the application pool to run in 32 bit mode. 32 bit DLL's won't load into a 64 bit process. You can configure this in the Advanced Settings of an application pool. Set Enable 32-Bit Applications to True.

  • To force detailed error reporting by Classic ASP, open the ASP 'feature' page for the website then expand the Debugging Properties node. Set Send Errors To Browser to True.

  • If your application uses parent paths you'll need to configure this in the ASP settings 'feature' page (same one as above). The setting is under the Behaviour node and is named Enable Parent Paths. The default setting is False just as with IIS6.

  • The default anonymous account in IIS7 is called IUSR. You can change this by opening the Authentication settings 'feature' page for the website and editing the Anonymous Authentication setting.

  • Prefer to use Application Pool Identities for both the Application Pool and site Anonymous account: Application Pool Identities

like image 64
Kev Avatar answered Sep 21 '22 11:09

Kev


I know this is a 5 year old thread, but it is still relevant for those of us who have delayed migrating/upgrading old ASP apps.

There is something very important here that I was banging my head on for about 2 hours. How in the world do you put an ASP app into an application pool, You cannot make ASP pages an application they just aren't compatible technologies.

Well in a DUHH moment, I discovered that there is an application pool assigned to the overall site. Just go to your Site under "Sites" and choose Basic Settings and assign an application pool.

All the rest of this is great info, including registering your DLL's and I don't know if its in this thread, but also making your ODBC connections 32 and 64 bit with the two different odbcad32.exe apps.

Thanks again, (5 years late).

like image 38
user3388628 Avatar answered Sep 18 '22 11:09

user3388628