Comments
5 comments
-
Hi,
When .NET programs crash randomly like this it's typically a problem with the cached native images that .NET keeps in order to improve application performance. These should be refreshed when the program is re-installed, but something has definitely gone wrong on your computer, so maybe forcing a re-install would help.
If you open a Visual Studio 2005 command-line, then run
cd %programfiles%\red gate\ants profiler 3
ngen.exe uninstall RedGate.Profiler.UI.exe
ngen.exe install RedGate.Profiler.UI.exe
Hopefully this will sort the problem out. -
Brian Donahue wrote:Hi,
When .NET programs crash randomly like this it's typically a problem with the cached native images that .NET keeps in order to improve application performance. These should be refreshed when the program is re-installed, but something has definitely gone wrong on your computer, so maybe forcing a re-install would help.
If you open a Visual Studio 2005 command-line, then run
cd %programfiles%\red gate\ants profiler 3
ngen.exe uninstall RedGate.Profiler.UI.exe
ngen.exe install RedGate.Profiler.UI.exe
Hopefully this will sort the problem out.
So I tried an uninstall and this happened:C:\Program Files\Red Gate\ANTS Profiler 3>ngen.exe uninstall RedGate.Profiler.UI.exe Microsoft (R) CLR Native Image Generator - Version 2.0.50727.832 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Error: The specified assembly is not installed.
So I did an install instread:C:\Program Files\Red Gate\ANTS Profiler 3>ngen.exe install RedGate.Profiler.UI.exe Microsoft (R) CLR Native Image Generator - Version 2.0.50727.832 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Installing assembly C:\Program Files\Red Gate\ANTS Profiler 3\RedGate.Profiler.UI.exe Compiling 26 assemblies: Compiling assembly C:\Program Files\Red Gate\ANTS Profiler 3\RedGate.Profiler.UI.exe ... RedGate.Profiler.UI, Version=3.1.0.20, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 Compiling assembly System.Data.SqlXml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ... System.Data.SqlXml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Compiling assembly System.Runtime.Serialization.Formatters.Soap, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b0 3f5f7f11d50a3a ... System.Runtime.Serialization.Formatters.Soap, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Compiling assembly DevExpress.XtraGrid.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 ... DevExpress.XtraGrid.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 Compiling assembly DevExpress.Utils.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 ... DevExpress.Utils.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 Compiling assembly DevExpress.Data.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 ... DevExpress.Data.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 Compiling assembly System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ... System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Compiling assembly System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ... System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Compiling assembly System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ... System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Compiling assembly System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a . .. System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Compiling assembly DevExpress.XtraEditors.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 .. . DevExpress.XtraEditors.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 Compiling assembly ActiproSoftware.Wizard.Net20, Version=3.0.125.0, Culture=neutral, PublicKeyToken=d00326104f1b454d ... ActiproSoftware.Wizard.Net20, Version=3.0.125.0, Culture=neutral, PublicKeyToken=d00326104f1b454d <debug> Compiling assembly ActiproSoftware.Shared.Net20, Version=1.0.85.0, Culture=neutral, PublicKeyToken=36ff2196ab5654b9 ... ActiproSoftware.Shared.Net20, Version=1.0.85.0, Culture=neutral, PublicKeyToken=36ff2196ab5654b9 <debug> Compiling assembly ActiproSoftware.WinUICore.Net20, Version=1.0.85.0, Culture=neutral, PublicKeyToken=1eba893a2bc55d e5 ... ActiproSoftware.WinUICore.Net20, Version=1.0.85.0, Culture=neutral, PublicKeyToken=1eba893a2bc55de5 <debug> Compiling assembly DevExpress.XtraBars.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 ... DevExpress.XtraBars.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 Compiling assembly SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 ... SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 Compiling assembly RedGate.Profiler.Engine, Version=3.1.0.20, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 ... RedGate.Profiler.Engine, Version=3.1.0.20, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 Compiling assembly RedGate.Profiler.Transfer, Version=3.1.0.20, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 ... RedGate.Profiler.Transfer, Version=3.1.0.20, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 Compiling assembly RedGate.Licensing.Client, Version=1.3.3.2, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 ... RedGate.Licensing.Client, Version=1.3.3.2, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 Compiling assembly System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ... System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Compiling assembly Microsoft.JScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ... Microsoft.JScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Compiling assembly Microsoft.Vsa, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ... Microsoft.Vsa, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Compiling assembly Interop.COMAdmin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 ... Interop.COMAdmin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 Compiling assembly ActiproSoftware.UIStudio.Dock.Net20, Version=2.0.77.0, Culture=neutral, PublicKeyToken=be939c973e 8cb8a6 ... ActiproSoftware.UIStudio.Dock.Net20, Version=2.0.77.0, Culture=neutral, PublicKeyToken=be939c973e8cb8a6 <debug> Compiling assembly DevExpress.XtraTreeList.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 . .. DevExpress.XtraTreeList.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4 Compiling assembly RedGate.Update.Client, Version=1.2.0.3, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 ... RedGate.Update.Client, Version=1.2.0.3, Culture=neutral, PublicKeyToken=7f465a1c156d4d57
I then ran the application and it crashed the same as before. Then I did an uninstall/install install again and got the same results. -
The only thing legitimate cause for a typeinitialization failure on startup that I know of happened in version 3.0. Can you please check the file properties of the installer and verify that you are installing ANTS Profiler version 3.1?
Even if you have the current version, it may be a good idea to uninstall ANTS Profiler, remove anything from the %programfiles%\red gate\ANTS Profiler 3 folder, uninstall any RedGate.Profiler.* assemblies from %systemroot%\assembly, then reinstall ANTS Profiler. -
Brian Donahue wrote:The only thing legitimate cause for a typeinitialization failure on startup that I know of happened in version 3.0. Can you please check the file properties of the installer and verify that you are installing ANTS Profiler version 3.1?
Even if you have the current version, it may be a good idea to uninstall ANTS Profiler, remove anything from the %programfiles%\red gate\ANTS Profiler 3 folder, uninstall any RedGate.Profiler.* assemblies from %systemroot%\assembly, then reinstall ANTS Profiler.
The file version of the installer is 3.1.0020. When I get some time I'll see if i can reinstall and let you know what happens. -
Hi there,
I suspect that this error is being caused by a mismatch of DevExpress components in the gac. More details in my post at http://www.red-gate.com/messageboard/vi ... c&start=15
The workaround for now is to go into the GAC and delete any DevExpress v6.3 dlls that you find.
Apologies
Tom Harris, Red Gate Software
Add comment
Please sign in to leave a comment.
The splash screen displays for about 5 seconds then the debugger pops up asking me if I want to debug the app. The error just says:
An exception 'System.TypeInitializationException' has occurred in RedGate.Profiler.UI.exe
When I installed ANTS i didn't opt to integrate it with my IDE.
I'm running WinXP Pro SP2.