事件ID 105 在源 : System.Runtime.Serialization 4.0.0.0中有报错:未跟踪一个或多个事件。如何解决?

冉凡瑞 730 信誉分
2025-01-20T08:34:00.5133333+00:00

工程师您好:

Exchange Server 2019环境中有台mail服务器,在源 : System.Runtime.Serialization 4.0.0.0中出现了一个报错事件ID 105:未跟踪一个或多个事件。具体报错信息如下:

消息 :

未跟踪一个或多个事件。 原始事件字符串: <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>正在引发异常。</Description><AppDomain>/LM/W3SVC/2/ROOT/owa-2-133809792471309710</AppDomain><Exception><ExceptionType>System.Runtime.Serialization.SerializationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>反序列化对象 属于类型 Microsoft.Exchange.Services.Wcf.UpdateItemJsonRequest 时出现错误。“ ”包含无效的 UTF8 字节。</Message><StackTrace> 在 System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) 在 System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(XmlDictionaryReader reader) 在 Microsoft.Exchange.Clients.Owa2.Server.Core.OwaServiceMethodDispatcher.ReadJsonObject(Type objectType, Stream stream) 在 Microsoft.Exchange.Clients.Owa2.Server.Core.OwaServiceMethodDispatcher.CreateMethodArgumentsFromStream(ServiceMethodInfo methodInfo, Stream stream) 在 Microsoft.Exchange.Clients.Owa2.Server.Core.OwaServiceMethodDispatcher.InvokeBeginMethod(ServiceMethodInfo methodInfo, Object service, HttpRequest httpRequest, AsyncCallback asyncCallback) 在 Microsoft.Exchange.Clients.Owa2.Server.Core.OwaServiceHttpAsyncHandler.InternalBeginProcessRequest(HttpContext httpContext, AsyncCallback cb, Object extraData) 在 Microsoft.Exchange.Clients.Owa2.Server.Core.OwaServiceHttpAsyncHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback cb, Object extraData) 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) 在 System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error) 在 System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) 在 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) 在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) 在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) 在 System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus&amp; notificationStatus) 在 System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus&amp; notificationStatus) 在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) 在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) </StackTrace><ExceptionString>System.Runtime.Serialization.SerializationException: 反序列化对象 属于类型 Microsoft.Exchange.Services.Wcf.UpdateItemJsonRequest 时出现错误。“ ”包含无效的 UTF8 字节。 ---&gt; System.Xml.XmlException: “ ”包含无效的 UTF8 字节。 ---&gt; System.Text.DecoderFallbackException: 无法将位于索引 0 处的字节 [E4] 由指定的代码页转换为 Unicode。 在 System.Text.DecoderExceptionFallbackBuffer.Throw(Byte[] bytesUnknown, Int32 index) 在 System.Text.DecoderExceptionFallbackBuffer.Fallback(Byte[] bytesUnknown, Int32 index) 在 System.Text.DecoderFallbackBuffer.InternalFallback(Byte[] bytes, Byte* pBytes, Char*&amp; chars) 在 System.Text.UTF8Encoding.FallbackInvalidByteSequence(Byte*&amp; pSrc, Int32 ch, DecoderFallbackBuffer fallback, Char*&amp; pTarget) 在 System.Text.UTF8Encoding.GetChars(Byte* bytes, Int32 byteCount, Char* chars, Int32 charCount, DecoderNLS baseDecoder) 在 System.Text.UTF8Encoding.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteCount, Char[] chars, Int32 charIndex) 在 System.Xml.XmlConverter.ToChars(Byte[] buffer, Int32 offset, Int32 count, Char[] chars, Int32 charOffset) --- 内部异常堆栈跟踪的结尾 --- 在 System.Xml.XmlConverter.ToChars(Byte[] buffer, Int32 offset, Int32 count, Char[] chars, Int32 charOffset) 在 System.Xml.XmlBufferReader.GetChars(Int32 offset, Int32 length, Char[] chars) 在 System.Xml.XmlBufferReader.GetString(Int32 offset, Int32 length) 在 System.Xml.ValueHandle.GetString() 在 System.Runtime.Serialization.Json.XmlJsonReader.get_Value() 在 System.Xml.XmlDictionaryReader.ReadContentAsString(Int32 maxStringContentLength) 在 System.Xml.XmlBaseReader.ReadElementContentAsString() 在 ReadBodyContentTypeFromJson(XmlReaderDelegator , XmlObjectSerializerReadContextComplexJson , XmlDictionaryString , XmlDictionaryString[] ) 在 System.Runtime.Serialization.Json.JsonClassDataContract.ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) 在 System.Runtime.Serialization.Json.JsonDataContract.ReadJsonValue(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) 在 System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader) 在 System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract&amp; dataContract) 在 System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle, String name, String ns) 在 ReadMessageFromJson(XmlReaderDelegator , XmlObjectSerializerReadContextComplexJson , XmlDictionaryString , XmlDictionaryString[] ) 在 System.Runtime.Serialization.Json.JsonClassDataContract.ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) 在 System.Runtime.Serialization.Json.JsonDataContract.ReadJsonValue(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) 在 System.Runtime.Serialization.Json.XmlObjectSerializerRe 异常: System.ArgumentException: 日志项字符串太长。写入事件日志的字符串不能超过 32766 个字符。 在 System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) 在 System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) 在 System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object[] values) 在 System.Diagnostics.TraceSource.TraceData(TraceEventType eventType, Int32 id, Object data) 在 System.ServiceModel.Diagnostics.LegacyDiagnosticTrace.TraceEvent(TraceEventType type, Int32 code, String msdnTraceCode, String description, TraceRecord trace, Exception exception, Object source) 进程名称: w3wp 进程 ID: 23456

时间 : 2025-01-17 08:37:10

显示名称 : mail009

设备 : mail009

事件ID : 105

严重性 : error

类型 : Application

源 : System.Runtime.Serialization 4.0.0.0

日志类型 : Windows

请问:

1、目前观察此事件ID105本月就出现1次,好像不影响AD和邮件正常功能的使用,这个报错是什么原因导致的?

2、根据这个报错信息,对此错误事件需要特别关注吗?还是这是正常现象?

3、如何消除或者避免错误105的告警事件?

感谢您的答复!!!

谢谢

Exchange Server
Exchange Server
Microsoft 客户端/服务器消息传递和协作软件系列。
91 个问题
0 个注释 无注释
{count} 票

接受的答案
  1. Xintao Qiao-MSFT 6,585 信誉分 Microsoft 供应商
    2025-01-21T02:51:36.03+00:00

    您好,@冉凡瑞

    关于您在Exchange Server 2019环境中遇到的事件ID 105错误,以下是我的想法与建议:

    1.这个报错是什么原因导致的?

    根据报错事件105,通常是由于反序列化过程中出现了无效的UTF8字节导致的。具体来说,某个请求包含了在反序列化过程中无效的UTF8字符,导致了“SerializationException”异常的产生。这一般与Exchange Server在处理请求时所接收到的内容有问题有关。

    2.根据这个报错信息,对此错误事件需要特别关注吗?还是这是正常现象?

    由于该问题本月只出现了一次,并且似乎没有影响到AD和邮件的正常功能,这可能是某个请求中的偶然性问题,因此您可以暂时不必过于担心,但建议继续监控系统日志,确保错误不会频繁出现或导致其他问题。

    3.如何消除或者避免错误105的告警事件?

    1.确保您引用和传输的数据都是有效的UTF8编码,避免在数据传输过程中出现编码问题。

    2.继续监控系统日志,记录和分析错误发生的频率和触发条件。如果错误频繁出现,建议追踪触发条件并进行下一步排查。


    如果答案有帮助,请点击“接受答案”并投赞成票。如果您对此答案有其他问题,请点击“评论”。

    1 个人认为此答案很有帮助。
    0 个注释 无注释

0 个其他答案

排序依据: 非常有帮助

你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。