The type initializer for 'RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFacto
ChesterWest
Posts: 1 New member
in SQL Compare
I am trying to configure a new labtop so that I can decomission the old labtop that I was using. I get the following error when I start SQL compare:
The type initializer for 'RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory' threw an exception.
The info:
The type initializer for 'RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory' threw an exception.
The info:
<?xml version="1.0" encoding="utf-16"?>
<UnhandledExceptionReport AssemblyID="{0F59917F-60A9-4032-A3DB-673D618F74B9}" DateTime="2020-08-04T14:52:31" Path="C:\Program Files (x86)\Red Gate\RedGate\RedGate.SQLCompare.UI.exe" ReportID="{7e97d466-845d-4051-b4cc-f1140e294abe}">
<Assemblies>
<Assembly Name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" CodeBase="file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll" />
<Assembly Name="RedGate.SQLCompare.UI, Version=14.2.16.16006, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/RedGate.SQLCompare.UI.exe" This="1" />
<Assembly Name="RedGate.SqlServer.SharedGUI, Version=14.2.16.16006, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/RedGate.SqlServer.SharedGUI.DLL" />
<Assembly Name="RedGate.Compare.CommonUI.Interfaces, Version=14.2.16.16006, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/RedGate.Compare.CommonUI.Interfaces.DLL" />
<Assembly Name="RedGate.Shared.Controls, Version=15.0.0.0, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/RedGate.Shared.Controls.DLL" />
<Assembly Name="Redgate.Client.Common, Version=7.4.7.2880, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/Redgate.Client.Common.DLL" />
<Assembly Name="RedGate.DatabaseServerDiscovery.SqlServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/RedGate.DatabaseServerDiscovery.SqlServer.DLL" />
<Assembly Name="RedGate.Usage.Client, Version=12.0.0.0, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/RedGate.Usage.Client.DLL" />
<Assembly Name="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" CodeBase="file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/netstandard/v4.0_2.0.0.0__cc7b13ffcd2ddd51/netstandard.dll" />
<Assembly Name="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" CodeBase="file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll" />
<Assembly Name="Ninject, Version=3.3.4.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/Ninject.DLL" />
<Assembly Name="Redgate.FurHelper, Version=14.2.16.16006, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/Redgate.FurHelper.DLL" />
<Assembly Name="PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" CodeBase="file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll" />
<Assembly Name="WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" CodeBase="file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll" />
<Assembly Name="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" CodeBase="file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll" />
<Assembly Name="PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" CodeBase="file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll" />
<Assembly Name="System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" CodeBase="file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll" />
<Assembly Name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" CodeBase="file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll" />
<Assembly Name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" CodeBase="file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll" />
<Assembly Name="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" CodeBase="file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll" />
<Assembly Name="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" CodeBase="file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll" />
<Assembly Name="RedGate.Logging.SharedUtilsLog, Version=3.0.360.0, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/RedGate.Logging.SharedUtilsLog.DLL" />
<Assembly Name="RedGate.SQLTools, Version=14.2.16.16006, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/RedGate.SQLTools.DLL" />
<Assembly Name="RedGate.SQLCompare.Logging, Version=14.2.16.16006, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" CodeBase="file:///C:/Program Files (x86)/Red Gate/RedGate/RedGate.SQLCompare.Logging.DLL" />
</Assemblies>
<CustomProperties>
<CustomProperty Name="MachineName" Value=""DESKTOP-LQTQ5U2"" />
<CustomProperty Name="UserName" Value=""CHEST"" />
<CustomProperty Name="Domain" Value=""DESKTOP-LQTQ5U2"" />
<CustomProperty Name="MachineID" Value=""C03EBA4D20AF"" />
<CustomProperty Name="ExceptionProperty.TypeName" Value=""RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory"" />
<CustomProperty Name="ExceptionProperty.HResult" Value=""-2146233036"" />
<CustomProperty Name="ExceptionInnerProperty.FileName" Value=""Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7"" />
<CustomProperty Name="ExceptionInnerProperty.FusionLog" Value=""WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
"" />
<CustomProperty Name="ExceptionInnerProperty.HResult" Value=""-2146234304"" />
<CustomProperty Name="Data:SmartStackFrames" Value=""System.Collections.Generic.LinkedList`1[System.Object]"" />
<CustomProperty Name="FurReportSent" Value=""False"" />
<CustomProperty Name="FurReportException" Value=""Fur.Instance has not been set"" />
</CustomProperties>
<SystemInformation>
<NETVersion>4.0.30319.42000</NETVersion>
<OSVersion>10.0.18362.959</OSVersion>
<OSPlatformID>Win32NT</OSPlatformID>
<OSDescription>Microsoft Windows 10.0.18362.959</OSDescription>
<ServicePack />
<ServerR2>0</ServerR2>
<X64>1</X64>
<Workstation>1</Workstation>
</SystemInformation>
<StackTrace>
<Exception TypeName="0" Message="Could not load file or assembly 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)" ExceptionStackTrace="at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
 at System.Reflection.RuntimeAssembly.GetExportedTypes()
 at Ninject.Infrastructure.Language.ExtensionsForAssembly.HasNinjectModules(Assembly assembly)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(IEnumerable`1 filenames)
 at Ninject.Modules.ModuleLoader.LoadModules(IEnumerable`1 patterns)
 at Ninject.KernelBase..ctor(IComponentContainer components, INinjectSettings settings, INinjectModule[] modules)
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory..cctor()" Method="System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)" ID="0" />
<StackFrame MethodID="3911" ExceptionStackDepth="10" Assembly="1" ILOffset="43" />
<Exception TypeName="1" Message="The type initializer for 'RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory' threw an exception." ExceptionStackTrace="at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory.Load(INinjectModule[] modules)
 at RedGate.SqlServer.Comparison.Schema.UI.Program.Main()" Method="RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory.Load(INinjectModule[] modules)" ID="1" />
<StackFrame MethodID="8" ExceptionStackDepth="2" ILOffset="231">
<Object ID="2" />
<Object ID="3" />
<Object ID="4" />
<Object Null="1" />
<Object Null="1" />
<Object Null="1" />
</StackFrame>
</StackTrace>
<Objects>
<ObjectDef ID="0" Value=""System.IO.FileLoadException: Could not load file or assembly 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7'
 at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
 at System.Reflection.RuntimeAssembly.GetExportedTypes()
 at Ninject.Infrastructure.Language.ExtensionsForAssembly.HasNinjectModules(Assembly assembly)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(IEnumerable`1 filenames)
 at Ninject.Modules.ModuleLoader.LoadModules(IEnumerable`1 patterns)
 at Ninject.KernelBase..ctor(IComponentContainer components, INinjectSettings settings, INinjectModule[] modules)
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory..cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
"" TypeName="0">
<Field TypeName="2" Name="_fileName" Value=""Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7"" />
<Field TypeName="2" Name="_fusionLog" Value=""WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
"" />
<Field Name="__base" ID="5" />
</ObjectDef>
<ObjectDef ID="1" Value=""System.TypeInitializationException: The type initializer for 'RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
 at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
 at System.Reflection.RuntimeAssembly.GetExportedTypes()
 at Ninject.Infrastructure.Language.ExtensionsForAssembly.HasNinjectModules(Assembly assembly)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(IEnumerable`1 filenames)
 at Ninject.Modules.ModuleLoader.LoadModules(IEnumerable`1 patterns)
 at Ninject.KernelBase..ctor(IComponentContainer components, INinjectSettings settings, INinjectModule[] modules)
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory..cctor()
 --- End of inner exception stack trace ---
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory.Load(INinjectModule[] modules)
 at RedGate.SqlServer.Comparison.Schema.UI.Program.Main()"" TypeName="1">
<Field TypeName="2" Name="_typeName" Value=""RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory"" />
<Field Name="__base" ID="6" />
</ObjectDef>
<ObjectDef ID="2" TypeDefID="281" Assembly="1">
<Field TypeName="2" Name="<ApplicationName>k__BackingField" Value=""SQL Compare"" />
<Field TypeName="3" ID="7" Name="<ApplicationVersion>k__BackingField" />
<Field Name="__base" ID="8" />
</ObjectDef>
<ObjectDef ID="3" TypeDefID="672" Assembly="1">
<Field TypeName="4" ID="9" Name="m_GetCurrentLogFilename" />
<Field TypeName="4" ID="10" Name="m_GetCurrentLogFolder" />
<Field TypeName="2" Name="m_RegKey" Value=""Software\Red Gate\SQL Tools UI\Logging"" />
<Field Name="__base" ID="11" />
</ObjectDef>
<ObjectDef ID="4" TypeName="5">
<Field TypeName="2" Name="<ProductName>k__BackingField" Value=""SQL Compare"" />
<Field TypeName="6" Name="<ProductCode>k__BackingField" Value="2 (0x2)" />
<Field TypeName="2" Name="<ProductDisplayName>k__BackingField" Value=""SQL Compare"" />
<Field TypeName="6" Name="<MajorVersion>k__BackingField" Value="14 (0xe)" />
<Field TypeName="6" Name="<MinorVersion>k__BackingField" Value="0 (0x0)" />
<Field TypeName="2" Name="<ProductTrialBlurb>k__BackingField" Value=""Compares and deploys SQL database schemas."" />
<Field TypeName="2" Name="<BuyNowUrl>k__BackingField" Value=""http://www.red-gate.com/SQLCompare/BuyNow"" />
<Field TypeName="2" Name="<FindOutMoreUrl>k__BackingField" Value=""http://www.red-gate.com/products/SQL_Compare/index.htm"" />
<Field TypeName="7" Name="<IsAutomatedSession>k__BackingField" Null="1" />
<Field TypeName="8" ID="12" Name="EnvironmentData" />
<Field Name="__base" ID="13" />
</ObjectDef>
<ObjectDef ID="5" Value=""System.IO.FileLoadException: Could not load file or assembly 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7'
 at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
 at System.Reflection.RuntimeAssembly.GetExportedTypes()
 at Ninject.Infrastructure.Language.ExtensionsForAssembly.HasNinjectModules(Assembly assembly)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(IEnumerable`1 filenames)
 at Ninject.Modules.ModuleLoader.LoadModules(IEnumerable`1 patterns)
 at Ninject.KernelBase..ctor(IComponentContainer components, INinjectSettings settings, INinjectModule[] modules)
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory..cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
"" TypeName="9">
<Field TypeName="2" Name="_maybeFullPath" Null="1" />
<Field Name="__base" ID="14" />
</ObjectDef>
<ObjectDef ID="6" Value=""System.TypeInitializationException: The type initializer for 'RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
 at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
 at System.Reflection.RuntimeAssembly.GetExportedTypes()
 at Ninject.Infrastructure.Language.ExtensionsForAssembly.HasNinjectModules(Assembly assembly)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(IEnumerable`1 filenames)
 at Ninject.Modules.ModuleLoader.LoadModules(IEnumerable`1 patterns)
 at Ninject.KernelBase..ctor(IComponentContainer components, INinjectSettings settings, INinjectModule[] modules)
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory..cctor()
 --- End of inner exception stack trace ---
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory.Load(INinjectModule[] modules)
 at RedGate.SqlServer.Comparison.Schema.UI.Program.Main()"" TypeName="10">
<Field Name="__base" ID="15" />
</ObjectDef>
<ObjectDef ID="7" Value=""14.2.16.16006"" TypeName="3" />
<ObjectDef ID="8" Value=""RedGate.SqlServer.SharedGUI.Services.ApplicationDetailsService"" TypeName="11" />
<ObjectDef ID="9" Value=""System.Func`1[System.String]"" TypeName="4" />
<ObjectDef ID="10" Value=""System.Func`1[System.String]"" TypeName="4" />
<ObjectDef ID="11" Value=""RedGate.SqlServer.SharedGUI.Logging.LoggingUIInterface"" TypeName="11" />
<ObjectDef ID="12" Value=""System.Collections.Generic.Dictionary`2[System.String,System.String]"" TypeName="8" />
<ObjectDef ID="13" Value=""Redgate.Client.Common.Domain.ProductInformation"" TypeName="11" />
<ObjectDef ID="14" Value=""System.IO.FileLoadException: Could not load file or assembly 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7'
 at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
 at System.Reflection.RuntimeAssembly.GetExportedTypes()
 at Ninject.Infrastructure.Language.ExtensionsForAssembly.HasNinjectModules(Assembly assembly)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(IEnumerable`1 filenames)
 at Ninject.Modules.ModuleLoader.LoadModules(IEnumerable`1 patterns)
 at Ninject.KernelBase..ctor(IComponentContainer components, INinjectSettings settings, INinjectModule[] modules)
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory..cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
"" TypeName="10">
<Field Name="__base" ID="16" />
</ObjectDef>
<ObjectDef ID="15" Value=""System.TypeInitializationException: The type initializer for 'RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
 at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
 at System.Reflection.RuntimeAssembly.GetExportedTypes()
 at Ninject.Infrastructure.Language.ExtensionsForAssembly.HasNinjectModules(Assembly assembly)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(IEnumerable`1 filenames)
 at Ninject.Modules.ModuleLoader.LoadModules(IEnumerable`1 patterns)
 at Ninject.KernelBase..ctor(IComponentContainer components, INinjectSettings settings, INinjectModule[] modules)
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory..cctor()
 --- End of inner exception stack trace ---
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory.Load(INinjectModule[] modules)
 at RedGate.SqlServer.Comparison.Schema.UI.Program.Main()"" TypeName="12">
<Field TypeName="2" Name="_className" Value=""System.TypeInitializationException"" />
<Field TypeName="13" Name="_exceptionMethod" Null="1" />
<Field TypeName="2" Name="_exceptionMethodString" Null="1" />
<Field TypeName="2" Name="_message" Value=""The type initializer for 'RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory' threw an exception."" />
<Field TypeName="14" ID="17" Name="_data" />
<Field TypeName="12" ID="0" Name="_innerException" />
<Field TypeName="2" Name="_helpURL" Null="1" />
<Field TypeName="11" ID="18" Name="_stackTrace" />
<Field TypeName="11" ID="19" Name="_watsonBuckets" />
<Field TypeName="2" Name="_stackTraceString" Null="1" />
<Field TypeName="2" Name="_remoteStackTraceString" Null="1" />
<Field TypeName="6" Name="_remoteStackIndex" Value="0 (0x0)" />
<Field TypeName="11" Name="_dynamicMethods" Null="1" />
<Field TypeName="6" Name="_HResult" Value="-2146233036 (0x80131534)" />
<Field TypeName="2" Name="_source" Null="1" />
<Field TypeName="15" Name="_xptrs" Value="0 (0x0)" />
<Field TypeName="6" Name="_xcode" Value="-532462766 (0xe0434352)" />
<Field TypeName="16" Name="_ipForWatsonBuckets" Value="0 (0x0)" />
<Field TypeName="17" ID="20" Name="_safeSerializationManager" />
<Field Name="__base" ID="21" />
</ObjectDef>
<ObjectDef ID="16" Value=""System.IO.FileLoadException: Could not load file or assembly 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7'
 at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
 at System.Reflection.RuntimeAssembly.GetExportedTypes()
 at Ninject.Infrastructure.Language.ExtensionsForAssembly.HasNinjectModules(Assembly assembly)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(IEnumerable`1 filenames)
 at Ninject.Modules.ModuleLoader.LoadModules(IEnumerable`1 patterns)
 at Ninject.KernelBase..ctor(IComponentContainer components, INinjectSettings settings, INinjectModule[] modules)
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory..cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
"" TypeName="12">
<Field TypeName="2" Name="_className" Value=""System.IO.FileLoadException"" />
<Field TypeName="13" Name="_exceptionMethod" Null="1" />
<Field TypeName="2" Name="_exceptionMethodString" Value=""8
GetExportedTypes
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Reflection.RuntimeAssembly
Void GetExportedTypes(System.Reflection.RuntimeAssembly, System.Runtime.CompilerServices.ObjectHandleOnStack)"" />
<Field TypeName="2" Name="_message" Value=""Could not load file or assembly 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"" />
<Field TypeName="14" ID="22" Name="_data" />
<Field TypeName="12" Name="_innerException" Null="1" />
<Field TypeName="2" Name="_helpURL" Null="1" />
<Field TypeName="11" ID="23" Name="_stackTrace" />
<Field TypeName="11" ID="24" Name="_watsonBuckets" />
<Field TypeName="2" Name="_stackTraceString" Null="1" />
<Field TypeName="2" Name="_remoteStackTraceString" Value="" at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
 at System.Reflection.RuntimeAssembly.GetExportedTypes()
 at Ninject.Infrastructure.Language.ExtensionsForAssembly.HasNinjectModules(Assembly assembly)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
"" />
<Field TypeName="6" Name="_remoteStackIndex" Value="0 (0x0)" />
<Field TypeName="11" Name="_dynamicMethods" Null="1" />
<Field TypeName="6" Name="_HResult" Value="-2146234304 (0x80131040)" />
<Field TypeName="2" Name="_source" Value=""mscorlib"" />
<Field TypeName="15" Name="_xptrs" Value="0 (0x0)" />
<Field TypeName="6" Name="_xcode" Value="0 (0x0)" />
<Field TypeName="16" Name="_ipForWatsonBuckets" Value="0 (0x0)" />
<Field TypeName="17" ID="25" Name="_safeSerializationManager" />
<Field Name="__base" ID="26" />
</ObjectDef>
<ObjectDef ID="17" TypeName="18" />
<ObjectDef ID="18" TypeName="19" Rank="1" Length="96">
<Object TypeName="19" Value="2 (0x2)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="48 (0x30)" />
<Object TypeName="19" Value="-68 (0xbc)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
</ObjectDef>
<ObjectDef ID="19" TypeName="20" Rank="1" Length="5616">
<Object TypeName="20" Value="1 (0x1)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="67 (0x43)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="76 (0x4c)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="82 (0x52)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
</ObjectDef>
<ObjectDef ID="20" TypeName="17" />
<ObjectDef ID="21" Value=""System.TypeInitializationException: The type initializer for 'RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
 at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
 at System.Reflection.RuntimeAssembly.GetExportedTypes()
 at Ninject.Infrastructure.Language.ExtensionsForAssembly.HasNinjectModules(Assembly assembly)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(IEnumerable`1 filenames)
 at Ninject.Modules.ModuleLoader.LoadModules(IEnumerable`1 patterns)
 at Ninject.KernelBase..ctor(IComponentContainer components, INinjectSettings settings, INinjectModule[] modules)
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory..cctor()
 --- End of inner exception stack trace ---
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory.Load(INinjectModule[] modules)
 at RedGate.SqlServer.Comparison.Schema.UI.Program.Main()"" TypeName="11" />
<ObjectDef ID="22" TypeName="18" />
<ObjectDef ID="23" TypeName="19" Rank="1" Length="384">
<Object TypeName="19" Value="6 (0x6)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="48 (0x30)" />
<Object TypeName="19" Value="-68 (0xbc)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
<Object TypeName="19" Value="0 (0x0)" />
</ObjectDef>
<ObjectDef ID="24" TypeName="20" Rank="1" Length="5616">
<Object TypeName="20" Value="1 (0x1)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="67 (0x43)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="76 (0x4c)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="82 (0x52)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
<Object TypeName="20" Value="0 (0x0)" />
</ObjectDef>
<ObjectDef ID="25" TypeName="17" />
<ObjectDef ID="26" Value=""System.IO.FileLoadException: Could not load file or assembly 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7'
 at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
 at System.Reflection.RuntimeAssembly.GetExportedTypes()
 at Ninject.Infrastructure.Language.ExtensionsForAssembly.HasNinjectModules(Assembly assembly)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.AssemblyChecker.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(IEnumerable`1 filenames, Predicate`1 filter)
 at Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(IEnumerable`1 filenames)
 at Ninject.Modules.ModuleLoader.LoadModules(IEnumerable`1 patterns)
 at Ninject.KernelBase..ctor(IComponentContainer components, INinjectSettings settings, INinjectModule[] modules)
 at RedGate.SqlServer.SharedGUI.Infrastructure.DependencyInjection.ObjectFactory..cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
"" TypeName="11" />
</Objects>
<TypeNames Count="21">
<TypeName>System.IO.FileLoadException</TypeName>
<TypeName>System.TypeInitializationException</TypeName>
<TypeName>System.String</TypeName>
<TypeName>System.Version</TypeName>
<TypeName>System.Func`1</TypeName>
<TypeName>[Redgate.Client.Common]Redgate.Client.Common.Domain.ProductInformation</TypeName>
<TypeName>System.Int32</TypeName>
<TypeName>System.Nullable`1</TypeName>
<TypeName>System.Collections.Generic.Dictionary`2</TypeName>
<TypeName>System.IO.IOException</TypeName>
<TypeName>System.SystemException</TypeName>
<TypeName>System.Object</TypeName>
<TypeName>System.Exception</TypeName>
<TypeName>System.Reflection.MethodBase</TypeName>
<TypeName>System.Collections.IDictionary</TypeName>
<TypeName>System.IntPtr</TypeName>
<TypeName>System.UIntPtr</TypeName>
<TypeName>System.Runtime.Serialization.SafeSerializationManager</TypeName>
<TypeName>System.Collections.ListDictionaryInternal</TypeName>
<TypeName>System.SByte</TypeName>
<TypeName>System.Byte</TypeName>
</TypeNames>
<AssemblyIDs Count="2">
<AssemblyID ID="{0F59917F-60A9-4032-A3DB-673D618F74B9}" />
<AssemblyID ID="{28938d21-e6cf-4ae9-9913-79ba295eb64f}" FullName="RedGate.SqlServer.SharedGUI, Version=14.2.16.16006, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" />
</AssemblyIDs>
</UnhandledExceptionReport>
How do I resolve this issue?
How do I resolve this issue?
Tagged:
Answers
Sean Quigley | Product Support Engineer | Redgate Software
Have you visited our Help Center?