Mono, failing to open executable

I am trying to open a simple executable using Mono, as Wine told me to install Mono for .net applications, and this is the error I get

    mono yt.exe

** Message: Unknown heap type: #GUlD



** Message: Unknown heap type: #Blop





** (yt.exe:2508): WARNING **: The following assembly referenced from /home/austin/Downloads/yt.exe could not be loaded:

     Assembly:   System.Windows.Forms    (assemblyref_index=0)

     Version:    4.0.0.0

     Public Key: b77a5c561934e089

The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/austin/Downloads/).





** (yt.exe:2508): WARNING **: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.



** (yt.exe:2508): WARNING **: Missing method EnableVisualStyles in assembly /home/austin/Downloads/yt.exe, type System.Windows.Forms.Application



Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.

File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Thanks for any help, i've looked everywhere and can't figure out what's wrong.


The Mono version present in the repositories (2.6.7) is able to run only .NET 3.5 applications, and yours is .NET 4. To run your application you probably need Mono 2.8 or, even better, 2.10.2. I don't know which are the plans to put those frameworks in the official repositories (I do hope for the next ubuntu but I don't think so). Anyway, googling for mono 2.10.2, you'd be able to find some guides to install a parallel mono environment able to run .NET 4 applications :)

I hope to be helpful, Mat.


WARNING **: Missing method EnableVisualStyles

Try installing mono-complete e.g. by:

sudo apt-get install mono-complete

Source: Can't run on Ubuntu at GitHub


WARNING **: Could not load file or assembly 'System.Windows.Forms

Try installing the libmono-winforms1.0-cil and/or libmono-winforms2.0-cil packages in synaptic to use System.Windows.Forms.

Source: Thread: Mono errors at Ubuntu.


Also make sure you've .NET Framework installed, e.g. by:

apt-get install winetricks
winetricks dotnet46