ASP Setting Up an Environment

Running classic ASP pages requires Internet Information Services (IIS) — Microsoft's web server — installed and configured with ASP support on a Windows machine.

What You Need

  • A Windows edition that includes IIS (Windows 10/11 Pro or Enterprise, or any Windows Server edition)
  • Internet Information Services (IIS) installed with the classic ASP feature enabled
  • A folder to hold your .asp files, either the default IIS web root or a virtual directory
  • A plain text editor (Notepad, VS Code, or similar) — no special IDE is required

Enabling IIS and ASP on Windows

  1. Open Control Panel > Programs > Turn Windows features on or off
  2. Check the box for Internet Information Services
  3. Expand Internet Information Services > World Wide Web Services > Application Development Features
  4. Check the box labeled ASP (this is separate from ASP.NET)
  5. Click OK and let Windows install the components
Note: IIS installs with only static HTML support by default. If you skip checking the ASP checkbox under Application Development Features, your .asp files will download as plain text or return an error instead of running.

Creating and Testing a Page

IIS serves files from a web root, normally C:\inetpub\wwwroot. Any .asp file you copy into that folder becomes reachable at http://localhost/filename.asp. For larger projects, open IIS Manager (inetmgr), right-click Default Web Site, and choose Add Virtual Directory (or Add Application) to point a URL path at a different folder on disk without moving your files into wwwroot.

Example

<%
  Response.Write("IIS and ASP are working correctly!")
%>

Save the snippet above as test.asp inside your web root, then browse to http://localhost/test.asp. If IIS and the ASP engine are configured correctly, the browser shows the plain sentence rather than downloading the file or displaying raw script text — either of those symptoms means the ASP feature still needs to be enabled for that site.

Example

<%
  Response.Write("Server software: " & Request.ServerVariables("SERVER_SOFTWARE"))
%>
ComponentPurpose
IISThe web server that listens for HTTP requests and serves files
ASP engine (asp.dll)Executes the VBScript/JScript inside .asp files before the response is sent
wwwrootThe default folder (C:\inetpub\wwwroot) IIS serves files from
IIS Manager (inetmgr)The GUI tool for managing sites, virtual directories, and app settings
Note: Open IIS Manager quickly with Windows+R, then type inetmgr. From there you can also set a default document (like default.asp) so visitors don't need to type the filename in the URL.