Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debug - There is no source code available for the current location 2

Status
Not open for further replies.

keithinuk

Technical User
May 14, 2002
56
GB
Hello
I'm getting the above message whenever I try to debug using Ctrl/Break. It's only just started to be a problem and I haven't conciously changed anything in the IDE.
If I set a breakpoint and F5 it skips over the breakpoint.
I can't even step directly into the code from the IDE by pressing F11.
Any ideas please.
Thanks a lot
Keith
 
Few things...

First, is the project type specified to be "Debug", rather than "Release" ?? It's a dropdown box up top in VS.

Second, right click on the project, ask for properties, go to:
Configuration-->Debugging

And make sure that debugging is enabled on the project.

If it is, then I'd suggest going into your /bin folder, deleting both the .dll and the .pdb, and recompile, forcing VS to make them over again.

If that doesn't work, then "repent and reboot" all machines involved.

I've yet for the above steps not to fix any debugging problems I've had.

hth :)
paul
penny1.gif
penny1.gif
 
Excuse the language but you're a bloody GENIUS and a gentleman.
The project type was set to Release and unmanaged code debugging was unticked in configuration.
I'm back in business.
Thank you !!!!!!!!!
Keith
 
I tried what you suggested and still got the error. This is my scenario:

I have an ASP button web control on the ASPX page. I typed the VB Script function in the body section of the ASPX page (I also tried it in the head section). I used the "add attributes" method on the code behind page to add the "on click" attribute to the button's declaration tag calling the function. At runtime when the button is clicked I get the "no source code available for the current location" error.

In addition, I am having similar difficulties calling a client-side function in conjunction with an HTML button control (i.e. <input type=&quot;button&quot;>). In this case I get the VB Script type mismatch error, which means that the source code for the function call cannot be found. This does work the way it should sometimes, but not others.

I've tried everything I could think of and still get errors. Any suggestions would be greatly appreciated!
 
Thank you so much link9!!

I am rather new to NET and I could not figure out why it wouldn't stop at my break points anymore and was getting annoyed w/ NET.
 
and was getting annoyed w/ NET.

thats a one day recurring event between 0800 and 2200

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top