471,354 Members | 1,181 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Debugging when files are out of sync

I have a file referance for some of our assemblies, if someone else changes
the code and I try to debug it I receive the following error:

The source file is different from when the module was built. Would you like
the debugger to use it anyway?

If I choose NO and hit cancel then I get the following error:

There is no source code available for the current location.

Problem is I never get the original error again. If I delete the project off
the drive and re-open it I get back to the original error. If I duplicate
the issue adn compare the before/after of the directory I don't see any
changes in files.

Question is, how do I get back the original error?
Thanks
Wayne
Feb 6 '06 #1
2 5598
vj
Your project is referencing a DLL.., that has PDB file. This PDB file has to
be current for what func. you are expecting. I have experienced below
problem... Do tell if you have referenced the DLL and set CopyLocal = true,
in your properties for the referenced DLL., if you have set it to false and
reference to DLL from the original location i.e. where it is being complied
and outputted..

HTH..

VJ

"Wayne Sepega" <Me******@community.nospam> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
I have a file referance for some of our assemblies, if someone else changes
the code and I try to debug it I receive the following error:

The source file is different from when the module was built. Would you
like the debugger to use it anyway?

If I choose NO and hit cancel then I get the following error:

There is no source code available for the current location.

Problem is I never get the original error again. If I delete the project
off the drive and re-open it I get back to the original error. If I
duplicate the issue adn compare the before/after of the directory I don't
see any changes in files.

Question is, how do I get back the original error?
Thanks
Wayne

Feb 6 '06 #2
I understand the issue that is not my question.

I want to know what controls the error message I get. If I hit No, then
cancel I get the "There is no source code available for the current
location."

I want to know how to get back to the original message with out deleting the
app and getting it from VSS.

Wayne

"vj" <vi********@yahoo.com> wrote in message
news:%2********************@TK2MSFTNGP14.phx.gbl.. .
Your project is referencing a DLL.., that has PDB file. This PDB file has
to be current for what func. you are expecting. I have experienced below
problem... Do tell if you have referenced the DLL and set CopyLocal =
true, in your properties for the referenced DLL., if you have set it to
false and reference to DLL from the original location i.e. where it is
being complied and outputted..

HTH..

VJ

"Wayne Sepega" <Me******@community.nospam> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
I have a file referance for some of our assemblies, if someone else
changes the code and I try to debug it I receive the following error:

The source file is different from when the module was built. Would you
like the debugger to use it anyway?

If I choose NO and hit cancel then I get the following error:

There is no source code available for the current location.

Problem is I never get the original error again. If I delete the project
off the drive and re-open it I get back to the original error. If I
duplicate the issue adn compare the before/after of the directory I don't
see any changes in files.

Question is, how do I get back the original error?
Thanks
Wayne


Feb 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by amber | last post: by
7 posts views Thread by Mikael Östberg | last post: by
10 posts views Thread by Christina N | last post: by
2 posts views Thread by Tyrant Mikey | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.