Visual Studio 2012 crashes every time I try to debug with error CLR20r3

人走茶凉 提交于 2019-12-03 05:14:35

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 :/

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

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

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.

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.

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

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

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

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!