The type initializer for '' threw an exception
Issue: when you try to launch visual studio throw command prompt you might run into the following error
Because of conflict with the .Net versions the error is thrown.
Clear the vairable complus_version or set the complus_Version to latest .NET version. In my case I changed from v.2.0.xxxx. to v4.0.30319. you can verify the latest .Net version from the folder C:\Windows\Microsoft.NET\Framework