Near Shore Consulting Ltd.
View Yves Rochon's profile on LinkedIn
Our Blog
Our Blog
There is no source code available for the current location
Location: BlogsNear Shore Blog    
Posted by: admin 3/24/2006 9:26 AM

I kept getting this debugger error while attempting to step through some code I had written.  This was a Windows Forms application written in Vb.net 2003.

To get around this problem, I changed the way one of my forms was working.  In retrospect, the original implementation was not ideal anyway. 

During the form load, I would enable a timer control, and load data in the Timer's tick event.  The Form Load event would enable the Timer.  What I was gaining from this is that the form would be visible, and the application would appear to be more responsive.  I later decided to use the Me.Show() statement which forces the window to draw itself.  After that statement, I would call code to load data from various sources.

When debugging the application in its original state, I kept getting this compiler error:

There is no source code available for the current location

I found this solution on http://www.codecomments.com in a post by RAJ:

"Cracked it! I can't believe what was causing this!
I had a timer on a form. I was calling a function which in turn called a few
functions of another assembly. Whenever, I tried to debug inside the timer
event (tick) it used to give me this error. If I remove the code, outside
the timer and invoke it using a button_click event then it worked perfectly
all right. I came across the following article while searching on Google:
http://support.microsoft.com/defaul...b;EN-US;Q329247"

Permalink |  Trackback
Blog
Near Shore Consulting  |  Terms Of Use  |  Privacy Statement