Tuesday, July 22, 2008

Classic ASP on IIS7 (for IIS6 old farts)

So you've got a shiny new Vista or Windows Server 2008, and now you want to create a test site with one classic asp page.

The problem is, if you're like me you had no idea how to navigate around the new UI. I had assumed

  • Roles = security
  • Features = bugs I'm insisting are by design
But it turns out I was soooo IIS6 in my thinking. I had to pull my head out of 2003 to understand.

Installing IIS7

  • Start Menu:Administrative Tools:Server Manager
  • Find the Roles Summary section
  • Add Roles:Web Server (IIS)
  • Follow the wizard and it's done. Web Server (IIS) will show up as an installed role in the Roles Summary
Adding ASP etc

  • Click Web Server (IIS)
  • Find the Role Services section
  • Click Add Role Services
  • Check Application Development (or you can just select ASP if that's really all you want)
  • Complete the wizard and you're done. Application Development including ASP will show up as installed role services

Using Classic ASP in IIS7

  • Start Menu:Administrative Tools:Internet Information Services (IIS) Manager
  • Expand the server
  • Select Application Pools. Look! There's a Classic .NET AppPool ready for your use
  • Select your site
  • Click Basic (or Advanced) Settings in the right panel
  • Select the Classic App Pool

Troubleshooting Errors in Classic ASP

  • Start Menu:Accessories:Command Prompt
  • %windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true
  • This turns on detailed error messages

Congratulations, you've turned a hybrid into a Fred Flintstone car!

No comments: