Google Box
 News
  Tips Home :

Error while trying to run project: Unable to start debugging on the web server. Click help for more information.

Doc TypeTips & Tricks
Email SettingMake Public
Email Addresssteve.robinson@arc.com
Keep informed?Yes
AuthorSteven Charles Robinson
Company NameNotes411
Category.NET Web Application
Modified 06/09/2006 10:53:51
Subject Error while trying to run project: Unable to start debugging on the web server. Click help for more information.


When using Visual Studio 2003 (,NET Framework 1.1) and you have create a new ASP.NET web application. when you try to run the debugger you get the error below.


Problem:




Solution:


Make sure the application is in a virtual folder. You must add an application to the folder which will ensure the folder is a virtual folder.


1. Open the IIS Management Console: One ways is to right mouse click on 'My Computer' and click manage.




2. When you have opened the Computer Management console. Right mouse click on the folder where you created your .NET web application.


 

3. Create an application name. this will then make the folder a virtual folder.




4. You may also find that this problem can occur if your web application web.config file is set to not allow debug.

To set debug mode for an ASP.NET application, you must edit the application's Web.config configuration file. Usually, the Web.config for your ASP.NET application is located at the same URL location as your application. If your ASP.NET application is at www.microsoft.com/aaa/bbb, the Web.config for the application would normally be www.microsoft.com/aaa/bbb/Web.config.

The Web.config is an XML format file. You can edit the file using any standard text editor or XML parser. You cannot access the file remotely using a Web browser, though. For security reasons, ASP.NET configures Microsoft IIS to prevent direct browser access to Web.config files. If you attempt to access a configuration file using a browser, you will get HTTP access error 403 (forbidden).

The Web.config file contains nested sections marked by tags. The following example shows a typical Web.config file. Look for the <compilation> tag. This marks the beginning of the <compilation> section. In this section, you can specify the debug attribute. In the example shown below, the debug is the second attribute specified in the <compilation> section, but the order does not matter. Attributes are case sensitive, so be sure to specify "debug", not "Debug" or "DEBUG". Set debug to "true", as shown here:

<configuration>
   <system.web>
     <compilation
         defaultLanguage="c#"
         debug="true"
    />
   </system.web>
</configuration>

5. Another problem could be that you have installed Visual Studio 2005 or Visual Web Developer 2005 Express and thus your web applications a re defaulting to the .NET Framework 2.0  as opposed to the .NET Framework 1.1.

You can chnage the Framework being used in the ASP.NET tab in the setting for your vitual folder (application settings).



Other similar documents:


>>
Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged.


Add Response   ||  Add a Document



Responses to "Error while trying to run project: Unable to start debugging on the web server. Click help for more information.":

30/03/2007   tnx
© 2003 notes411.com. All rights reserved. Disclaimer. site designed & developed by appsworks.com
Lotus Notes is a registered trademark of IBM. This site is not affiliated with IBM or Lotus.