[MonoDevelop] Code runs in debug mode, but fails as executable

chbussler chris at analytica.com
Thu Oct 11 03:56:17 UTC 2012


Hi,

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?

2. As stop-gap measure it would help if I could instrument the code the same
way the debugger does so that I could run it as executable outside
MonoDevelop. Does anybody know if this is possible or how to compile it to
accomplish this?

Thanks,

Christoph



--
View this message in context: http://mono.1490590.n4.nabble.com/Code-runs-in-debug-mode-but-fails-as-executable-tp4656931.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list