The Breakpoint Will Not Currently Be Hit. No Symbols Have Been Loaded For This Document

asp.netdebugging

I've Googled this particular problem, but cannot seem to find a working solution.

Symptoms: After adding a breakpoint in the codebehind for an aspx page in a web application project, the breakpoint displays in the margin as a hollowed out red circle with an exclamation point enclosed in a yellow triangle in the bottom right of the circle. When mousing over the breakpoint, the message "The breakpoint will not currently be hit. No symbols have been loaded for this document."

Note: I'm trying to hit the breakpoints by "attaching to [a] process", namely w3wp.exe, located on a remote computer.

Things I have tried.

  1. Recompiling other projects in the solution.
  2. Checking to make sure that the configuration for each of the projects and the website in the solution is set to "Debug" on "any pc".
  3. Closing the solution and restarting Visual Studio.
  4. Restarting IIS.
  5. Reattaching to the process (w3wp.exe).

I've been trying to hit the breakpoints using Internet Explorer version 9 and Mozilla FireFox version 4. In each case, the breakpoints are never hit.

Any ideas are welcome! Thanks!

Andrew

Best Answer

If you have more than one solution in your project.

Right click on your solution --> Properties

Set as --> Startup Project