Rebex.Net. Existing connection to an EWS mailbox that loses it's connection after a period of inactivity.

0 votes
asked Feb 5 by sked1985 (180 points)

Exception details:
Message: Error while executing request
InnerException: {"Error while executing request."}
Data: {System.Collections.ListDictionaryInternal}
HResult: -2146233088
HelpLink: null
InnerException: {"Error while processing request. Connection was closed by the remote connection end."}
Message: "Error while executing request."
Properties: null
ProtocolCode: null
ProtocolMessage: null
Source: "Rebex.Ews"
StackTrace: " at evtz.Invoke[T](String methodName, Object arg)\r\n at Rebex.Net.Ews.oesw(EwsFolderId gam, EwsItemFields gan, EwsPageView gao, EwsSearchParameter gap, IEnumerable1 gaq)\r\n at Rebex.Net.Ews.hwue.fdht()\r\n at Rebex.Net.Ews.oetj[b](String gbj, Func1 gbk, hwth gbl)"
Status (Rebex.Net.NetworkSessionException): OperationFailure
Status: OperationFailure
TargetSite: {T Invoke[T](System.String, System.Object)}

commented Feb 6 by Pavel Matyska (12,780 points)
Hello,

The inner exception message describes what happened. Due to long inactivity the server closed the connection, which the client side can detect only by performing some network request. Also by performing network requests periodically (lets say every 30 seconds) using that connection the server should keep the connection alive.

Unfortunately we do not provide any KeepAlive method on Ews client at the moment.

Please log in or register to answer this question.

...