0

I have just a form in my VB.Net project and even when I try debugging that - there is nothing going on besides the form being loaded - I get the error:

No symbols are loaded for any call stack frame. The source code cannot be displayed.

I've tried using this solution from StackOverflow, but this is either oudated or pertains only to C++. I've also tried using this article from the MSDN Forum, however, this also did not seem to help as I wasn't quite sure what the answer was telling me to do.

Has anybody else came across this problem and found a solution? It's very frustrating that I'm receiving this error and I only have a form showing up.

Edit: I found another solution here but I don't quite know what that means ... yet. I was going to look into this but I'd really like to know why this doesn't work when Application Framework is enabled.

Community
  • 1
  • 1
Adam Beck
  • 1,271
  • 2
  • 14
  • 25

3 Answers3

0

Make sure you are running in debug and not release. Build>Configuration Manager>Active Solution Configuration = Debug

Matt Wilko
  • 26,994
  • 10
  • 93
  • 143
0

Get rid of all compiler warnings/errors and rebuild. Look at your Sub New() and form_load events closely. Dodgy form inheritance can cause this. Dodgy module level vars also. From memory even when you fix the problem you need to rebuild to get the designer back. Might be a my.Settings issue.

Sorry for imprecise advice, I have had this problem before but I cannot remember the details.

SSS
  • 4,807
  • 1
  • 23
  • 44
  • There is no Sub New() since I have the "application framework" option enabled. This essentially hides all the necessary startup procedures - including the Sub Main() and EnableVisualStyles() - and they cannot be seen by the user. As for the Form_Load event, I only have a message box that should display. As for the references, it is the most basic Windows Forms Application. Any references would be the defaults set by Visual Studio. – Adam Beck Jul 21 '11 at 18:12
0

A quick workaround is to just uncheck "Enable unmanaged code debugging" and "Enable the Visual Studio hosting process" in the Debug section of the Project Properties.

Adam Beck
  • 1,271
  • 2
  • 14
  • 25