Re: convert console app to config file?

From: hazz (hazz_at_sonic.net)
Date: 10/18/04


Date: Mon, 18 Oct 2004 10:35:08 -0600

Thank you Sam.
Actually I have an operational hurdle.
I created a working sample of a client and server in VS.NET using the code I
provided.
If I create the configuration file as you very helpfully morphed for me, how
do I activate the server object? In VS.NET I just had to click Start-F54
and everything automagically happened. The console commands gave me instant
feedback the service was running.
If I use a config file....well how do I kick start the remoted object in
question.How do I know it's up and running and available for service? Sorry
for these I am sure painfully obvious questions.
Thanks again. I am getting closer!
hazz
"Sam Santiago" <ssantiago@n0spam-SoftiTechture.com> wrote in message
news:ubY30fStEHA.3200@TK2MSFTNGP14.phx.gbl...
> Yes, how about:
>
> <system.runtime.remoting>
> <application name="MyRemoteServer">
> <service>
> <wellknown mode="SingleCall"
> type="Namespace.ServerClass, AssemblyName"
> objectUri="MyURI">
> </service>
> <channels>
> <channel ref="tcp" port="8086">
> <serverProviders>
> <formatter ref="binary" typeFilterLevel="Full" />
> </serverProviders>
> </channel>
> </channels>
> </application>
> </system.runtime.remoting>
>
> The client side configuration file is left as an exercise for the reader
> ;-).
>
> Thanks,
>
> Sam
>
> --
> _______________________________
> Sam Santiago
> ssantiago@n0spam-SoftiTechture.com
> http://www.SoftiTechture.com
> _______________________________
> "hazz" <hazz@sonic.net> wrote in message
> news:%233OkC5RtEHA.4044@TK2MSFTNGP09.phx.gbl...
> > The following code successfully turns an existing assembly into a server
> > object to which my client app successfully connects and invokes a method
> > from the server object.
> >
> > TcpServerChannel channel = new TcpServerChannel(8086);
> > ChannelServices.RegisterChannel(channel);
> >
>
RemotingConfiguration.RegisterWellKnownServiceType(typeof(ServerClass),"MyUr
> > i",WellKnownObjectMode.SingleCall)
> >
> > System.Console.WriteLine("hit to exit");
> > System.Console.ReadLine();
> >
> > Can I create a config file out of these few lines of code?
> >
> > thank you. -hazz
> >
> >
> >
> >
> >
> >
>
>



Relevant Pages

  • Re: convert console app to config file?
    ... client project and your server project. ... Start your server application (console app most ... Sam Santiago ... > If I create the configuration file as you very helpfully morphed for me, ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Lifetime of remote event subscriptions
    ... RDB, a tool for fast and securely accessing remote databases with dial-up, ... > This Object offers some events to the client. ... > But, if the server don't call an event for a longer time, the connection ... Calling methods on the server object from client ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Some basic questions of COM
    ... When creating an in-proc server using ATL Wizard, ... After 1, if a client wants to use the server, it has to include the two ... This depends on the language you use your objects from. ... > library be generated as a by-product of the server object? ...
    (microsoft.public.vc.atl)
  • Re: Do I need two remoting objects?
    ... either a client or a server depending on the situation. ... Try changing the TcpClientChannel on the client-side form to ... > as like the client needs to know about the server object. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: remoting program hangs with FIN_WAIT2
    ... exception when the call fails but keep trying the call. ... The server process ... causes the client to fail but only until the server is running again. ... > Next I have a client, which is using this server object. ...
    (microsoft.public.dotnet.framework.remoting)

Loading