This source file has changed. It no longer matches...

  • Thread starter Thread starter Randy
  • Start date Start date
R

Randy

I'm using VS 2003. I have a c# ASP project. Lately, when I've been running
the project in the IDE, I get a dialog which says...

"This source file has changed. It no longer matches the version of the file
used to build the application being debugged"

I've gone into the Tools/Options and went to the Debugging/Edit and Continue
and tried turning it off (I originally turned it on), shut down the project
and restarted...but I'm still getting the message intermittently.

Is there a way to stop this from happening?



Thanks

Randy
 
There are a couple of times when this happens. The first is if you are using
..NET test files (Team Tester or Team Suite). In these cases, rebuild works
fine.

The other is if one of the libraries was compiled in release but still has a
PDB file that matches an old version. If so, kill the PDB files before you
run again.

It is also theoretically possible that you have the temporary ASP.NET files
out of sync. If this is the case, shut down Visual Studio. Delete the
temporary ASP.NET files (%windir%\Microsoft
..NET\{FrameworkVersion}\Temporary ASP.NET files).

Are you on Vista by any chance? If so, all bets are off. Visual Studio sucks
hogs on Vista. :-)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
 
Back
Top