[ubuntu-mono] mono-2.0-service ubuntu server 10.04
Jo Shields
directhex at apebox.org
Fri Jun 11 07:40:38 UTC 2010
On Thu, 2010-06-10 at 09:04 -0700, Gavin Phaup wrote:
> Hi
>
> I have a service that I have running fine on my ubuntu 10.04 desktop,
> which I am creating a package for to run on ubuntu 10.04 servers.
>
> I have set a dependency for the package of mono-2.0-service, which
> installs mono-runtime and some others based on its dependencies.
> However when I try and run the service with the following command:
>
> sudo mono-service2 -l:/var/run/example-lock
> --debug /usr/lib/example/Example.exe
>
> I get the following error:
>
> Unhandled Exception: System.IO.FileNotFoundException: Could not load
> file or assembly 'mono-service, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The
> system cannot find the file specified. File name: 'mono-service,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
> at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceAndUnwrap
> (string,string,bool,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[],System.Security.Policy.Evidence) at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceAndUnwrap (string,string,bool,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[],System.Security.Policy.Evidence) at MonoServiceRunner.Main (System.String[] args) [0x00000]
> Are there any other dependencies I need besides mono-2.0-service? I
> have been unable to find any tutorials on setting up mono on ubuntu
> server.
That package ought to contain /usr/lib/mono/2.0/mono-service.exe. Can
you run mono-service2 on any other executables?
More information about the Ubuntu-mono
mailing list