What should you do?

An administrator reports that when a client application runs, the application throws a RemotingException exception with the message:
“Object ‘/40b4b673_e739_43df_abe4_ee269ff67173/0t_g9ytvvi_lgue2i9q5qrni_1.rem’ has been disconnected or does not exist at the server”.

You discover the following information: The object causing the exception is configured as a Client Activated Object (CAO).
The exception is thrown only if the client application is idle for more than five minutes.
If the client application is idle for nine minutes, the client application shuts down and the user is logged out.
You need to ensure that the CAO is available to the client application.

What should you do?

An administrator reports that when a client application runs, the application throws a RemotingException exception with the message:
“Object ‘/40b4b673_e739_43df_abe4_ee269ff67173/0t_g9ytvvi_lgue2i9q5qrni_1.rem’ has been disconnected or does not exist at the server”.

You discover the following information: The object causing the exception is configured as a Client Activated Object (CAO).
The exception is thrown only if the client application is idle for more than five minutes.
If the client application is idle for nine minutes, the client application shuts down and the user is logged out.
You need to ensure that the CAO is available to the client application.

What should you do?

A.
Add the following XML to the App.config file for the client application.
<configuration>
<system.runtime.remoting>
<application>
<lifetime leaseTime=”999999999999″ />
</application>
</system.runtime.remoting>
</configuration>

B.
Add the following code to the CAO class.
public override object InitializeLifetimeService()
{
ILease lease = (ILease)base.InitializeLifetimeService();
if (LeaseState.Initial == lease.CurrentState)
{
lease.RenewOnCallTime = TimeSpan.FromMinutes(10);
}
return lease;
}

C.
Add the following code to the CAO class.
public override object InitializeLifetimeService()
{
ILease lease = (ILease)base.InitializeLifetimeService();
if (LeaseState.Initial == lease.CurrentState)
{
lease.SponsorshipTimeout = TimeSpan.FromMinutes(10);
}
return lease;
}

D.
Add the following XML to the App.config file for the client application.
<system.runtime.remoting>
<application>
<lifetime leaseManagerPollTime=”10m” />
</application>
</system.runtime.remoting>



Leave a Reply 0

Your email address will not be published. Required fields are marked *