Showing posts with label vs2008. Show all posts
Showing posts with label vs2008. Show all posts

Friday, August 5, 2011

Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document"

Got this message while trying to debug a web service in VS2008: "The breakpoint will not currently be hit. No symbols have been loaded for this document."
Found that the following (from comments here) fixed it for me:
"If you are using the vb profile, then when you hit F5 you will get a debug build, but if you hit build you will get a retail executable. The simplest way to get things working again is to go to delete the bin directory under the solution/project path and then hit F5 again."

Wednesday, October 14, 2009

VS Debugger: No Source Code Available for the Current Location

When the Visual Studio debugger can't find the source for your code, it will prompt for a location. If you make the mistake of hitting "cancel" on that dialog, it will mark it down on the solution properties under "do not look for these source files". If it's not removed from that list, then the debugger will display the "No Source Code Available for the Current Location" dialog box while you pull your hair out.

This helped: MSDN article about the dialog box. (Found this reference through this forum.)

Look at the solution properties. Under "Common Properties," go to "Debug Source Files". Look in the "Do not look for these source files" box and remove the source file that it's having issues with. While you're at it, add directories as needed in the "Directories containing source code" box.

(this refers to VS2008)

Wednesday, September 17, 2008

VS2008 compile error: cannot find class name

If the project was converted from VS2003 to VS2005 or VS2008, you can get a compile error on Global.asax and various controls and forms.

Check if the class is declared as a partial class. If yes, then see if the asax (or ascx) is using "Codebehind". Try changing that to "Codefile".

Other notes here. And notes about Global.asax in ASP.NET 2.0.