However, it only answers by giving me the useless message: This file does not contain a managed assembly. I have also tried to use other tools like dotPeek64 and Teleirik without success. Virustotal tell me that it is using. Unity 2018.3.9 Additional downloads. Select the runtime platforms of your choice from the list below (the desktop runtime is included as standard) or, to install the full complement of runtime platforms, use the download assistant installer above.
I wanted to run my software on a VPS, however, when I try to run it with mono, it says
I've already tried to install mono-complete
However, it says mono-complete is already the newest version.
Is there anything I can do to fix it?
Sincerely,Mike
( I run on my VPS on ubuntu 13.10 64 bit, and my mono version is 4.0.0)
Registered User2 Answers
I came across the problem last day.You need to install mono-2.0
to execute certain programs.
To install mono 2.0 ,open terminal and type
Registered UserRegistered UserI had the same problem with my brother's computer. It seems to be an installation problem. MonoDevelop thinks mono's libraries are installed in /usr/local/lib/... I couldn't fix that problem, so I copied /usr/lib/mono to /usr/local/lib
That works for now, but that isn't the solution. Anyone knows how to tell MonoDevelop where to look for the libraries? without having to build/install it manually.
Not the answer you're looking for? Browse other questions tagged mono or ask your own question.
When opening a file that does not contain a managed module, you get the following stack trace:
System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders(UInt16& subsystem)
at Mono.Cecil.PE.ImageReader.ReadImage()
at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream)
at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters)
at ICSharpCode.ILSpy.LoadedAssembly.LoadAssembly()
at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
at System.Threading.Tasks.Task.Execute()
The stack trace should not be displayed. Instead a user-friendly message should be shown in the DecompilerTextView, e.g.
// [file path as for managed module]
// This file does not contain a managed assembly.
Just to make sure: do allow opening non-assembly files, showing a message. Do not somehow refuse to open them.
If for no other reason, the plug-in I'm working on works for both managed and unmanaged modules.