[Mono-dev] mkbundle --deps problem

Russell Wallace russell.wallace at gmail.com
Mon Jul 5 08:49:03 EDT 2010

I've got a program that runs successfully on Mono (Linux) and I'm
trying to package it up with mkbundle so it can be run across a
cluster without having to install Mono on every machine. The stumbling
block seems to be the dependency on C5.dll.

a at a-desktop:~/ayane$ gmcs src/*.cs -r:C5.dll -out:ayane.exe
a at a-desktop:~/ayane$ mono ./ayane.exe
[correct output, program works under Mono]
a at a-desktop:~/ayane$ mkbundle -o ayane --deps ayane.exe
OS is: Linux
Sources: 1 Auto-dependencies: True

Unhandled Exception: System.IO.FileNotFoundException: Could not load
file or assembly 'C5' or one of its dependencies. The system cannot
find the file specified.
File name: 'C5'
  at System.AppDomain.Load (System.Reflection.AssemblyName
assemblyRef, System.Security.Policy.Evidence assemblySecurity)
  at (wrapper remoting-invoke-with-check) System.AppDomain:Load
  at System.AppDomain.Load (System.Reflection.AssemblyName
assemblyRef) [0x00000]
  at (wrapper remoting-invoke-with-check) System.AppDomain:Load
  at System.Reflection.Assembly.Load (System.Reflection.AssemblyName
assemblyRef) [0x00000]
  at MakeBundle.QueueAssembly (System.Collections.ArrayList files,
System.String codebase) [0x00000]
  at MakeBundle.Main (System.String[] args) [0x00000]

Am I doing something wrong, or is there a fix for this problem?

More information about the Mono-devel-list mailing list