473,714 Members | 2,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Breakpoints are not getting hit in ASP.NET (C#) project

MSK
Hi,

Continued to my earlier post regaring "Breakpoint s are not getting hit"
, I have comeup with more input this time.. Kindly give me some idea.

I am a newbie to .NET, recently I installed .NET. I could not debug
using breakpoints,

breakpoints are not getting hit, but the application is working fine
with out any issue.

If I press F5 or Start Application is working fine. "Start without
debugging" is also

working fine. But the breakpoints are not getting hit by the process. I
am not getting any

error.

It would be grateful if you give me a solution for this issue.

I created a sample web (ASP.NET -default) application and put a
breakpoint in the page load

event and executed but still break points are not hit.

I have given my settings below...

=============== =============== =============== =============== =======
IN VS.NET
=============== =============== =============== =============== =======
1. Web.config debug=true

2. Solution Configuration = Debug Solution--> Properties--> Common
Properties-->Debug

Symbol Files -- --Is blank - Is it OK?

3. Project--> Properties--> Configuration--> Build--> Generate
Debugging ----Information is

checked

4. Project-->Properties-->Configuratio n--> Debug--> ASP.NET debugging
----True

5. I am getting the following error while debugging any newly created
project (C#, ASP.NET)
To avoid this error I am doing the following.

"Error while trying to run project: Unable to start debugging on the
web server"

Project-->Properties-->Configuratio n Properties --> Debugging -->
Enable SQL Debugging.
After this I am not getting this error message for current project. By
default "Enable

ASP.NET debugging" set as "True"
6. Breakpoints are available in the breakpoint window (I just checked
in run mode via

Debug-->Windows-->Breakpoints)

7. I tried to attach manually I got this error "Unable to attach to the
process"
· Very first time there was nothing selected in the "choose the
program type that you want

To debug:" dialog
· I have selected "Common language Runtime" and clicked "Ok"
· I got this error "Unable to attach to the process"
· But next time I opened the same dialog, "Common language
runtime" has been selected but I

Got the same error while clicking "Ok"

8. I can see the following line in the output window when the
application running
"Auto-attach to process '[2684] aspnet_wp.exe' on machine XXXXX
succeeded."
9. PDB - File is available, I can see the .pdb file in the bin
folder, (dll/exe/pdb -

modified dates are same)

10. I have tried with so many break points in different places.

11. I have IIS, and SQL server in the same laptop
12. User and PC details
· Windows XP + SP2
· IIS 5.1
· Login as local administer
· This user is part of "Debugger Programmers"

=============== =============== =============== =============== ======
In IIS
=============== =============== =============== =============== ======

1. IIS--> Application-->Configuratio n--> Debugging-->Enable ASP Server
side debugging-----

is checked

2. IIS--> Application-->Directory Security--> Enable anonymous and
integrated windows

authentication are both checked

It would be grateful if you give any idea. Many thanks.

Regards
MSK.

May 2 '06 #1
2 4219
sa
Hi,

Check Machine Debug Manager is working.
If it works try to restart and try again.

And you may check this document.
http://www.gotdotnet.com/team/csharp...erproblems.doc

Regards,
Salim

"MSK" <ma***********@ yahoo.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. .
Hi,

Continued to my earlier post regaring "Breakpoint s are not getting hit"
, I have comeup with more input this time.. Kindly give me some idea.

I am a newbie to .NET, recently I installed .NET. I could not debug
using breakpoints,

breakpoints are not getting hit, but the application is working fine
with out any issue.

If I press F5 or Start Application is working fine. "Start without
debugging" is also

working fine. But the breakpoints are not getting hit by the process. I
am not getting any

error.

It would be grateful if you give me a solution for this issue.

I created a sample web (ASP.NET -default) application and put a
breakpoint in the page load

event and executed but still break points are not hit.

I have given my settings below...

=============== =============== =============== =============== =======
IN VS.NET
=============== =============== =============== =============== =======
1. Web.config debug=true

2. Solution Configuration = Debug Solution--> Properties--> Common
Properties-->Debug

Symbol Files -- --Is blank - Is it OK?

3. Project--> Properties--> Configuration--> Build--> Generate
Debugging ----Information is

checked

4. Project-->Properties-->Configuratio n--> Debug--> ASP.NET debugging
----True

5. I am getting the following error while debugging any newly created
project (C#, ASP.NET)
To avoid this error I am doing the following.

"Error while trying to run project: Unable to start debugging on the
web server"

Project-->Properties-->Configuratio n Properties --> Debugging -->
Enable SQL Debugging.
After this I am not getting this error message for current project. By
default "Enable

ASP.NET debugging" set as "True"
6. Breakpoints are available in the breakpoint window (I just checked
in run mode via

Debug-->Windows-->Breakpoints)

7. I tried to attach manually I got this error "Unable to attach to the
process"
· Very first time there was nothing selected in the "choose the
program type that you want

To debug:" dialog
· I have selected "Common language Runtime" and clicked "Ok"
· I got this error "Unable to attach to the process"
· But next time I opened the same dialog, "Common language
runtime" has been selected but I

Got the same error while clicking "Ok"

8. I can see the following line in the output window when the
application running
"Auto-attach to process '[2684] aspnet_wp.exe' on machine XXXXX
succeeded."
9. PDB - File is available, I can see the .pdb file in the bin
folder, (dll/exe/pdb -

modified dates are same)

10. I have tried with so many break points in different places.

11. I have IIS, and SQL server in the same laptop
12. User and PC details
· Windows XP + SP2
· IIS 5.1
· Login as local administer
· This user is part of "Debugger Programmers"

=============== =============== =============== =============== ======
In IIS
=============== =============== =============== =============== ======

1. IIS--> Application-->Configuratio n--> Debugging-->Enable ASP Server
side debugging-----

is checked

2. IIS--> Application-->Directory Security--> Enable anonymous and
integrated windows

authentication are both checked

It would be grateful if you give any idea. Many thanks.

Regards
MSK.
May 2 '06 #2
MSK
Salim

Thanks,I have posted another query regarding this (ASP.NET version)

It would be nice if you give me some idea

Thanks

MSK.

May 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
313
by: news.microsoft.com | last post by:
Hi, I have a problem with breakpoints. I have different worspaces in one C++Solution-Map. If I set breakpoints, the program only holds at point in the active (main) project. Does someone know how the program is able top stop at breakpoints in different workspaces? Thanks a lot Nils
5
5587
by: Doug Swanson | last post by:
I have my project(s) set to Debug mode...asp.net debugging is enabled, I've re-registered asp_net. This particular solution has an asp.net and an ASP application in it...I can set breakpoints in the ASP application and the breakpoints are hit but the breakpoints in the asp.net application are never hit. This used to work and I'm not sure what happened to cause it to break....I've read all of the posts/documents that I can find but I...
1
1033
by: Ron Icard | last post by:
I had to reformat and completely reinstall all apps on my machine because of unfixable viruses this week. After re- installing VS.NET Enterprise Edition, I now cannot get it to stop at any breakpoints on any ASP.NET pages (places where it stopped before). I checked and my configuration is set to Debug (not Release) and I have scanned the files for viruses and they're clean. Any ideas on how to make it stop at the breakpoints?
0
998
by: chris | last post by:
hello I have a project with two imported dll's. I try to put a breakpoint in the main project in one of the modules of the DLL ... Some breakpoints are hit but in one module no breakpoints are hit... he just jumps over the module... so i can not step into the module ... He shows me breakpoints with a question marks with the remarks : breakpoint will not currently be hit... no symbols have been loaded for this document. I tryed to close...
6
2203
by: Brian Bischof | last post by:
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing. If someone could tell me what I'm missing that would be great. 1. Create an external class and call it Test.dll. 2. Create a test Asp.net app called App.sln. 3. For App.sln I set a reference to Test.dll. 4. Compile App.sln and run it. The web...
0
1394
by: MSK | last post by:
Dear all, Continued to my earlier mail regarding "Breaking points are not getting hit in ASP.NET " , I got some idea from net. Can anyone give me more idea on this? Just to remind the issue: 1. I got the following error while executing a newly created a web application (just sample app)
4
5566
by: Kuldeep | last post by:
Hi All, ..NET Framework - 1.0 ASP.NET Everytime I open my open, I get this error message "Unable to load one or more breakpoints" Even after this, I can build my application and run Please Help!
1
3904
by: theresegt1 | last post by:
Does anyone know why VS 2005 might skip breakpoints when debugging through the browser? It's a new installation so no configurations other than 'set startup project' and 'set startup page' have been set. Do I need to do additional configuration to get the debugger to break at breakpoints, or might I be doing something else wrong? Thanks
1
4785
by: Norman Diamond | last post by:
One Visual Studio 2005 solution contains a C# project and C++ ATL DLL project. The DLL compiles fine, gets registered automatically, gets referenced correctly when the C# program compiles, and gets called correctly during execution. So far, so good. During execution of the DLL, a call to the ATL/MFC shared library method CImage::Create returns FALSE. So I tried to set a breakpoint before the call. When not executing, Visual Studio...
0
8796
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8704
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9307
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7946
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4715
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3155
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2514
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2105
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.