SQL Dependency Tracker

Latest version: 2.7

SQL Dependency Tracker

Knowledge Base

System.TypeInitializationException on launch (version 2.2)

Category: Troubleshooting & error messages
Date: 09 Jun 2009
Product: SQL Dependency Tracker
Versions: 2.0,2.2
Fix Version: 2.4

SQL Dependency Tracker may throw System.TypeInitializationException when it starts. One possible reason for this is that duplicate third-party components are installed on the local computer.

There is a problem caused when the .net 2.0 build of DevExpress components and the .NET 1.1 version which are used in SQL/Data Compare are installed. DevExpress signed the two different version with the same key, and another piece of software has installed the wrong version into the Global Assembly Cache. .NET will always load from the GAC if the same components exist both there and in the local folder, which contains the assemblies that SQL/Data Compare are supposed to load.

In the short term, you could remove the DevExpress assemblies from %systemroot%\assembly and copy them to the local folder of the application that needs these versions (probably either ReSharper or NUnit)

If at all possible, please use "Check for Updates" in SQL Dependency Tracker's Help menu to upgrade to the latest version. Versions 2.4 and higher have shipped with specially-compiled versions of the offending components.

For more information please see here:
http://www.red-gate.com/messageboard/viewtopic.php?t=4070&postdays=0&postorder=asc&start=15

Document ID: KB200708000126 Keywords: Dependency,Tracker,TypeInitializationException,DevExpress,Except

Was this article helpful?

Search support
Forums