.NET Framework Bookmark and Share   
 index > .NET Remoting and Runtime Serialization > remoteable object instantiation
 

remoteable object instantiation

Hi,

Iworte a test program that contains a remote object.I used the config file for theReoting definitions - all works properly so far ...
howerver, I've noticed that theremotable object is instanced onlyat the fiest connection of a client.

I'd like to instance the object when the server goes up -what changes should I make?


this is the config file I used:

<?
xml version="1.0" encoding="utf-8" ?>

<configuration>

<system.runtime.remoting>

<application>

<lifetime leaseTime="20D" sponsorshipTimeout="1H" renewOnCallTime="1D" leaseManagerPollTime="1H" />

<client>

<wellknown type="Server1.Remotable,Server1" url="tcp://localhost:8081/Remotable" />

</client>

<channels>

<channel ref="tcp" port="0" clientConnectionLimit="20" >

</channel>

</channels>

</application>

</system.runtime.remoting>

</configuration>

and this is the service code:

AutoResetEvent stop = new AutoResetEvent(false);

try

{

RemotingConfiguration.Configure("MyConfigFile.config");

stop.WaitOne();

}

catch (Exception ex)

{

Console.WriteLine(ex.Message);

}


many thanks ....
ofer


oferiko
It doesn't look like you can do what you want. Please see the activation docs here:

http://msdn.microsoft.com/en-us/library/cbzcxy2s.aspx

Thanks.
Nathan Anderson - MSFT
It doesn't look like you can do what you want. Please see the activation docs here:

http://msdn.microsoft.com/en-us/library/cbzcxy2s.aspx

Thanks.
Nathan Anderson - MSFT

You can use google to search for other answers

Custom Search

More Threads

• IIS 6.0 .NET Remoting and HTTP Keep Alives
• Remotting
• Remoting vs Web Services
• creating managed COM server from C++
• Remoting Security for .NET 2.0
• write struct to file
• Is Microsoft serious about serialization?
• WCF - FrameWork3 Instalation
• Monitoring Exception Throwing
• Interprocess communication between a managed service and an unmanaged application.