I installed and used chocolatey in the past on my Windows 7 running in Parallels on Mac OSX.
However, recently, whenever I try to use it from the command prompt I get the following error:CLR initialization failed with error 800700c1.
I don't think this is a problem with choco itself, but something with the CLR configuration.
I couldn't find any solution to this.
UPDATE:
I get the same message if I run powershell.
Also, when I attempted "Control Panel->Troubleshooting->Fix Problems with Windows Update" I get an error dialog with the same code.
I also tried repairing and updating the .NET Framework installation, but to no avail.
Update 2I think it is related to the following DLL: C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9alel8e3b_8.0.50727.3053_x-ww_b80fa8ca\MSVCR80.dll. It is apparently corrupted. When I try to open in in depends it gives an error: "No DOS or PE signature found. This file is not a valid 32-bit or 64-bit Windows module."
1 Answer
I finally got it fixed.
As I suspected, it was related to a (possibly) corrupt 64-bit DLL MSVCR80.DLL.
I uninstalled all the "Microsoft Visual C++ 2005 Redistributable" packages (both 32 and 64 bit) via the regular uninstall screen from the Control Panel - I had 3 such packages.
After this, everything returned to working order.