【发布时间】:2016-04-01 14:30:34
【问题描述】:
我们今天遇到了这个异常,只要我们重试导致它的操作,它就会不断重复
System.IO.IOException: Insufficient system resources exist to complete the requested service.
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)
at System.Diagnostics.EventLog.CreateEventSource(EventSourceCreationData sourceData)
at System.Diagnostics.EventLog.VerifyAndCreateSource(String sourceName, String currentMachineName)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message)
at DoWork()
重新启动为我们解决了这个问题,但没有解释根本原因。我们通常编写少于 20 个字符的源代码和少于 100 个字符的消息。运行代码的机器上的资源使用情况似乎很好。
【问题讨论】:
标签: .net windows-server-2003 event-log