Code Comments
Programming Forum and web based access to our favorite programming groups.I am debugging a VB.NET application which uses a few assemblies. These assemblies are also open as a project under the same solution. However, I get the following error: There is no source code available for the current location when I try to debug the application. This error is thrown at random code lines. At times it will skip the break points as well. It has been very annoying to me and I haven't yet got any solution to this yet. I have also tried deleting all the dlls and exes and recompiling the solution (debug mode). I have also noticed that, if I Step into a line of code it goes to the next line in debug mode. But then it throws the same error on another line. Whereas, if I step over the line of code, it gives the same error on the same line. Any help appreciated. Thanks RAJ
Post Follow-up to this messageAdditional Info: I am using Windows XP SP1a, Visual Studio .NET 2003, IIS 5.1. Have tried deleting all .exes, dlls and pdb files, the problem still persists. Thanks RAJ "RAJ" <rjalori@hotmail.com> wrote in message news:ObC1Pm%23mEHA.3564@tk2msftngp13.phx.gbl... > I am debugging a VB.NET application which uses a few assemblies. These > assemblies are also open as a project under the same solution. However, I > get the following error: > There is no source code available for the current location > when I try to debug the application. This error is thrown at random code > lines. At times it will skip the break points as well. It has been very > annoying to me and I haven't yet got any solution to this yet. > I have also tried deleting all the dlls and exes and recompiling the > solution (debug mode). > I have also noticed that, if I Step into a line of code it goes to the next > line in debug mode. But then it throws the same error on another line. > Whereas, if I step over the line of code, it gives the same error on the > same line. > > Any help appreciated. > Thanks > > RAJ > >
Post Follow-up to this messageCracked 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 Hope this helps! "RAJ" <rjalori@hotmail.com> wrote in message news:ObC1Pm%23mEHA.3564@tk2msftngp13.phx.gbl... > I am debugging a VB.NET application which uses a few assemblies. These > assemblies are also open as a project under the same solution. However, I > get the following error: > There is no source code available for the current location > when I try to debug the application. This error is thrown at random code > lines. At times it will skip the break points as well. It has been very > annoying to me and I haven't yet got any solution to this yet. > I have also tried deleting all the dlls and exes and recompiling the > solution (debug mode). > I have also noticed that, if I Step into a line of code it goes to the next > line in debug mode. But then it throws the same error on another line. > Whereas, if I step over the line of code, it gives the same error on the > same line. > > Any help appreciated. > Thanks > > RAJ > >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.