joshuadavidlee
asked on
what does a remoting method return if it timesout in .net2?
if I have a method called getSomeData() that returns a string, then what will happen if the call timesout in .net 2 ?
example string s = myRemotingObject.getSomeDa ta();
how do i control timeouts also or set their length?
please advice how to deal/handle timeouts
example string s = myRemotingObject.getSomeDa
how do i control timeouts also or set their length?
please advice how to deal/handle timeouts
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
and does timeout mean the time for it to complete the method or doe si tmean nothing shappening?
for example what if it takes 5 minutes to transfer a file and i set it to timeout 30 seconds?
for example what if it takes 5 minutes to transfer a file and i set it to timeout 30 seconds?
There are two places you may have to change:
1. Change the ASP.NET timeout
http://www.devx.com/vb2themax/Tip/18803
This is the most likely culprit of your errors
2. Use the Timeout property of your proxy class to set the proper time on
the client.
WebReference.ProxyClass myProxy = new WebReference.ProxyClass();
// Set the timeout in milliseconds -- e.g. 100 seconds
myProxy.Timeout = 100000;
Hope that helps.
1. Change the ASP.NET timeout
http://www.devx.com/vb2themax/Tip/18803
This is the most likely culprit of your errors
2. Use the Timeout property of your proxy class to set the proper time on
the client.
WebReference.ProxyClass myProxy = new WebReference.ProxyClass();
// Set the timeout in milliseconds -- e.g. 100 seconds
myProxy.Timeout = 100000;
Hope that helps.
ASKER