[MonoDevelop] Code runs in debug mode, but fails as executable
Ulrich Hertlein
u.hertlein at gmail.com
Wed Oct 17 06:58:10 UTC 2012
Hi Chris,
On Thu, Oct 11, 2012 at 2:56 PM, chbussler <chris at analytica.com> wrote:
> I am trying to get my application to run with mono. I compiled it with
> MonoDevelop and the compiled executable errors out with:
>
> Unhandled Exception: System.TypeLoadException: A type load exception has
> occurred.
> ...
>
> The stack trace does not reveal what caused the problem, only that it
> happened. It is giving no hint.
>
> However, when running the code in debug mode inside MonoDevelop, the code
> works fine.
>
> 1. Does anybody have any idea where I can start looking and trying to find
> out what breaks in the executable?
I've been there as well; TypeLoadException (and DllNotFoundException)
unfortunately provide very little useful information. What helped me
a little was to catch the exception throw by adding them in 'Run ->
Exceptions...' and examining it closer to the call site.
HTH,
/uli
More information about the Monodevelop-list
mailing list