I have visual studio 2005 SP1 installed on my laptop windows vista SP1. I have a solution that holds 2 projects and the aspx page on the first project (startup project) calls second project webform.aspx. The problem is that the second project debug does
not work because it is not a startup project, when i set it as startup project the debug works fine.
I need to have first project as startup project i would like to debug pages on both the projects.
The breakpoint on second project show yellow triangle with below message.
"The breakpoint will not currently be hit. No symbols have been loaded for this document."
I have tried below options already.
<div mce_keep="true">Clean the solution and rebuild again.</div>
<div mce_keep="true">delete temporary files of Asp.net Framework.</div>
How did you call Project2's Aspx Page from Project1's Aspx Page? Did you just redirect the user from Project1 to Project2? If you want to debug these projects once, you need Visual Studio debugger to attach these Projects's host process.
I assume that these Projects are File-Based website which has built-in ASP.NET Development Server. In this case, the debugger will attach to Project1's built-in server while pressing F5, and then you need to automatically attach Project2's built-in server
to debugger by entering Debug -> Attach to Process.. -> Select Project2's built-in server process-> Click Attach button. If you do so, the Breakpoints inserted in Project2 will be hit.
If this doesn’t help you, please feel free to let me know.
I hope this helps.
Thomas Sun
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
I tried but no luck, my project does not make use of Built-in ASP.NET development server instead i use the IIS Web Server. I use the firefox to run my application and attached the firefox process.
If your projects are Http-Based, the Breakpoints will be hit. In your case, please make sure that the symbols are loaded by debugger.
If the debugger doesn’t load the .pdb file, the Breakpiont cannot be hit and you will get the warning message above. So please make sure that the symbols are loaded by the debugger. We can check if the debugger loads this pdb file by the following steps
(Debug->Windows->Modules), and then select your your project's module to see if the pdb file is loaded. If the pdb file is not loaded, we can load it manually (Right clight the dll model->Select Load Symbols).
I hope this helps.
Thomas Sun
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
I tried but no luck, my project does not make use of Built-in ASP.NET development server instead i use the IIS Web Server. I use the firefox to run my application and attached the firefox process.
Kind Regards
Bhavesh
If these two projects are running under IIS and you start it with FireFox without using Visual Studio. You need to use Visual Studio debugger to attach to IIS process instead of FireFox process after you load the first Project from FireFox.
I hope this helps.
Thomas Sun
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
I tried that but no luck, i delete the following dll files.
C:\Inetpub\wwwroot\<project1>\bin\<project1>.dll
C:\Inetpub\wwwroot\<project2>\bin\<project2>.dll
After then i build project 1 followed by project 2 and finally re-build the solution.
I'm using visual studio 2005, to load the starting project, i use the "Debug" > "Start Debugging", i can only debug the code on the startup project which project 1 and unable to debug on project.
bvaland80
None
0 Points
41 Posts
The breakpoint will not currently be hit. No symbols have been loaded for this document.
May 03, 2008 10:30 AM|LINK
Hi Experts
I have visual studio 2005 SP1 installed on my laptop windows vista SP1. I have a solution that holds 2 projects and the aspx page on the first project (startup project) calls second project webform.aspx. The problem is that the second project debug does not work because it is not a startup project, when i set it as startup project the debug works fine.
I need to have first project as startup project i would like to debug pages on both the projects.
The breakpoint on second project show yellow triangle with below message.
"The breakpoint will not currently be hit. No symbols have been loaded for this document."
I have tried below options already.
Can anyone suggest how to debug on both projects?
Kind Regard
Bhavesh
Swati Jain
Participant
1353 Points
749 Posts
Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.
May 03, 2008 11:10 AM|LINK
this url can help you out http://simeonpilgrim.com/blog/2007/10/05/visual-studio-multiple-startup-projects/
try this also
right click solution-->Project dependencies-->here set the project dependencies if any
bvaland80
None
0 Points
41 Posts
Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.
May 03, 2008 01:15 PM|LINK
Thanks for your quick response.
I have tried that but no luck.
Project 2 depends on Project 1
Under startup projects i have project 1 as my startup project followed by project 2
Kind Regards
Bhavesh
Thomas Sun –...
All-Star
64969 Points
5621 Posts
Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.
May 06, 2008 08:28 AM|LINK
Hi,
How did you call Project2's Aspx Page from Project1's Aspx Page? Did you just redirect the user from Project1 to Project2? If you want to debug these projects once, you need Visual Studio debugger to attach these Projects's host process.
I assume that these Projects are File-Based website which has built-in ASP.NET Development Server. In this case, the debugger will attach to Project1's built-in server while pressing F5, and then you need to automatically attach Project2's built-in server to debugger by entering Debug -> Attach to Process.. -> Select Project2's built-in server process-> Click Attach button. If you do so, the Breakpoints inserted in Project2 will be hit.
If this doesn’t help you, please feel free to let me know.
I hope this helps.
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
bvaland80
None
0 Points
41 Posts
Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.
May 06, 2008 08:53 AM|LINK
Thanks
I tried but no luck, my project does not make use of Built-in ASP.NET development server instead i use the IIS Web Server. I use the firefox to run my application and attached the firefox process.
Kind Regards
Bhavesh
Thomas Sun –...
All-Star
64969 Points
5621 Posts
Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.
May 06, 2008 09:35 AM|LINK
Hi,
If your projects are Http-Based, the Breakpoints will be hit. In your case, please make sure that the symbols are loaded by debugger.
If the debugger doesn’t load the .pdb file, the Breakpiont cannot be hit and you will get the warning message above. So please make sure that the symbols are loaded by the debugger. We can check if the debugger loads this pdb file by the following steps (Debug->Windows->Modules), and then select your your project's module to see if the pdb file is loaded. If the pdb file is not loaded, we can load it manually (Right clight the dll model->Select Load Symbols).
I hope this helps.
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
bvaland80
None
0 Points
41 Posts
Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.
May 06, 2008 11:20 AM|LINK
Thanks for your response.
I have checked the module windows and discovered that the my second project's ddl does not even exist.
Why my second project dll not loaded?
Kind Regards
Bhavesh
Swati Jain
Participant
1353 Points
749 Posts
Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.
May 07, 2008 12:21 PM|LINK
Hi Bhavesh,
Delete the dlls of both the project
Build every project indivisualy
rebuild the solution
Thomas Sun –...
All-Star
64969 Points
5621 Posts
Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.
May 08, 2008 03:08 AM|LINK
If these two projects are running under IIS and you start it with FireFox without using Visual Studio. You need to use Visual Studio debugger to attach to IIS process instead of FireFox process after you load the first Project from FireFox.
I hope this helps.
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
bvaland80
None
0 Points
41 Posts
Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.
May 10, 2008 01:45 PM|LINK
Thanks for your suggestion.
I tried that but no luck, i delete the following dll files.
After then i build project 1 followed by project 2 and finally re-build the solution.
I'm using visual studio 2005, to load the starting project, i use the "Debug" > "Start Debugging", i can only debug the code on the startup project which project 1 and unable to debug on project.
Any help appreciated?
Kind Regards
Bhavesh