Hi Joe The following is the contents of /usr/lib/mono/2.0/ after installing just the mono-2.0-service package.
CustomMarshalers.dll System.Core.dll gacutil.exe System.dll I18N.dll System.Drawing.dll I18N.West.dll System.EnterpriseServices.dll Mono.Posix.dll System.Management.dll Mono.Security.dll System.Security.dll mono-service.exe System.ServiceProcess.dll mscorlib.dll System.Transactions.dll System.Configuration.dll System.Xml.dll System.Configuration.Install.dll System.Xml.Linq.dll As you can see mono-service.exe exists. The following is the list of the dependancies that where installed with mono-2.0-service package. --\ Packages being automatically installed to satisfy dependencies (10) ciA binfmt-support +168kB <none> 1.2.18 piA cli-common +344kB <none> 0.7 piA libmono-corlib2.0-cil +2,679k <none> 2.4.4~svn1 piA libmono-i18n-west2.0-cil +225kB <none> 2.4.4~svn1 piA libmono-posix2.0-cil +303kB <none> 2.4.4~svn1 piA libmono-security2.0-cil +418kB <none> 2.4.4~svn1 piA libmono-system2.0-cil +4,510k <none> 2.4.4~svn1 piA mono-2.0-gac +147kB <none> 2.4.4~svn1 piA mono-gac +135kB <none> 2.4.4~svn1 ciA mono-runtime +3,379k <none> 2.4.4~svn1 I dont have any other services to test mono-service2 with, however I managed to fix the problem by installing libmono2.0-cil package. Should this be a dependancy of the mono-2.0-service package? If it should not be neccesary I would prefer not to use it as the libmono2.0-cil package has a lot of dependancies and with this being a customer's production server I would like to install as little as possible. Thanks for your help, Gavin --- On Fri, 11/6/10, Jo Shields <[email protected]> wrote: From: Jo Shields <[email protected]> Subject: Re: mono-2.0-service ubuntu server 10.04 To: "Gavin Phaup" <[email protected]> Cc: [email protected], [email protected] Date: Friday, 11 June, 2010, 9:40 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? -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]
