Connections closed early?

My CalDAV and CardDAV accounts report that the server closes the connection early, and the accounts can’t be updated. I’ve included the error log below (other successful accounts and personal information removed).  A little Googling led me to this forum post that didn’t help me but might help your team troubleshoot.

https://social.msdn.microsoft.com/Forums/en-US/246ffc07-1cab-44b5-b529-f1135866ebca/exception-the-un…

Error Log:

12:56:59 Online state: changed to online due to NetworkAvailability
12:57:00 [redacted] Calendar [CalDAV / CardDAV]  MailClient.Accounts.ConnectionException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. —> System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.
12:57:00    at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
12:57:00    at MailClient.Protocols.CalDav.ProtocolCommands.RequestCommand.Execute(HttpWebRequest httpRequest, CancellationToken cancellationToken, Action1 logBody) 12:57:00    at MailClient.Protocols.CalDav.ProtocolCommands.XmlRequestCommand.Execute(HttpWebRequest httpRequest, CancellationToken cancellationToken, Action1 logBody)
12:57:00    at MailClient.Protocols.CalDav.ProtocolCommands.Connector.RunCommand(CalDavAccount account, ICommand command, CancellationToken cancellationToken)
12:57:00    — End of inner exception stack trace —
12:57:00    at MailClient.Protocols.CalDav.ProtocolCommands.Connector.RunCommand(CalDavAccount account, ICommand command, CancellationToken cancellationToken)
12:57:00    at MailClient.Protocols.CalDav.Synchronizer.BootstrapCommand.UpdatePrincipalProperties(Uri baseUri, Boolean retryOnNotFound)
12:57:00    at MailClient.Protocols.CalDav.Synchronizer.BootstrapCommand.Execute(WorkerStatus status)
12:57:00    at MailClient.Commands.Command.Process(WorkerStatus status)
12:57:01 [redacted] Contacts [CalDAV / CardDAV]  MailClient.Accounts.ConnectionException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. —> System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.
12:57:01    at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
12:57:01    at MailClient.Protocols.CalDav.ProtocolCommands.RequestCommand.Execute(HttpWebRequest httpRequest, CancellationToken cancellationToken, Action1 logBody) 12:57:01    at MailClient.Protocols.CalDav.ProtocolCommands.XmlRequestCommand.Execute(HttpWebRequest httpRequest, CancellationToken cancellationToken, Action1 logBody)
12:57:01    at MailClient.Protocols.CalDav.ProtocolCommands.Connector.RunCommand(CalDavAccount account, ICommand command, CancellationToken cancellationToken)
12:57:01    — End of inner exception stack trace —
12:57:01    at MailClient.Protocols.CalDav.ProtocolCommands.Connector.RunCommand(CalDavAccount account, ICommand command, CancellationToken cancellationToken)
12:57:01    at MailClient.Protocols.CalDav.Synchronizer.BootstrapCommand.UpdatePrincipalProperties(Uri baseUri, Boolean retryOnNotFound)
12:57:01    at MailClient.Protocols.CalDav.Synchronizer.BootstrapCommand.Execute(WorkerStatus status)
12:57:01    at MailClient.Commands.Command.Process(WorkerStatus status)

Hello Chris,

Thank you for posting this. If you use a firewall, you can try turning it off for a bit and see what happens. If this doesn’t help, then as you found out, it is a server issue and we would recommend contacting the server.

Regards,
Maurice