Groups > Asp .Net > VS 2005 Web Application Projects > Re: Debugging using Visual Studio




Debugging using Visual Studio

Debugging using Visual Studio
Fri, 22 Feb 2008 21:37:24 +000
I am trying to use Visual Studio 2005 to debug a ASP.NET Web Page that has a C#
program in the background that does the processing for the Web page. The
debugging is being done on a Windows Server 2003 machine.

I have created a Visual Studio Project/Solution by using the New Project Wizard
and clicking the ASP.NET Web Application under the Visual C# node in the Project
types tree.

I added my C# program to the project and I built it and everything seemed OK.
When I pressed F5 to start debugging I get a funny message about the project not
being configured for debugging. So I searched all the Microsoft documentation
and I saw a bunch of stuff having to do with setting the correct properties in
the Debug Tab under the project's property pages.

For some crazy reason that I cannot figure out, my project does not have a Debug
Tab in its property pages! It also doesn't have a "Start Options" Tab,
which is another item mentioned in some of the Microsoft documentation. I cannot
find anything that tells me why my project does not have these items associated
with it. Did I use the wrong project type when I created the project?

I  have confirmed that the Web.config file associated with my project does have
the debug=yes parameter in its compilation section, so that is not the problem.

 

Any help that someone could give me about this problem would be greatly
appreciated.
Post Reply
Re: Debugging using Visual Studio
Tue, 26 Feb 2008 12:53:40 +000
Hi,

  First I have some doubt regarding the explanation.1. Are u trying to add a C#
program to the web application. If so then there should be the following entry
in web.config 

<compilationdebug="true">. 

 Also there should be atleast one .aspx page in the web application. Then u have
to right click on the .aspx page and select Set as start page. If u don't need a
web page then u can use a C# class library instead of web application. 

 The start option is present in : Right click on the web application
project-> Go to Property pages-> U will find Start option there. By
default the selected option will be Start Action: Use current page, Server: Use
default web server, Debuggers : Asp.net
Post Reply
about | contact