So here\'s my pickle. I\'m using Visual Studion 2012 and been developing my application without a hitch. I opened VS today and I can open all the files as I normally would (cs
Well, this might not have fixed your issue, but what I did was delete my .suo files, and it stopped prompting me for files that were long-since gone.
I'm just posting this here for others who might come along and find this helpful.
I have had this problem randomly with VS 2012, and though I haven't found the root cause (I feel it is a bug in Visual Studio because it doesn't happen in 2010 in the same projects), I found how to disable the annoying symptom and just proceed with debugging. There is an option to turn off the checksum file check, in Tools -> Options -> Debugging -> General:
Require source files to exactly match the original version Tells the debugger to verify that a source file matches the version of the source code used to build the executable you are debugging. If the version does not match, you’ll be prompted to find a matching source. If a matching source is not found, the source code will not be displayed during debugging.
http://msdn.microsoft.com/en-us/library/85yzd16c.aspx
The downside is, if you have breakpoints in a particular file that is affected by this issue, then you may find VS won't trace into that file, so this option should only be used (IMO) if there are files causing trouble that you don't care to debug.
I will update my answer as I find more.
I had this same error and it was caused by my dlls in one project not getting up to date with another project dependency. I tried rebuilding, deleting bin files, clearing cache and a few other things. None of it worked for me.
Here is a simple example of my scenario. Project A was dependent on Project B. Whenever Project A hit a point in debugging where it called a method in project B I received the error.
What worked to fix my issue:
Now you should be able to step through both project's code.
I also had this issue with Visual Studio 2013 (a.k.a. version 12.0), driving me nuts. Repairing, uninstalling, reinstalling, deleting .dlls, .csprojs, .suos, cleaning, rebuilding. Nothing helped. As a last resort before doing a clean install of Windows, I went through these steps which successfully solved the problem:
Done, and it worked!
On a side note, my parallel installs of VS2010 and VS2012 was not affected at any point of the issue I was having with VS2013.
https://stackoverflow.com/a/10028684/4222878 works perfect for me. After deleting file path in solution debug ignore list you should rebuild entire solution.
In my case the files had some unicode characters or other encodings, possibly a result of corrupted file. I right clicked-> Open With...-> and switched to the "C# Editor with encoding" option. Note this will prompt every single time to ask if it should auto detect encoding, which is very annoying but hopefully you can find the offending characters and fix them.