kruegerste
asked on
VB.Net Remoting Timeout Issue
Does anybody know if there is a way to modify the timeout associated with remoting?
We have a vb.net 3.5 console application which uses remoting for executing application code. Below is the method and app.config key used to remote.
It seems that the process on the client machine times out after around 20 minutes. We have a job that runs a large SQL job which can take 30-45 minutes and right now we are forced to do it in 2 different calls which is very messy. Anyway to prevent the client to timeout when using remoting?
Thanks ahead of time.
We have a vb.net 3.5 console application which uses remoting for executing application code. Below is the method and app.config key used to remote.
It seems that the process on the client machine times out after around 20 minutes. We have a job that runs a large SQL job which can take 30-45 minutes and right now we are forced to do it in 2 different calls which is very messy. Anyway to prevent the client to timeout when using remoting?
Thanks ahead of time.
Private Sub ConfigureRemoting() RemotingConfiguration.RegisterWellKnownClientType(GetType(BusinessRules.CreditSystem), System.Configuration.ConfigurationManager.AppSettings("Application.Credit.Server"))
End Sub
<add key="Application.Credit.Server" value="http://localhost/applicationserver/creditsystem.rem" />
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Oh, and I didn't see your 2nd post until after my follow-up, but I wanted to add that i don't think we are using a singleton object per-say. I'm concerned this technique might create other issues with our application.
The MSDN article I linked explains the leasing model if you want to specify a time limit and then extend that lease each time it expires.
ASKER
abandoned
ASKER
The main issue is that the public class that inherits MarshalByRefObject contains methods for all sorts of different applications. It is very large to say the least. Is this override going to create issues with garbage collecting on these other methods? What is the impact of making this change?