dzharii / swd-recorder

Selenium WebDriver Page Recorder (Page Objects)
MIT License
189 stars 71 forks source link

Win32: System.TypeLoadException #1

Closed dzharii closed 11 years ago

dzharii commented 11 years ago

SWD Page recoder uses IlMerge in order to create a single executable file.

The solutions for issue is described here:

http://www.mattwrock.com/post/2012/02/29/What-you-should-know-about-running-ILMerge-on-Net-45-Beta-assemblies-targeting-Net-40.aspx

and here: http://stackoverflow.com/questions/17222369/how-to-diagnose-system-typeloadexception-error

Приложение: SwdPageRecorder.exe Версия платформы: v4.0.30319 Описание. Процесс был завершен из-за необработанного исключения. Сведения об исключении: System.TypeLoadException Стек: в System.ModuleHandle.ResolveType(System.Reflection.RuntimeModule, Int32, IntPtr, Int32, IntPtr, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack) в System.ModuleHandle.ResolveTypeHandleInternal(System.Reflection.RuntimeModule, Int32, System.RuntimeTypeHandle[], System.RuntimeTypeHandle[]) в System.Reflection.RuntimeModule.ResolveType(Int32, System.Type[], System.Type[]) в System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.CustomAttributeRecord, System.Reflection.MetadataImport, System.Reflection.Assembly ByRef, System.Reflection.RuntimeModule, System.Reflection.MetadataToken, System.RuntimeType, Boolean, System.Object[], System.Collections.IList, System.RuntimeType ByRef, System.IRuntimeMethodInfo ByRef, Boolean ByRef, Boolean ByRef) в System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, Int32, Int32, System.RuntimeType, Boolean, System.Collections.IList, Boolean) в System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeAssembly, System.RuntimeType) в System.Reflection.RuntimeAssembly.GetCustomAttributes(System.Type, Boolean) в System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, Boolean) в System.Windows.Forms.NativeWindow.AdjustWndProcFlagsFromMetadata(Int32) в System.Windows.Forms.NativeWindow.get_WndProcFlags() в System.Windows.Forms.NativeWindow.get_WndProcShouldBeDebuggable() в System.Windows.Forms.NativeWindow.AssignHandle(IntPtr, Boolean) в System.Windows.Forms.NativeWindow.AssignHandle(IntPtr) в System.Windows.Forms.NativeWindow+WindowClass.Callback(IntPtr, Int32, IntPtr, IntPtr) в System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32, System.String, System.String, Int32, Int32, Int32, Int32, Int32, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Object) в System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32, System.String, System.String, Int32, Int32, Int32, Int32, Int32, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Object) в System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams) в System.Windows.Forms.Control.CreateHandle() в System.Windows.Forms.Application+MarshalingControl..ctor() в System.Windows.Forms.Application+ThreadContext.get_MarshalingControl() в System.Windows.Forms.WindowsFormsSynchronizationContext..ctor() в System.Windows.Forms.WindowsFormsSynchronizationContext.InstallIfNeeded() в System.Windows.Forms.Control..ctor(Boolean) в System.Windows.Forms.ScrollableControl..ctor() в System.Windows.Forms.ContainerControl..ctor() в System.Windows.Forms.Form..ctor() в SwdPageRecorder.UI.SwdMainView..ctor() в SwdPageRecorder.UI.SWDRecorder_Program.Main()

dzharii commented 11 years ago

closed