Classic ASP is not configured by default in Internet Information Server 7(IIS7). If you want to run classic ASP application in IIS7 then you need to enable and configure this feature in your machine.

Here are step by step guide to enable and configure ASP

Go to Programs and Features in Control Panel and then click Turn Windows features on and off

Browse and Expand Internet Information Services -> World Wide Web Services -> Application Development Features and checked ASP check box.

This is not enough to run ASP on your box. You need to add classic asp application in IIS7 application pool.

Go to Control Panel -> Administrative Tools -> Internet Information Server (IIS) Manager and click on Application Pools in left panel or View Application Pools in right panel.

Now click on Add Application Pool link in right panel.

In the Add Application Pool window type ASP in name box, select No Managed Code in .Net Framework Version dropdown, select Classic in managed pipeline mode dropdown and check Start application pool immediately check box.  Hit OK button.

Now add .asp handler by mapping .asp page to classic application pool.

Go to IIS main window and click  on PC name in left panel. Click on Handler Mapping in IIS section. configure as specified in below screen shot and click ok to add .asp handler.

All done. Now check your application in browser.

Written by Bala Krishna

Bala Krishna is web developer and occasional blogger from Bhopal, MP, India. He like to share idea, issue he face while working with the code.