RAD Studio for Microsoft .NET
ContentsIndex
PreviousUpNext
Debugging and Updating ASP.NET Applications

During the installation of RAD Studio, the install program requested permission to update the machine.config file on your computer. This information is necessary for debugging RAD Studio applications under IIS. If you replied Yes to that prompt, CodeGear debugger information was written to machine.config and will be available to the applications that you created with Delphi 8. You need not perform this procedure. 

If you replied No to that prompt, the debugger information is written to the application web.config file when you create an ASP.NET application with RAD Studio. However, you will need to add this information manually to web.config for applications that were created with Delphi 8. Otherwise, attempting to debug your Delphi 8 application with RAD Studio may result in the following error:  

Unable to start debugging on the web server. Unable to attach to ASP.NET worker process (typically aspnet_wp.exe or w3wp.exe). 

To update the web.config file for a Delphi 8 ASP.NET application

  1. Open the web.config file in the IDE or a text editor.
  2. Replace the following lines:

<compilation
     debug="true"
     defaultLanguage="c#">
</compilation>

with this:

<compilation defaultLanguage="c#" debug="true">
<assemblies>
  <add assembly="Borland.dbkasp, Version=9.0.0.1, 
Culture=neutral, PublicKeyToken=b0524c541232aae7"/>
</assemblies>
</compilation>

<httpModules>
   <add name="DbgConnect" type = "Borland.DbkAsp.DbkConnModule,
Borland.dbkasp,Version=9.0.0.1, Culture=neutral, 
PublicKeyToken=b0524c541232aae7"/>
</httpModules>

  1. Save the web.config file.
  2. Open the application project in the IDE and run it.
Note: Before deploying an ASP.NET application, you should disable debugging and remove debugger references from the web.config
file, as described in the topic listed below.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!