There is no source code available for the current location

  • Thread starter Thread starter Frasse
  • Start date Start date
F

Frasse

Hello all,

when i'm stepping through my code the IDE suddenly do not find source
code anymore. A window pops up and shows the message "There is no
source code available for the current location".

How can i get rid of this feature/bug?

I have built all from scratch ,cleared all precompiled files,
unchecked the "Unmanaged code debugging" checkbox. Still the same
message.
 
Normally when I see this message it is due to attempting to debug into an assembly that is no longer associated with VS.NET. I.E. I have a component that I wrote sometime ago that teh source code is not on this system.

There is one other time that I have seen this happen which is when the assemply that I am debugging has been set to read-only, I re-complied it in a different instance of VS.NET and the current copy of the DLL did not get updated. Now when I attempted to debug, as the source lines no longer match the IL, I would get this message.

HTH
 
This can happen when you hit a method of a control you have compiled.
Sometimes, you will see it with the Framework, but most of this is coded to
ignore (step over).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
 
Back
Top