Groups | Blog | Home
all groups > vb.net > january 2005 >

vb.net : There is no source code available for the current location


Ray
1/18/2005 11:09:01 PM
I have an application that is suddenly having some very strange problems. If
I step through the following code;
With AppSetting
conRules.ConnectionString = "Data Source=" & .Svr & ";Initial Catalog=" &
..DB & ";user ID=" & .User & ";password=" & .PWord & ";Persist Security
Info=True;Packet Size=4096;"
conRules.Open()
End With
I get the above error message however after clearing the message I can't
step through the code but if i press F5 the code continues to run.
If however I just run the code, the error message doesn't appear?
This seems to create another problem - all breakpoints following the above
code are ignored. It doesn't appear to matter if I step through the
offending code or put the first breakpoint after it - the code just runs
without stopping.
Even stranger, I started a new project to test the above couple of lines and
they work perfectly?
Needless to say any suggestions to correct this problem would be appreciated.
Cor Ligthert
1/19/2005 8:43:07 AM
Ray,

I answered you in the newsgroup microsoft.public.dotnet.general on this one.

Cor

Ray
1/26/2005 4:55:02 PM
Hi Cor,

Finally determined the cause of the error was a timer I was using. Once I
removed the timer I could step through the code without any problems and all
breakpoints worked. Once the code was debugged I could add the timer again
and the code runs correctly once compiled.

[quoted text, click to view]
AddThis Social Bookmark Button