473,379 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Issues with debugging an asp.net project


Hi,

I have an issue debugging my asp.net project. On a particular aspx
page, in the code behind cs file, my breakpoints are not being hit. The
breakpoint is in the Page_Load() method and is a proper line of code
where a variable is assigned a value (not a blank line, curly brace or
anything else).

Breakpoints on other .cs code behind files pages in my project are hit
without any problems, the issue is with this single page.

I have set VS.NET up in debug mode (not release), the web.config file
has debug set to true and my project debugging configuration properties
have 'Enable ASP.NET Debugging' set to true. I have also added
debug=true to the page directive in the aspx file.

I am not getting anywhere.

I'd appreciate any help or advice.

Thank you,

Ken Dourado.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #1
2 1153
AW
Ok, the breakpoints aren't reached, but is the code executed anyway? I mean,
is the code in the Page_Load executed? To be sure about that, you can place
a Response.Write in it.

If the breakpoint isn't reached AND the code isn't executed, it is most
likely that your Page_Load is not called. This may be due to a bug in Visual
Studio.net, where it removes the event handlers:
-if using VB.Net, check that the "Handles Page.Load" wasn't removed at the
end of the Page_Load declaration
-if using C#, check that the Page.Load += new EventHandler(Page_Load) is
still there in the hidden code part of the CodeBehind file.
--
To reply, remove a "l" before the @ sign.

Arnaud Weil - MCT, MCSD.Net, MCAD.Net
Nov 17 '05 #2
Arnaud,

Thanks for that - the change worked. I don't think I'll ever forget to
check that now if it ever happens again.

Regards,

Ken.
"AW" <aw****@fr.xrt.com> wrote in message
news:u%****************@tk2msftngp13.phx.gbl...
Ok, the breakpoints aren't reached, but is the code executed anyway? I mean, is the code in the Page_Load executed? To be sure about that, you can place a Response.Write in it.

If the breakpoint isn't reached AND the code isn't executed, it is most
likely that your Page_Load is not called. This may be due to a bug in Visual Studio.net, where it removes the event handlers:
-if using VB.Net, check that the "Handles Page.Load" wasn't removed at the
end of the Page_Load declaration
-if using C#, check that the Page.Load += new EventHandler(Page_Load) is
still there in the hidden code part of the CodeBehind file.
--
To reply, remove a "l" before the @ sign.

Arnaud Weil - MCT, MCSD.Net, MCAD.Net

Nov 17 '05 #3

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

Similar topics

1
by: amber | last post by:
Hello, I'm having some weird things happen when I step through my code. I'm working with a large solution, containing a few projects, with many classes/forms etc. I'm trying to solve a minor...
0
by: Jim Douglas | last post by:
I had to re-image my system today and spent too much time trying to get de-bugging working again. The system Windows XP PRO SP2, VisualStudio 2003, C#, etc, etc, clean install of everything. ...
11
by: Claude seraphin | last post by:
I'am having this message while trying to rune my asp.net app on win3k server. I have set debug="true" in <compilation section in my web.config . Can anyone help me? Thanks in advance
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
5
by: Velvet | last post by:
Can someone tell me to what process I need to attach to be able to step through my classic ASP code in VS.net 2003. I'm working on an XP box with IIS installed. I also have VS.net 2005 (The...
0
by: Brad Pears | last post by:
I have a simple little test project and am testing out some system.io commands... I have a main form and in the form's load event I am running some code which I am debugging... When the code...
3
by: eschneider | last post by:
Just some common issues with WS: Using custom objects: When objects change, seems you are always fixing some issue. Update references, which sometimes does not work. Deployment: Weird errors...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
2
jwwicks
by: jwwicks | last post by:
C/C++ Programs and Debugging in Linux This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.