Event ID 65535 System.Runtime.Serialization errors in Application log in Exchange Server 2019 or 2016

Symptoms

In Microsoft Exchange Server 2019 or Exchange Server 2016, when users successfully sign in to mailboxes by using Outlook on the web (previously known as OWA) or refresh the Outlook on the web webpage, the following event is logged in the Application log:


LogName:       Application

Source:        System.Runtime.Serialization

Date:          DateTime

Event ID:      65535

Task Category: None

Level:         Error

User:          N/A

Computer:      ComputerName

Description:

<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>https://docs.microsoft.com/dotnet/framework/wcf/diagnostics/tracing/System-ServiceModel-Diagnostics-ThrowingException</TraceIdentifier><Description>Throwing an exception.</Description><AppDomain> AppDomain </AppDomain><Exception><ExceptionType>System.Runtime.Serialization.SerializationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>DateTime values that are greater than DateTime.MaxValue or smaller than DateTime.MinValue when converted to UTC cannot be serialized to JSON.</Message><StackTrace>   at System.Runtime.Serialization.Json.JsonWriterDelegator.WriteDateTimeInDefaultFormat(DateTime value)

at System.Runtime.Serialization.Json.JsonWriterDelegator.WriteDateTime(DateTime value)

at WriteOwaLightningStateToJson(XmlWriterDelegator , Object , XmlObjectSerializerWriteContextComplexJson , ClassDataContract , XmlDictionaryString[] )

at System.Runtime.Serialization.Json.JsonClassDataContract.WriteJsonValueCore(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)

at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)

at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)

at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph)

at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph)

at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)

at System.Runtime.Serialization.Json.DataContractJsonSerializer.WriteObject(XmlDictionaryWriter writer, Object graph)

at System.Runtime.Serialization.Json.DataContractJsonSerializer.WriteObject(Stream stream, Object graph)

at Microsoft.Exchange.Data.Storage.LightningConfigurationHelper.SaveConfiguration[T](Stream stream, IUserConfiguration lightningConfiguration, DataContractJsonSerializer jsonSerializer, T state)

at Microsoft.Exchange.Data.Storage.LightningConfigurationHelper.&lt;GetUnseenLightningItems&gt;d__0`2.MoveNext()

at System.Linq.Enumerable.&lt;CastIterator&gt;d__97`1.MoveNext()

at System.Linq.Buffer`1..ctor(IEnumerable`1 source)

at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)

at Microsoft.Exchange.Clients.Owa2.Server.Core.ServiceCommands.GetUnseenLightningIds.InternalExecute()

at Microsoft.Exchange.Services.Wcf.ServiceCommand`1.DetectDuplicatedCallOrExecute()

at Microsoft.Exchange.Services.Wcf.ServiceCommand`1.Execute()

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

at Microsoft.Exchange.Clients.Owa2.Server.Core.OwaServiceMethodDispatcher.InvokeMethod(HttpRequest request, MethodInfo methodInfo, Object obj, Object[] parameters)

at Microsoft.Exchange.Clients.Owa2.Server.Core.OwaServiceMethodDispatcher.&lt;&gt;c__DisplayClass22_0.&lt;InternalInvokeMethod&gt;b__0()

at Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(Action tryDelegate, Func`2 filterDelegate, Action`1 catchDelegate)

at Microsoft.Exchange.Clients.Owa2.Server.Core.OwaServiceMethodDispatcher.InternalInvokeMethod(ServiceMethodInfo methodInfo, Object service, HttpRequest httpRequest, HttpResponse httpResponse, Object[] arguments)

at Microsoft.Exchange.Clients.Owa2.Server.Core.OwaServiceMethodDispatcher.InvokeMethodWithPostDataInHeader(ServiceMethodInfo methodInfo, Object service, HttpRequest httpRequest, HttpResponse httpResponse)

at Microsoft.Exchange.Clients.Owa2.Server.Core.OwaServiceHttpHandler.InternalProcessRequest(HttpContext httpContext)

at Microsoft.Exchange.Clients.Owa2.Server.Core.OwaServiceHttpHandler.ProcessRequest(HttpContext httpContext)


The issue can occur on any server that has a positive time zone offset, for example, UTC+1 (Paris), UTC+2 (Cairo), UTC+3 (Moscow) and so on.

Resolution

To fix this issue, install one of the following updates:

For Exchange Server 2019, install the Cumulative Update 8 for Exchange Server 2019 or a later cumulative update for Exchange Server 2019.

For Exchange Server 2016, install the Cumulative Update 19 for Exchange Server 2016 or a later cumulative update for Exchange Server 2016.

References

Learn about the  terminology that Microsoft uses to describe software updates.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×