[Mono-osx] TypeLoadException on application bundle
Jean-Louis 'Hans' Fuchs
ganwell at fangorn.ch
Thu Feb 2 18:24:47 UTC 2012
Hello
My application works in MonoDevelop or if I start it from the Release folder. When I create an application bundle (Create Mac Installer…) I get the following exception on a drag operation.
System.TypeLoadException: A type load exception has occurred.
at ch.fangorn.LUI.CardBoard.AppDelegate.FileDragged (MonoMac.AppKit.NSDraggingInfo) <0x000fb>
at ch.fangorn.LUI.CardBoard.CustomImageBrowser.PerformDragOperation (MonoMac.AppKit.NSDraggingInfo) <0x00047>
at (wrapper dynamic-method) object.[ch.fangorn.LUI.CardBoard.CustomImageBrowser.Boolean PerformDragOperation(MonoMac.AppKit.NSDraggingInfo)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSDraggingInfo) <0x00033>
at (wrapper native-to-managed) object.[ch.fangorn.LUI.CardBoard.CustomImageBrowser.Boolean PerformDragOperation(MonoMac.AppKit.NSDraggingInfo)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSDraggingInfo) <0x000fb>
at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain (int,string[]) <0x00003>
at MonoMac.AppKit.NSApplication.Main (string[]) <0x00017>
at ch.fangorn.LUI.CardBoard.MainClass.Main (string[]) <0x0014f>
I tried to find out what exactly fails to load, not much success yet. Do you know a way to solve this? I so far tried dtruss and logging AppDomain.CurrentDomain.AssemblyResolve/TypeResolve. I use "don't link assemblies", so it should not remove any types.
Best,
Jean-Louis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20120202/54cd1f7a/attachment.html>
More information about the Mono-osx
mailing list