Click here to Skip to main content
Click here to Skip to main content

How to Setup IIS 6.0 on Windows 7 to Allow Classic ASP Sites to Run

By , 22 Oct 2009
 

Introduction

By default, Classic ASP sites will not run in IIS 7.5 on Windows 7 because of it being on the 64 bit platform and Classic ASP built to run on 32 bit.

I encountered a problem with a Classic ASP website that I run off my localhost which makes use of a Microsoft Access Database. In most cases, ASP is not setup by default with IIS 7.5. This page will give you the 3 steps that I followed to set this up and get my site up and running again.

Using the Code

Step 1 - Enable ASP

Start -> Control Panel -> Programs and Features -> Turn Windows Features On or Off.
Make sure that ASP is checked.

Step 2 - Create New AppPool for ASP

Start -> Control Panel -> Administrative Tools -> IIS Manager.
Application Pools -> Add Application Pool.

Right click on your newly created App Pool --> Advanced Settings.
Set "Enable 32 Bit Applications" to TRUE.

Step 3 - Site Setup

Create your new Website in IIS. Ensure that it uses your newly created AppPool. This can be set by going to the Advanced Settings of your Website.

A Default Error page is setup to handle any errors that may occur when your site is running.
Whilst this may be great in a live environment, for development and debugging you may want to see the actual errors.
Prior to IIS 7.5, you would just have to Turn off "Show Friendly HTTP Error Messages" in your browser settings, but now you have to specify this in your website ASP properties.

Select the ASP Properties of your website and then proceed to set the Debugging Properties -> "Send Errors To Browser" to TRUE.
You should also set Behaviour -> "Enable Parent Paths" to TRUE. This will allow the usage of ".." commonly found in ASP applications.

Click to enlarge image

Additional Resource

History

  • 15th October, 2009: Initial version
  • 22nd October, 2009: Article updated

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

butchzn
South Africa South Africa
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questionworks well..membertembz24 May '12 - 3:15 
just note that for you to access the "Advanced Settings" on the website created.. it has to be in application form and not just a folder or a virtual directory. Thanks again for the post.
Answerworks like a charmmemberMuzztein9 Nov '10 - 9:04 
Clean, simple and to the point.
thank you so much.
 

Saludos cordiales Smile | :)
GeneralThank you very much , you saved my daymemberraajesshh12 Jul '10 - 2:30 
It was very useful tips and I was struggling with Classic ASP to get it work with Windows 7
 
Thank you very much,
 
have a Nice day
 
Rajesh
QuestionHow to Setup IIS 6.0 on Windows 7 to Allow Classic ASP Sites to RunmemberAllanShafton23 Jun '10 - 14:11 
I could not find any of the options described in the article below site setup (e.g. Error file, ASP properties, parent ...)
 
How do I get to these?
AnswerThank you: A necessary postmemberMember 86867726 Oct '09 - 12:23 
Just upgraded to Windows 7, and the default IIS install does not include ASP, ASP.net, etc. Myistified as to why, so your post was well timed. Thank you for taking the time to post it.
GeneralMy vote of 1memberRuchit S.23 Oct '09 - 21:24 
not so great info.
GeneralError in titlememberRichard Deeming20 Oct '09 - 7:27 
IIS 6.0 is part of Windows Server 2003. With Vista, you get IIS 7.0; with Windows 7, it's IIS 7.5.
 
You can't "setup IIS 6.0 on Windows 7" to run anything! Poke tongue | ;-P
 



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Error in titlememberhackcat20 Jan '10 - 17:20 
I think so too!The title makes me surprise!But the image shows the IIS version is 7.5.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 22 Oct 2009
Article Copyright 2009 by butchzn
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid