[Mono-dev] InvalidProgramException running .NET 4.0 app

Marek Safar marek.safar at gmail.com
Mon Nov 14 10:44:07 UTC 2016


Hello,

>
> One of the libraries uses System.Xml namespace from mono 4.0.0.0,  I can
> compile, but at runtime I get this system:InvalidProgramException: Invalid
> IL code in System.Uri:op_Equality(System.Uri,System.Uri): method body is
> empty [...]
>

This is most likely due to using reference assembly. We've fixed the issue
recently and the fix should
be included in Mono 4.8 release. As a workaround you can either target .NET
4.5 instead or disable
local copy of the System.dll in Mono Develop project reference settings.

Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-devel-list/attachments/20161114/b65cfaef/attachment.html>


More information about the Mono-devel-list mailing list