Configuring and Running Classic ASP Applications on IIS 7

Wednesday, June 24, 2009

Copy the asp files to inetpub\wwwroot folder, set up the Database, install the COM+ DLLs and run the application, Yes this would have worked if you are working on IIS 4, 5, 6 but not anymore. There are more steps to do when you are working with IIS 7. And most of them are tricky and can make seasoned developer run around for solutions.

Below is the list of some trouble shooting tips, in no particular order while configuring and running classic ASP applications in IIS 7.

  1. Enable ASP - Classic ASP is not installed by default on IIS7, so we need to enable it first.  http://learn.iis.net/page.aspx/562/classic-asp-is-not-installed-by-default-on-iis-70-and-iis-75 
  2. “Enable Parent Paths” – Is disabled by default so we need to enable it before we can use parent paths. http://support.microsoft.com/default.aspx?scid=kb;en-us;332117
  3. Classic ASP script error messages are no longer shown in a Web browser by default so if you want to see them, it needs to be enabled. http://learn.iis.net/page.aspx/564/classic-asp-script-error-messages-are-no-longer-shown-in-a-web-browser-by-default
  4. And in IE options, “Advanced” tab uncheck “Show friendly HTTP error messages”.
  5. “Server object error ‘ASP 0178 : 80070005′” error message when you attempt to connect to a database results page created in FrontPage, This is due to NTFS permissions check here to solve it.  http://support.microsoft.com/kb/315454
  6. BUG: ASP error 80070005 “Server.CreateObject Access” when you create a Visual Basic component. This is again due to insufficient permissions, Check here for solution. http://support.microsoft.com/default.aspx?scid=kb;EN-US;q278013
  7. PRB: Server Object Error ‘ASP 0178′ Instantiating COM Object. Again a permissions issue, Check here for solution http://support.microsoft.com/default.aspx/kb/198432
  8. “Enforce access checks for this application” - In Component Services, COM+ application properties, under “Security” tab uncheck the “Enforce access checks for this application” check box. Also make sure in the “Identity” tab, “Local Service” account is selected.
  9. If you are using “myinfo.dll” in your application, copy it to the “C:\Windows\System32” folder and register it using “regsvr32”. OR if you do not have a need for it just take out the references from your application.
  10. Turn off UAC [User Access Control] check if required.
  11. Make sure the you create a application pool for classic ASP application with the settings “.Net Framework version” as “No Managed Code” and “Managed Pipeline” as “Classic” .
  12. “Enable Windows Authentication” in IIS, under “Authentication”.

References
http://msdn.microsoft.com/en-us/library/bb470252.aspx
http://technet.microsoft.com/en-us/library/cc732976(WS.10).aspx
http://learn.iis.net/page.aspx/559/running-classic-asp-applications-on-iis-70-and-iis-75

Top