[Mono-osx] TypeLoadException on application bundle

Jean-Louis 'Hans' Fuchs jeanlouis.fuchs at gmail.com
Fri Feb 3 16:23:28 UTC 2012


Hello Everybody

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.

Best,
	Jean-Louis

On 02.02.2012, at 19:24, Jean-Louis 'Hans' Fuchs wrote:

> 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
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20120203/7fda484a/attachment.html>


More information about the Mono-osx mailing list