Remoting connection timed out

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sree83
    New Member
    • Jan 2008
    • 7

    #1

    Remoting connection timed out

    I have a remoting server. I have an unmanaged client and some screens(in C#) that use the server. When the clients are up, they get connected to the server and is working fine..but after 1 or 2 hours the connection to the server gets broken.
    Lifetime of the sever is leased to infinite....

    I have a class RemotingBase which is derived from MarshalByRefObj ect and also InitializeLifet imeService is overriden as follows

    InitializeLifet imeService()
    {

    ILease lease = (ILease)Marshal ByRefObject::In itializeLifetim eService();

    if (lease.CurrentS tate == LeaseState.Init ial)
    {
    lease.InitialLe aseTime = TimeSpan::Zero;
    }
    }

    Can anyone tell me how to solve this....


    Also note that there is a managed C++ wrapper class is developed to make use of an interface , say, IToolInterface, in the remoting server....Unman aged client connects to the server using this wrapper class. I don't know whether this has to do anything with the issue...
  • sree83
    New Member
    • Jan 2008
    • 7

    #2
    Hi all,

    I find out the problem...one of the clients create a new connection, each time it is invoking some method in the server...


    Thanks for the support...

    Comment

    Working...