Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
When debugging "There is no source code available at the current location"...why?

Locked When debugging "There is no source code available at the current location"...why?

  • viernes, 27 de enero de 2006 14:09
     
     

    I am attempting to step thru my code for debugging, but keep getting the above error code right after closing an instance of OpenFileDialog. Here is my code:

    OpenFileDialog dlg = new OpenFileDialog();

    dlg.FileName = "*.hex";

    dlg.Filter = "HEX files (*.hex) |*.HEX| All files (*.*) |*.*";

    dlg.Title = "Select P2140 Firmware file";

    if (dlg.ShowDialog() == DialogResult.OK)

    {

    FileName = dlg.FileName;

    ......

    I can step through the first 4 lines OK. Then at line 5 the OpenFileDialog window opens allowing me to select a file, but when it closes I get the error message "There is no source code available at the current location". I then cannot step to line 6 (FileName = dlg.FileName). Am I doing something wrong?

     

Todas las respuestas

  • lunes, 30 de enero de 2006 14:59
     
     Respondida

    I took your code word for word and it worked fine.

    The fact that you are getting "a no source code available" error would seem to suggest that the error is occurring within the dialog box itself, which sounds a little strange.  Maybe there is something about the particular file you are choosing, although if you can select it, I don't know what would be the problem.

    Regards,

    Dave

  • viernes, 02 de junio de 2006 9:09
     
     

    Hi Friends,

             In my case i copied the compiled code from a different machine to my machine. In that case the dlls(bin/debug folder) have been copied from the previous machine. The locations where the break points have been placed have now changed. So I was getting the error. After I cleared all the breakpoints and deleted the dlls and pdbs form the debug folder and built the solution again this was working fine.

    So I hope this solves your problem(If its the similar case ;))

    Happy coding

     

  • jueves, 19 de julio de 2012 10:29
     
     

    Hi Friends,

             In my case i copied the compiled code from a different machine to my machine. In that case the dlls(bin/debug folder) have been copied from the previous machine. The locations where the break points have been placed have now changed. So I was getting the error. After I cleared all the breakpoints and deleted the dlls and pdbs form the debug folder and built the solution again this was working fine.

    So I hope this solves your problem(If its the similar case ;))

    Happy coding

     

    Thats working in my machine