SQL Dependency Tracker
Latest version: 2.7
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?
SQL Dependency Tracker
- System.TypeInitializationException on launch (version 2.2)
- Description of the relative importance bar
- Add objects to project option greyed out
- Connections to servers timing out
- SQL Dependency Tracker has encountered an unexpected condition
- SQL Dependency Tracker permissions
- PDF report output running past the bottom of the page
- File or assembly name vjslib not found
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
SQL Dependency Tracker
- Activating your products
- Activating your products
- Getting help offline
- SQL Dependency Tracker release notes - version 2.xx
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

