[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 822
  • Last Modified:

Debugging ASP.NET Web Application


Hi,

I am new to VB.net. When I try to debug an ASP.Net Web Application, i get an error message like

" Unable to Start Debugging on the Web Server.......Install the VS.Net Server Components .... Would you like to disable any further attempts to debug on this project ? "


I re-installed VS.Net and installed all the server components as well. I also tries re-installing IIS.

Still no  success.

Kindly help.

Thanks & Best Regards

Sree
0
sreejithm
Asked:
sreejithm
  • 2
1 Solution
 
Arthur_WoodCommented:
what you want to do is to use the ASP.NET debugger - CLRDBG.EXE found in the .NET Framework SDK

if you installed Visual Studio 2003 in the 'standard' directory on your C drive, it is located at

C:/program Files/Microsoft Visual Studio .NET 2003/SDK/V1.1/GuiDebug

What you do is this:

Start you ASP.NET app, in VS (View in Browser)

Then start the CLRDBG.EXE, and open the aspx.vb file that you want to start debugging in.  

Set a Breakpoint, as if you were in VS, on the line where you want to Break.

The under the Debug menu button (in the debugger), click on Processes, and select the aspnet_wp.exe.  then go back to the running asp.net app, and fire it up, when the executring code gets to the line that you set the Breakpoint on in the debugger, you will be in the debugger, and can then single step, in the debugger, using the F11 key to step-into (what F8 does in an normal VB.NET app - not asp.net)

AW
0
 
sreejithmAuthor Commented:
Hi,

I use VS.Net 2002.

Can the procedures that you have mentioned be applied here as well ?

Thanks & Best Regards,

Sreejith.
0
 
Arthur_WoodCommented:
should be able to.

Give it a try.

AW
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now