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.
Regards Gavin.