Sunny
6/16/2004 2:23:00 PM
Hi,
glad to help you.
Btw, I''d recommend to use abstract class or interface approach. That way
the local creation of the object will be impossible, and you will always
know that something in config is wrong. And you are not shipping your
remote code to clients, which is good.
Sunny
In article <eNt51V3UEHA.712@TK2MSFTNGP11.phx.gbl>,
d.h.thornley@shu.ac.uk says...
> Sunny wrote:
>
> > Hi,
> >
> > are you loging at server side to see if the server instaniates the
> > object? If something is wrong with the configuration, the client may
> > create local object.
> >
> > See more inline:
> >
> > In article <#BjrwhsUEHA.3420@TK2MSFTNGP12.phx.gbl>,
> > d.h.thornley@shu.ac.uk says...
> >
> >>Hi All,
> >>
> >>I''ve also found that if I stop the service, the client will still create
> >>an instance of the remote object, even though should (I think) be
> >>unavailable...
> >
> >
> > The client does not connect to the server until first method call. What
> > you see is, that the proxy to the remote object is created, it always
> > succeeds. But if you try to make a method call, and server is not
> > running, it will fail. And ... if it succeeds, that means that you are
> > dealing with a local instance, and something in the configuration is
> > wrong.
> >
> >
> >>Based on what I''ve read this the remote object should be running with
> >>localsystem rights, however, this doesn''t appear to be the case.
> >>
> >>Am I totally misunderstanind .NET remoting or have I got a the
> >>confiuration wrong somewhere? Any help would be gratefully received
> >
> >
> > There is no way to tell you if you have something wrong without code :)
> >
> > But, you may put some logging in the constructor of the remote object,
> > just to see where it is instaniated.
> >
> >
> >>cheers
> >>
> >>dave
> >>
> >
> >
> > Cheers
> > Sunny
>
> Fantasic - thanks for that. I didn''t know the object could get created
> locally. Tinkering with the .config files sorted it out.
>
> cheers
>
> dave
>