473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 5658
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: amber | last post by:
Hello, I'm having some weird things happen when I step through my code. I'm working with a large solution, containing a few projects, with many classes/forms etc. I'm trying to solve a minor...
7
by: Mikael Östberg | last post by:
Hello all! I have been working on a project for some time now and yesterday, my debugger stopped working. It is a class library which I run from a Win32 test app, so no IIS involved at this...
12
by: deko | last post by:
Is there a quick and dirty way to delete all files in a given directory? perhaps something like this: Set objFile = CreateObject("Scripting.FileSystemObject") objFile.DeleteFile "all files in...
10
by: Christina N | last post by:
When compiling my ASP.Net application, VS puts the new DLL under the local cached directory 'VSWebCache' in stead of on the server. How can I make it save the DLL file on the server when compiling?...
2
by: Tyrant Mikey | last post by:
New oddness in debugging ASP.NET Web applications. (First off, I'm using VS.NET 2k3 to write an ASP.NET Web application in Visual Basic .NET.) I have a base class, which derives from...
5
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an...
3
by: iKiLL | last post by:
Hi , I am trying to debug a problem with a Windows Mobile Application. I need the PDA to Sync(I have writen the sync process myself using a web service) using GPRS while Debugging from the VS...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
2
jwwicks
by: jwwicks | last post by:
C/C++ Programs and Debugging in Linux This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.