What's the reason for error message? I am using VS 2010 professional edition

Visual Studio-2010

Visual Studio-2010 Problem Overview


What's the reason for error message "The snapshot is out of date and cannot be used anymore because type tree has been updated, A new snapshow needs to be acquired"?

This error appeared right after I launched VS2010 and added username/pwd to connect to TFS repository.

I am using VS 2010 professional edition.

Visual Studio-2010 Solutions


Solution 1 - Visual Studio-2010

It happened to me with VS2012 as well after loading the project without source control binding, a local simple WinForms project. All I needed to do was Clean & Rebuild. After that the problem was solved.

Solution 2 - Visual Studio-2010

This is a bug in Visual Studio. According to http://connect.microsoft.com/VisualStudio/feedback/details/742959/the-snapshot-is-out-of-date "We've taken a closer look at this problem and it isn't one that we'll be able to solve in the next release of Visual Studio."

They recommend waiting around until the background language parser service is done (or, in other words, don't try to be too productive there partner.) My experience is that closing all documents, cleaning the solution, rebuilding it and then closing and re-opening with a pause after does remove the error.

Until you do something silly, like edit code. Then all bets are off again as to when it reoccurs.

Solution 3 - Visual Studio-2010

I had a similar issue with VS2012 and after rebuilding the solution twice, I still saw the same error message.
Following an advice from a post from this site, I closed the Designer tab, reopened it from the Solution Explorer, and the problem was resolved.

Solution 4 - Visual Studio-2010

I got this error too, but after I unload project and reload project, the problem was resolved.

Solution 5 - Visual Studio-2010

Simply restarting Visual Studio 2012 was a workaround for me, but it kept happening about every hour and having to restart visual studio that often was very annoying.

I also found this post which suggests that the Productivity Power Tools are the problem and to simply turn off the Automatic Brace Completion in Tools->Options->Productivity Power Tools. Since making this change I haven't seen the error message again :)

I'll note though that I am using Visual Studio 2012 and the OP is using Visual Studio 2010, but the Productivity Power Tools are available for VS 2010 too, so this may still fix the problem in VS 2010.

Solution 6 - Visual Studio-2010

The same issue persists in VS2013, but no amount of Clean/Rebuild or restarting VS will help. The only way I can do a successful publish, is to disable the AutoT4MVC extension.

Solution 7 - Visual Studio-2010

I got this error too. I closed Visual Studio 2012 and opened it again and the error was gone.

Solution 8 - Visual Studio-2010

I got this error when I had conflicting class names / namespaces. I was referencing a UserControl from a different DLL in my XAML file which had the same name as my XAML file (class name). Maybe this helps.

Solution 9 - Visual Studio-2010

I used Visual Studio 2012, and just faced this error on my Windows 8. It seems like Turning off the VM and restarting Visual Studio fixed the issue.

Solution 10 - Visual Studio-2010

I just got this with VS2010.

I had a form with a user control (UCa) with a user control (UCa) from a different project on it. Made a change to the UCb then flicked to the designer for the form and boom! Snapshot error.

Resolved by a full clean and then rebuilding just the UCb project before building the rest of the project.

Solution 11 - Visual Studio-2010

I'm using Visual Studio 2012, and I got this error when starting Visual Studio, letting TFS connect to the server, and THEN opening my solution. The fix was simply closing VS and launching the solution directly.

Solution 12 - Visual Studio-2010

I'll throw my two cents in here as well.

I've tried every combination of Clean, Rebuild, Restart, etc. What I've found is that restarting Visual Studio usually makes the problem go away for at least one Publish. Here's the weird part, though. You can also fix the problem by doing absolutely nothing. If you just let Visual Studio sit for about a minute or two, and then publish, it will usually work just fine. There's some background voodoo going on here, and waiting for it to finish seems to do the trick.

I have a solution with two parts that need published. One is a WCF service application, and the other is the ASP.NET MVC5 website itself. Anytime I publish the services, and then try to publish the site I'll see this error. I can publish the services, restart VS, and then publish the site, OR I can publish the services, go get a drink, and then publish the site. As long as I give VS a chance to "settle" between any kind of rebuild and the publishing of the site, everything seems to work as expected.

Take a walk, come back, problem solved. OR if you don't have the time. Clean, Rebuild, Restart, Publish (lather, rinse, repeat).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionrt2800View Question on Stackoverflow
Solution 1 - Visual Studio-2010Narcís CalvetView Answer on Stackoverflow
Solution 2 - Visual Studio-2010GodekeView Answer on Stackoverflow
Solution 3 - Visual Studio-2010NolonarView Answer on Stackoverflow
Solution 4 - Visual Studio-2010Will WangView Answer on Stackoverflow
Solution 5 - Visual Studio-2010deadlydogView Answer on Stackoverflow
Solution 6 - Visual Studio-2010Attila SzaszView Answer on Stackoverflow
Solution 7 - Visual Studio-2010Sachin KainthView Answer on Stackoverflow
Solution 8 - Visual Studio-2010MarcelView Answer on Stackoverflow
Solution 9 - Visual Studio-2010Rahul SoniView Answer on Stackoverflow
Solution 10 - Visual Studio-2010Ryan BuddicomView Answer on Stackoverflow
Solution 11 - Visual Studio-2010BCAView Answer on Stackoverflow
Solution 12 - Visual Studio-2010MelView Answer on Stackoverflow