Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Pro 2012 crashes with a MissingFieldException immediately after opening a solution

I have downloaded some source code from our TFS and my setup is via VPN. I installed the same VS2012 installer in my machine at home and my machine at the office.

As soon as I open the solution Visual Studio 2012 crashes. I tried uninstalling, running CCleaner, then re-installing but I am still having errors.

The following facts are relevant:

  • I have admin rights to this PC
  • It does have other versions of Visual Studio installed
  • I have the latest Windows 7 and Visual Studio 2012 patches

The following is from the crash report:

Problem signature: Problem Event Name: CLR20r3
Problem Signature 01: devenv.exe
Problem Signature 02: 11.0.50727.1 Problem Signature 03: 5011ecaa Problem Signature 04: Microsoft.VisualStudio.Progression.LanguageService.CSharp
Problem Signature 05: 11.0.50727.1
Problem Signature 06: 5011cc19
Problem Signature 07: 131
Problem Signature 08: 43
Problem Signature 09: System.MissingFieldException
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033 Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409 If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt

like image 458
user1465073 Avatar asked Jan 15 '23 17:01

user1465073


2 Answers

The solution for me was to download and apply the first update from the official download page.

I've had the exact same problem with VS 2012 Ultimate.

The problem seems to be that at least the ISO-download of the 3 official downloads comes with the same, outdated version as yours, and I got the exact same exception every time I opened a solution.

like image 64
Hackworth Avatar answered Apr 27 '23 09:04

Hackworth


Hey renamed the "ComponentModelCache" folder in %localappdata%\microsoft\visualstudio\11.0\

This resolved the issue.

like image 37
Tim Avatar answered Apr 27 '23 08:04

Tim