The type initializer for ‘<Module>’ threw an exception

Issue: when you try to launch visual studio throw command prompt you might run into the following error   Reason: Because of conflict with the .Net versions the error is thrown. Solution: 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…

2

DllRegisterServer failed with the error code 0x80040201

  Issue: Often when you try to register a DLL on Win7 or windows server 2008, you run into an error      “The module scmt.dll was loaded but the call to DllRegisterServer failed with the error code 0x80040201”   Why:  UAC (user account control) limits the ability to register the DLL. so you have to…

27

SQL Error: The operation cannot be performed on a database with database snapshots or active DBCC replicas

  Usually Database snapshots provide static view of the source database, and are mostly read only view of the database.   However sometime when you try to restore the database with snapshots we may get the following error SQL message: Error: “Msg 5094, Level 16, State 2, Line 2 The operation cannot be performed on a database with database…

1