Last post Mar 05, 2007 11:18 AM by boyinapalli
Mar 05, 2007 07:40 AM|boyinapalli|LINK
I am using C# .net 2003. I have kept a breakpoint at a click event and when I run the project, the code does not stop at the break point.
I have done the following check:
1) I am not running on the Release mode, I was running in the debug mode.
2) Project Properties - Debugging - Asp.net debugging enabled = True.
3) In the web.config it is as follows:
Please help, what else I am missing? I would be grateful if anyone can help me solve this problem.
Thanks in advance.
Mar 05, 2007 09:14 AM|Ramzi.Aynati|LINK
DO u have a click event for that button defined in the initailize Event of the page.
I yes, try restarting ur machine, build ur project again, then try debugging, maybe u have something stuck in ur cach
Mar 05, 2007 10:52 AM|boyinapalli|LINK
I have the code defined for the button in the initialize event, and restarted the pc, but still no joy. Any more ideas?
Mar 05, 2007 11:18 AM|boyinapalli|LINK
I am now able to debug the code. I've done the following:
Attached the process w3wp.exe on my machine. Then I got the following error:
Auto-attach to process ' w3wp.exe' on machine '...' failed. Error code
The problem was that I had installed .NET 2.0 which had registered ASP.NET 2.0 on the Web Site I was trying to debug.
Fixing it is simple:
Upon changing to 1.something, the debugging worked.