Peter,
Could I take the opportunity to add my voice to this? I was intending
to post something similar when I'd done a bit more work on the topic,
but Wilson has beaten me to it.
The mono-service man pages are very sparse. If I can get it working,
I'd be very happy to write it up as a How-To
Peter,
What you say is true for Console servers in Windows and for normal executable assemblies,
but not - according to the documentation I have read - for Services. Here is the
relevant quotation from David Conger, "Remoting with C# and .NET", (2003),
Wiley, pp209-210:
"Next, the OnStart()
Peter,
My post was not intended as a criticism of the man page, and I'm very
sorry if it appeared to be so. Perhaps I should have been clearer, but
what I was really saying that what (I think) is needed is a HowTo.
I didn't understand your post as a criticism!
For example, the man page ment
Peter,
"OnStart doesn't call RemotingConfiguration.Configure(). It must be
a sample from that book doing so."
It's a sample from every book I've read on remoting that does so.
Remember that I'm concerned about services that host remote objects (as
I said in an earlier post - but you may have mi
Hi Peter,
The service doesn't start because of the RemoteSumsObject.dll
assembly. The remoting infrastructure loads this assembly
via reflection, which doesn't appear to work. Probably a
current directory issue ... However, the attached updated
monoservice script deals with that.
Rob
I'm att
Peter,
Nov 3 19:01:07 linux mono: RemoteSumsService.exe: Configuration file
'/home/peter/MonoRemotingTest/RemoteSumsService/bin/Release/RemoteSumsService.exe.config'
could not be loaded: Error in element customErrors: Invalid custom error
mode: Off
We've been through this before. Windows i
n if I
appeared to be critical. It wasn't my intention. I'm too aware of my
own failings to look for failings in other people :)
Cheers
Peter
-Original Message-
From: Robert Jordan [mailto:[EMAIL PROTECTED]
Sent: 01 November 2005 11:44
To: Mono-list@lists.ximian.com
Subject: [
Hi Peter,
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Bradley, Peter
> Sent: Tuesday, November 01, 2005 1:26 PM
>
> My post was not intended as a criticism of the man page, and I'm very
> sorry if it appeared to be so. Perhaps I should have
h search.
Cheers
Peter
-Original Message-
From: Jörg Rosenkranz [mailto:[EMAIL PROTECTED]
Sent: 01 November 2005 12:52
To: Bradley, Peter; Robert Jordan; mono-list@lists.ximian.com
Subject: RE: [Mono-list] Re: mono-service
Hi Peter,
> -Original Message-
> From: [EMAIL PROTECTED]
rdan; mono-list@lists.ximian.com
Subject: RE: [Mono-list] Re: mono-service
Hi Peter,
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Bradley, Peter
> Sent: Tuesday, November 01, 2005 1:26 PM
>
> My post was not intended as a cri
Hi Peter,
> -Original Message-
> From: Bradley, Peter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 01, 2005 2:05 PM
>
> You mention portability rules. Do you have a URL handy for
> these? A quick Google didn't bring up anything obvious, nor
> did searching the mono project sit
mailto:[EMAIL PROTECTED]
Sent: 01 November 2005 12:52
To: Bradley, Peter; Robert Jordan; mono-list@lists.ximian.com
Subject: RE: [Mono-list] Re: mono-service
Hi Peter,
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Bradley, Peter
Sent: Tuesday, November
r not if I don't have to because I
don't understand it :(
Cheers
Peter
-Original Message-
From: Elliott Draper [mailto:[EMAIL PROTECTED]
Sent: 01 November 2005 13:49
To: Bradley, Peter
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Re: mono-service
Bradley, Peter w
table), for the reasons I
gave: but if you're convinced it works then I'll give it a go.
Cheers
Peter
-Original Message-
From: Elliott Draper [mailto:[EMAIL PROTECTED]
Sent: 01 November 2005 13:49
To: Bradley, Peter
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Re: mon
Robert,
"OnStart doesn't call RemotingConfiguration.Configure(). It must be
a sample from that book doing so."
It's a sample from every book I've read on remoting that does so.
Remember that I'm concerned about services that host remote objects (as
I said in an earlier post - but you may have mis
a go.
I'd give the above line a shot; it's one line of code, where's the harm
in that? ;-)
Cheers
Peter
-= El =-
-Original Message-
From: Elliott Draper [mailto:[EMAIL PROTECTED]
Sent: 01 November 2005 13:49
To: Bradley, Peter
Cc: mono-list@lists.ximian.com
Bradley, Peter wrote:
Robert,
*snip*
OK. I'll play with that. The property has to be set, of course, which
means hard coding a path into code, which is something I like to avoid
where I can, but it doesn't seem too much of a risk in this situation.
Thank you.
That property doesn't have to
"I'm not saying it's *necessary*, simply that it seems the easiest and
most portable solution to me. It's one line of code, and then it should
work under both Mono and .Net without issue. You can move the service
around to your heart's content - so long as the "application.exe.config"
resides in th
"That property doesn't have to be set, it's something you get for free.
The AppDomain is created and setup presumably by the runtime when your
program launches, and it will automatically pick up the path to your
configuration file, providing it is named the same as your executable,
with ".config"
Robert Jordan wrote:
"One may call RemotingConfiguration.Configure() from OnStart, but this
is not a rule."
Yes of course you are right. The difficulty I have is that most times
it's hard to see where else you could call it, because you can't call it
more than once for the same remote objec
Robert Jordan wrote:
I'm attaching a init.d skeleton for mono-services, in the hope
that this (not quite mono related) problem will settle down
for a while.
It's for SUSE, but it can be easily adapted to other distros.
Robert
Hi Robert,
Sorry to be a pain, but I tried the script without any
peter wrote:
Hi Robert,
Sorry to be a pain, but I tried the script without any success. I
have SuSE 9.3 Pro. Here's what I got:
Apologies. Scrub that. My bad.
RTFM. I know. Apologies to the list.
Peter
___
Mono-list maillist - Mono-list@
Robert Jordan wrote:
Hi Peter,
The service doesn't start because of the RemoteSumsObject.dll
assembly. The remoting infrastructure loads this assembly
via reflection, which doesn't appear to work. Probably a
current directory issue ... However, the attached updated
monoservice script deals with
Robert Jordan wrote:
Hi Peter,
The service doesn't start because of the RemoteSumsObject.dll
assembly. The remoting infrastructure loads this assembly
via reflection, which doesn't appear to work. Probably a
current directory issue ... However, the attached updated
monoservice script deals with
Robert Jordan wrote:
We've been through this before. Windows insists that the value of
the mode attribute in is "Off" with a capital "O".
Robert did something to make Mono case insensitive - but it's likely
that's not in my installation yet.
This has been fixed after the last public relea
peter wrote:
I did that, Robert, having renamed the script to remotesumsd, but no
luck. When I reboot, the service is not running. There's nothing in
/var/log/messages, but this in /var/log/boot.msg:
... but when I booted my machine this evening and checked, I found the
service was running
26 matches
Mail list logo