Print Page | Close Window

Server side methods called twice

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2012
Forum Discription: For .NET 4.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4661
Printed Date: 21-Jan-2026 at 2:18pm


Topic: Server side methods called twice
Posted By: katit
Subject: Server side methods called twice
Date Posted: 21-Mar-2014 at 2:10pm
Is there any internal code that causes server side methods to be called many times? I noticed this while debugging when I'm for too long inside server-side call and step-through it would run server method second time.

Is this possible autumatic retry? I need to know for sure because we are proxying webservice calls this way and we rather dial with time-outs than have "magic" retries.



Replies:
Posted By: DenisK
Date Posted: 24-Mar-2014 at 5:06pm
Hi katit,

Yes, DevForce will automatically attempt server side method call for 3 retries before giving up.


Posted By: katit
Date Posted: 24-Mar-2014 at 5:12pm
Is there any way to prevent this? And how do I know it retries?

For this specific case I'd like to make sure it does 1 attempt only and if failed - user would push button again..


Posted By: DenisK
Date Posted: 24-Mar-2014 at 5:52pm
Unfortunately there is no way to customize the number of retries or to know when the retry occurs.

DF will only attempt retries on timeout exception, communication related exception, as well as exceptions related to ZLib, an open source library we use for compression.

If any other exception occurs, the call will not be retried and the exception is thrown back to the client. You can intercept the exception by hooking into the EntityManager.EntityServerError event.


Posted By: katit
Date Posted: 02-Apr-2014 at 11:46am
Originally posted by DenisK

DF will only attempt retries on timeout exception


Is it possible to change timeout? Because if I'm proxying web service call to 3rd party and it take a while I might get time out on Silverlight client which will cause retry and send ANOTHER request to 3rd party. We need to avoid this.


Posted By: DenisK
Date Posted: 03-Apr-2014 at 10:40am
Yes it is possible. 

Please refer to the following link on how to troubleshoot and change various timeouts. 

http://drc.ideablade.com/devforce-2012/bin/view/Documentation/understand-timeouts



Print Page | Close Window