Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > BOOK: ASP.NET Website Programming Problem-Design-Solution
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 12th, 2004, 12:57 AM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Breakpoint not hit - "No symbols loaded for page"

I use Visual Studio 2002.
On a couple of pages, but not everywhere, when I run the app, the breakpoints show question marks inside of them and the rollover says, "The breakpoint will not currently be hit. No symbols have been loaded for the document."

Why would this happen? I tried deleting all the dlls and pdb files and doing Rebuild All, but that didn't fix it.



  #2 (permalink)  
Old October 12th, 2004, 09:20 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You need to give us specific examples. Maybe you put breakpoints in a file that isn't used - there are definitely some of these!

Or maybe you had the right file, but the wrong folder.

Or maybe you put breakpoints on a user control that gets compiled dynamically.

Eric
  #3 (permalink)  
Old October 13th, 2004, 01:36 AM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't understand the first 2 scenarios you mentioned, but it's not a user control. I can't put breakpoints anywhere in the files, and couldn't post the entire files, so...

The problem with the breakpoints is in two code-behinds in the "ThePhile/WebModules/modulename folder. These are files in the Modulename.Web namespace, not ModuleName.Business or ModuleName.Data:
http://localhost/ThePhile/modulename/MyAccount.aspx
http://localhost/ThePhile/modulename/Default.aspx

So the problem is confined to one folder. The project has 'enable ASP.NET debugging' checked, and I can successfully set breakpoint in the other files in the project that are not within this folder.


  #4 (permalink)  
Old October 19th, 2004, 11:09 PM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm still having this problem. Here's what I know:
If I change the names of the two aspxs(myaccount.aspx and default.aspx) I can set breakpoints successfully. If I change them back, the problem reappears.

If I remove the files from my project, and then add two new files with the same names, and paste in the original content, the problem persists. All around these tests I delete all the dlls and pdb files from the project directory, VsWebCache, and some other cached folder whose name I forget.

i thought maybe it was a name conflict, and maybe it is, but I noticed that my default.aspx is actually the 3rd default.aspx in the main web project, after the root default.aspx and WebModules/Accounts/Admin/default.aspx, and there's no problem debugging the first two...so why a problem with the 3rd.

I noticed this in webproj.csproj. All the 'dependentupon' are the same, but that seems correct, though counterintuitive. Help is appreciated.
Code:
        <Files>
            <Include>
                <File
                    RelPath = "Default.aspx.cs"
                    DependentUpon = "Default.aspx"
                    SubType = "ASPXCodeBehind"
                    BuildAction = "Compile"
                />
                <File
                    RelPath = "WebModules\Accounts\Admin\Default.aspx.cs"
                    DependentUpon = "Default.aspx"
                    SubType = "ASPXCodeBehind"
                    BuildAction = "Compile"
                />

                <File
                    RelPath = "WebModules\Pools\Default.aspx.cs"
                    DependentUpon = "Default.aspx"
                    SubType = "ASPXCodeBehind"
                    BuildAction = "Compile"
                />
.
.
.

  #5 (permalink)  
Old October 20th, 2004, 10:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not having this problem, but one other user said there's a problem having more than 1 page with the same name.

It seems smart to rename the pages so they have unique names, especially if it fixes your problem. Why don't you want to do this?

Eric
  #6 (permalink)  
Old October 22nd, 2004, 02:21 AM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Because I've been stubborn. Default seemed like a useful name in several places, but it's the most realistic thing to do at this point to change it.
Thanks

  #7 (permalink)  
Old December 16th, 2004, 03:43 PM
Registered User
 
Join Date: Jul 2003
Location: Tampa, Fl, USA.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to SteveC33603
Default

You are most likely getting this error because your build mode is set for release. Under build select build options and set the build to debug then re-build the project. This should fix this error.
  #8 (permalink)  
Old January 5th, 2005, 07:46 AM
Registered User
 
Join Date: Jan 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello I had the same problem and finally i fixed it.

there are 4 points to look for :

1/uninstall and reinstall your aspnet process
aspnet_regiis -u to uninstall
aspnet_regiis -1 to reinstall

2/check if you're not in realease mode for all projetcs in your solution

3/in the project properties options check if "enable ASP.NET debugging" is set to true

4/ and the very last one not found in previous posts
in the project properties options : "common properties/general/startup object"
it must be set to "not set"

if you set it to your startup page it wont work and aspnet won't be abble to load all debugging informations in the pdb file.

comment : this works for the C# projects, didn't checked with other languages.

I hope you will be sucessfull in debugging your projects.

:))))
--------------------------------
From: titeoe Mr

  #9 (permalink)  
Old January 31st, 2005, 12:53 PM
Registered User
 
Join Date: Jan 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi:
I am having the same problem with vb.net 2002. "The breakpoint will not currently be hit. No symbols have been loaded for the document." I have 2 projects in my solution: #2 references the dll of #1. When I set a break point in #1, it does not stop at the break point. I have rebuilt the solution and tried. My Configuration is set to Debug.

What else could I check for?

Thanks in advance.
Sudha

  #10 (permalink)  
Old February 2nd, 2005, 01:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you set a breakpoint in a simple web forms project you create yourself?

Eric
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - Synchronizing Page Loaded with Each Hit kylex Javascript How-To 1 February 20th, 2008 01:48 AM
The breakpoint is not been Hit uchkid Pro Visual Basic 2005 1 August 29th, 2006 10:52 AM
check if page is loaded darkhalf Javascript 1 October 4th, 2005 05:26 AM
how to check if page is already loaded? phpworker Javascript How-To 0 July 31st, 2005 11:49 AM
Cant hit a breakpoint in report open event badgolfer Access 1 July 4th, 2004 11:08 PM



All times are GMT -4. The time now is 06:43 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.