System.TypeLoadException with current version 2014.1
Posted: Tue Jul 22, 2014 12:44 pm
Hello,
we are trying to upgrade out Microsoft Prism based application to the current Reports.Wpf (2014.1) and are unfortunately getting a fatal exception at startup of our application.
We have included the following Stimulsoft DLLs, all from the current version 2014.1.
Stimulsoft.Base.dll
Stimulsoft.Report.Check.dll
Stimulsoft.Report.dll
Stimulsoft.Report.Helper.dll
Stimulsoft.Report.Wpf.dll
Stimulsoft.Report.WpfDesign.dll
We have removed all Stimulsoft DLLs from the GAC. We cleaned the build directory and made sure only the right DLLs are copied there when building.
Here is the Stacktrace:
------------------------------------------------------------------------
System.TypeLoadException: Method 'GetImage' in type 'Stimulsoft.Report.Painters.StiContainerWpfPainter' from assembly 'Stimulsoft.Report.Wpf, Version=2014.1.1900.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' does not have an implementation.
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at Microsoft.Practices.Prism.Modularity.DirectoryModuleCatalog.InnerModuleInfoLoader.<>c__DisplayClassf.<GetNotAllreadyLoadedModuleInfos>b__b(FileInfo file)
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Microsoft.Practices.Prism.Modularity.DirectoryModuleCatalog.InnerModuleInfoLoader.GetModuleInfos(String path)
at Microsoft.Practices.Prism.Modularity.DirectoryModuleCatalog.InnerModuleInfoLoader.GetModuleInfos(String path)
at Microsoft.Practices.Prism.Modularity.DirectoryModuleCatalog.InnerLoad()
at Microsoft.Practices.Prism.Modularity.ModuleCatalog.Initialize()
at Microsoft.Practices.Prism.Modularity.ModuleManager.Run()
at Ganshorn.LFX.ApplicationShell.Bootstrapper.UnityAsyncBootstrapper.<InitializeModules>d__4.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\Bootstrapper\UnityAsyncBootstrapper.cs:line 196
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Ganshorn.LFX.ApplicationShell.Bootstrapper.LfxBootstrapper.<InitializeModules>d__5.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\Bootstrapper\LfxBootstrapper.cs:line 212
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Ganshorn.LFX.ApplicationShell.Bootstrapper.UnityAsyncBootstrapper.<Run>d__0.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\Bootstrapper\UnityAsyncBootstrapper.cs:line 118
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Ganshorn.LFX.ApplicationShell.Bootstrapper.LfxBootstrapper.<Run>d__0.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\Bootstrapper\LfxBootstrapper.cs:line 87
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Ganshorn.LFX.ApplicationShell.Bootstrapper.PrismAsyncBootstrapper.<Run>d__0.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\Bootstrapper\PrismAsyncBootstrapper.cs:line 54
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Ganshorn.LFX.ApplicationShell.App.<OnStartup>d__4.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\App.xaml.cs:line 133
------------------------------------------------------------------------
Greetings
Nils Beckmann
we are trying to upgrade out Microsoft Prism based application to the current Reports.Wpf (2014.1) and are unfortunately getting a fatal exception at startup of our application.
We have included the following Stimulsoft DLLs, all from the current version 2014.1.
Stimulsoft.Base.dll
Stimulsoft.Report.Check.dll
Stimulsoft.Report.dll
Stimulsoft.Report.Helper.dll
Stimulsoft.Report.Wpf.dll
Stimulsoft.Report.WpfDesign.dll
We have removed all Stimulsoft DLLs from the GAC. We cleaned the build directory and made sure only the right DLLs are copied there when building.
Here is the Stacktrace:
------------------------------------------------------------------------
System.TypeLoadException: Method 'GetImage' in type 'Stimulsoft.Report.Painters.StiContainerWpfPainter' from assembly 'Stimulsoft.Report.Wpf, Version=2014.1.1900.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' does not have an implementation.
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at Microsoft.Practices.Prism.Modularity.DirectoryModuleCatalog.InnerModuleInfoLoader.<>c__DisplayClassf.<GetNotAllreadyLoadedModuleInfos>b__b(FileInfo file)
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Microsoft.Practices.Prism.Modularity.DirectoryModuleCatalog.InnerModuleInfoLoader.GetModuleInfos(String path)
at Microsoft.Practices.Prism.Modularity.DirectoryModuleCatalog.InnerModuleInfoLoader.GetModuleInfos(String path)
at Microsoft.Practices.Prism.Modularity.DirectoryModuleCatalog.InnerLoad()
at Microsoft.Practices.Prism.Modularity.ModuleCatalog.Initialize()
at Microsoft.Practices.Prism.Modularity.ModuleManager.Run()
at Ganshorn.LFX.ApplicationShell.Bootstrapper.UnityAsyncBootstrapper.<InitializeModules>d__4.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\Bootstrapper\UnityAsyncBootstrapper.cs:line 196
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Ganshorn.LFX.ApplicationShell.Bootstrapper.LfxBootstrapper.<InitializeModules>d__5.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\Bootstrapper\LfxBootstrapper.cs:line 212
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Ganshorn.LFX.ApplicationShell.Bootstrapper.UnityAsyncBootstrapper.<Run>d__0.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\Bootstrapper\UnityAsyncBootstrapper.cs:line 118
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Ganshorn.LFX.ApplicationShell.Bootstrapper.LfxBootstrapper.<Run>d__0.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\Bootstrapper\LfxBootstrapper.cs:line 87
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Ganshorn.LFX.ApplicationShell.Bootstrapper.PrismAsyncBootstrapper.<Run>d__0.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\Bootstrapper\PrismAsyncBootstrapper.cs:line 54
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Ganshorn.LFX.ApplicationShell.App.<OnStartup>d__4.MoveNext() in c:\Users\nils.beckmann\src\ganshorn.lfx\src\ApplicationShell\App.xaml.cs:line 133
------------------------------------------------------------------------
Greetings
Nils Beckmann