Classic ASP in Visual Studio
In Visual Studio 2008, create a new Website (NOT Web Project). It does not make sense to create a Web Project because ASP doesn't require you to compile it. Likewise. "Websites" in Visual Studio 2008 are not precompiled before publishing. Copy the site to the root folder. In Visual Studio click the refresh button at the top of the Solution Explorer.
As far as I'm aware (correct me if I'm wrong), you cannot run ASP on Cassini (Visual Studio's lightweight web server). So you have to run your site using IIS (install it form your windows disk if you don't have it).
If you're running Windows XP, here is a nice tool that enables you to set up multiple of sites in IIS. Note that you can only have one site started at a time, however if you're constantly having to switch between sites you're testing/developing etc then this tool is rad!
Running Classic ASP in IIS
In IIS6 and 7, "enable parent paths" is disabled. You must enable it for your website, otherwise your ASP pages that access files in their parent folder (e.g. trying to access ../some_file.asp) will throw an error.
In IIS6 (Windows XP)
- Right-click the website, and then click Properties.
- Select Home Directory, and then click Configuration.
- Click Options, and select the Enable Parent Paths check box.
- Click the website, and then click ASP (under the IIS section)
- Under Enable Parent Paths (5th item in Behavior section), select true.
- While you're there, select Send Errors To Browser (so you can see any errors)
- Click Apply.
Note that in II7 you have to install ASP as it is not installed by default. It's real simple. Just do the following:
Now assuming you pointed the IIS to the correct folder, you should be able to see your website in your browser (in anything other than IE6) via http://localhost
- Go to Turn Windows Features on or off under Programs and Features (control panel).
- Expand Internet Information Services, then World Wide Web Services, then Application Development Features.
- Select ASP, and then click OK.
I hope this was informative. If I left anything out, please let me know.