Configuration for Classic ASP Development, IIS Setup

Configuration for Classic ASP first time windows 10  Development
This document applies IIS 7.5 running on Windows 7 or 10, but should be similar for other versions of IIS and Windows.
  
1. Prerequisites
  
2. IIS Configuration
a. Configure Application Pool
Create application pool for your application.
1. Create App Pool.PNG

  

Open Advanced Settings for the app pool


b. Configure Site
Add a new application under Default Web Site



Click on Connect as... to verify that the application is running under the application pool identity
4. Application user.png


Click on the newly created application to display the settings pane set the following settings (double-click on the appropriate icon) 
5.ASP Properties.PNG
6. Default Document.PNG

7. Authentication.PNG
Open web.config for your application and ensure that the system.webServers section contains the following entries:

<system.webServer>
    <httpProtocol>
        <customHeaders>
            <remove name="X-UA-Compatible" />
        </customHeaders>
    </httpProtocol>

    <defaultDocument>
        <files>
            <add value="default.asp" />
        </files>
    </defaultDocument>
    <httpErrors errorMode="Detailed" />
</system.webServer>

 

b. IIS Configuration 
  • Create a folder for temporary files and give write permission to app pool identity account for your application
  • Create a new application under default web site directed to the above temporary folder (e.g. WWWTempFiles)
  • Open Handler Mappings for this application and remove the following handlers if they exist:
    • ExtensionlessUrlHandler-Integrated-4.0
    • ExtensionlessUrlHandler-ISAPI-4.0_32bit
    • ExtensionlessUrlHandler-ISAPI-4.0_64bit
  • Add the following MIME Type:
9. MIME Type.png
c. Application Constants
 
  • In your application, edit connect.inc located in Include folder and edit the following constants if they exist:
    • G_REPORT_TEMP_URL - set to /WWWTempFiles/ (change to whatever you created temporary files application to)
    • G_REPORT_TEMP_DIR - set to physical path of temporary files application

5. Internet Explorer
To allow error messages to be displayed in Internet Explorer, disable Friendly HTTP Error Messages in Internet Options
8. Internet Options.png

6. Debugging Classic ASP in Visual Studio
To allow debugging with Visual Studio:
  • Enable appAllowClientDebug (Enable Client-side Debugging) and appAllowDebugging (Enabe Server-side Debugging) in ASP settings for your application in IIS.
  • In Visual Studio, select Debug -> Attach to Process
  • Tick Show processes from all users
  • Locate w3wp.exe with Type of "Script, Managed..." with username of the identity of your web site


  • Click Attach and now debugging is enabled for the application configured. Do not use Run to launch the application, but browse in Internet Explorer




Comments

Popular posts from this blog

The best free IPhone apps list

Remove windows 7 from boot list

Tower Madness Cheats, IPhone cheats