16

Every time I try to debug one of my apps I get the below error message. Anyone have any ideas? I tried running Visual Studio in safe mode but I get the same thing. I also tried to repair the install and completely reinstall it with no luck :(. The full Problem Signature is this:

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.IntelliTrace.Package.11.0.0
Problem Signature 05: 11.0.50727.1
Problem Signature 06: 5011dad8
Problem Signature 07: 311
Problem Signature 08: 1f1
Problem Signature 09: System.AccessViolationException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Error Image

Community
  • 1
  • 1
Chris
  • 455
  • 1
  • 4
  • 13
  • 1
    try typing "CLR20r3" into google – Mitch Wheat Nov 02 '12 at 05:11
  • check the windows event log for an actual error... – Mitch Wheat Nov 02 '12 at 05:12
  • 2
    uninstall all extensions on VS2012 – Edi Wang Nov 02 '12 at 05:15
  • 2
    Crashes like these are environmental. To quickly move on with your life, use Tools + Options, IntelliTrace, General. Untick the "Enable" checkbox. – Hans Passant Nov 02 '12 at 14:33
  • possible duplicate of [Deciphering the .NET clr20r3 exception parameters P1..P10](http://stackoverflow.com/questions/4052770/deciphering-the-net-clr20r3-exception-parameters-p1-p10) – Hans Passant Nov 02 '12 at 14:34
  • I disabled IntelliTrace and still get the same error. When it crashes if I debug I find this exception message: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." – Chris Nov 02 '12 at 15:17
  • I recommend you try my answer in the following post http://stackoverflow.com/questions/3526906/visual-studio-2010-hangs-up-when-opening-a-sql-file/30326203#30326203 – Omgee Cares May 20 '15 at 07:32

10 Answers10

13

Not sure what was wrong but to fix it I had to delete the .sln files and the .csproj files and get them from TFS again for it to work. Don't know what was wrong with them but that worked. Thanks for your help guys!

Edit:

Above turned out to only work for a small amount of time. What seems to have made it work (for the last hour at least) was changing the number of Maximum Worker Processes in IIS back down to 1. Completely lost on why this worked :/

Chris
  • 455
  • 1
  • 4
  • 13
  • 4
    Studio binds to the running w3p.exe process which works as expected under 1 worker process. Upon allowing multiple worker processes to exist studio cannot track all the independent threads and chokes on the data which reads as corrupted memory. Nice find. – VulgarBinary Nov 05 '12 at 22:30
  • In order to change the Maximum Worker Processes in IIS7, select Advanced Options under the application used in Application Pools. However, this fix does not work for me. – Myles Baker Jan 02 '14 at 20:51
7

The issue is with web essentials, open VS 2012 Tools - Extensions and Updates - Uninstall web essentials

You can reinstall it if you want, seems to work fine

Thanks,

Sebastian

Sebastian Castaldi
  • 8,580
  • 3
  • 32
  • 24
6

In may case the problem was caused by .NET Reflector. After uninstalling .NET Reflector debugging was working again without any problem.

Boris
  • 61
  • 1
  • 1
  • 1
    Thanks.. this did it.. I guess it is the trial version when expires causes this issue. – Mukus Feb 04 '14 at 02:04
  • I gave this a shot with Ultimate 2012 with Reflector and it worked like a charm. Thank you! –  Apr 22 '14 at 22:05
4

Since it had to do something with the debugging-environment of vs, I found a solution here:

http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/0376db8f-4761-4ae5-9af2-98c53216318a#VS_IDE_unexpected_problems

It says at a) to reset the local user settings for the IDE using the command "devenv /ResetSettings" (in command prompt - the devenv.exe is located in VS-Install-Path\Common7\IDE) to eliminate the related potential settings problem. All customizations to the VS settings get resetted - this worked for me - no uninstallation necessary.

  • I had some corrupted add-ins. I have no idea what initiated the problem, but it was for an expired trial license of some software so I was able to delete without consequence. – Myles Baker Jan 02 '14 at 22:15
1

http://social.msdn.microsoft.com/Forums/eu/vssetup/thread/0376db8f-4761-4ae5-9af2-98c53216318a#VS_IDE_unexpected_problems

And if you would rather just read it here:

When unexpected problems occurs, the key point is trying to isolate potential causes. So it’s good to make the situation as simple as possible.

There are a few things we can try if Visual Studio IDE is not working as expected: a) Try to run devenv /ResetSettings (in command prompt) to eliminate the related potential settings problem.

b) Try disabling Add-ins (e.g. “Tools” | “Add-in Manager”) or run “devenv.exe /SafeMode”.This can eliminate the possibility that third party Add-ins or packages are causing problems. (For more detailed VS command line switches information, see: http://msdn2.microsoft.com/en-us/library/xee0c8y7.aspx )

c) Try creating a new project. Sometimes corrupted project settings can cause problems. These are project specific.

d) Make sure that we have the latest service pack applied. For example, Visual Studio 2005, please refer to Microsoft® Visual Studio® 2005 Team Suite Service Pack 1 http://www.microsoft.com/downloads/details.aspx?FamilyId=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC (This download installs Service Pack 1 for Microsoft® Visual Studio® 2005 Standard, Professional, Team Editions) or Microsoft® Visual Studio® 2005 Express Editions Service Pack 1 http://www.microsoft.com/downloads/details.aspx?FamilyId=7B0B0339-613A-46E6-AB4D-080D4D4A8C4E (This download installs Service Pack 1 for Microsoft® Visual Studio® 2005 Express Editions)

e) Try to reboot the operating system to safe mode. This can help to isolate whether any other applications are interfering with Visual Studio. Note that some features (like IIS) are not available under safe mode. Please check whether this can be applied or not. In addition to safe mode, we can also try “clean boot”: How to configure Windows XP to start in a "clean boot" state http://support.microsoft.com/kb/310353 .

f) Try to create a new user account. This can help isolate user profile corruption related causes.

VulgarBinary
  • 3,520
  • 4
  • 20
  • 54
1

Just delete all the *.map files and all should be fine.

curlackhacker
  • 435
  • 5
  • 10
1

Open cmd and navigate to

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE

or

C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE

and try to type the following commands:

  1. devenv.exe /log

  2. devenv.exe /safemode

  3. devenv.exe /resetskippkgs

  4. devenv.exe /installvstemplates

  5. devenv.exe /resetsettings

  6. devenv.exe /resetuserdata

Source : MSDN

Adrian Enriquez
  • 8,175
  • 7
  • 45
  • 64
  • One success with the /safemode here :) though, I never installed any add-ons or extensions of any kind. Also, this made my VS start much faster than usual while still being able to use everything I need. – Vladivarius Mar 05 '14 at 02:35
0

In my case, none of above solutions works for me, even tried the Repair option, have to do a complete un-installation by command line:

vs_ultimate.exe /uninstall /force

Note: Depending your visual studio version, it might be vs_professional.exe or vs_premium.exe more information can be found here: http://support.microsoft.com/kb/2771441?wa=wsignin1.0

then finish a complete re-installation

zs21cn
  • 63
  • 6
0

I tried to recover new solution files and start in save mode but it didn't work. I then deleted the .suo file since I new it has do to with local environment settings. That worked pretty fine for me.

0

This one worked for me. I ran the Installer again, selected Modify, and then un-selected Microsoft Web developer tools. I never used those tools, so I have no solution for people who does.

Partha
  • 389
  • 2
  • 7