[Mono-osx] TypeLoadException on application bundle
Jean-Louis 'Hans' Fuchs
jeanlouis.fuchs at gmail.com
Fri Feb 3 16:23:28 UTC 2012
I solved my problem: The "Create Mac Installer…" didn't find all implicit references. I watched the output while running the project in debug mode and added all the dlls listed there as references to the main program.
On 02.02.2012, at 19:24, Jean-Louis 'Hans' Fuchs wrote:
> 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.
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-osx