Asp.net EventLogWebEventProvider提供程序未能记录事件,错误代码为0x80070057

Asp.net EventLogWebEventProvider提供程序未能记录事件,错误代码为0x80070057,asp.net,event-log,Asp.net,Event Log,我正在asp.net应用程序中编写WebEvent,它在我的开发和生产区域都运行良好。然而,当我分析过去几个月生产服务器中的事件日志时,我看到了下面的事件 The following exception was thrown by the web event provider 'EventLogProvider' in the application '/(MyApplicationName)' (in an application lifetime a maximum of one ex

我正在asp.net应用程序中编写WebEvent,它在我的开发和生产区域都运行良好。然而,当我分析过去几个月生产服务器中的事件日志时,我看到了下面的事件

 The following exception was thrown by the web event provider 'EventLogProvider' in   the application '/(MyApplicationName)' (in an application lifetime a maximum of one exception will be logged per provider instance):

System.Web.HttpException (0x80004005): The EventLogWebEventProvider provider failed to log an event with the error code 0x80070057.

at System.Web.Management.EventLogWebEventProvider.ProcessEvent(WebBaseEvent eventRaised)

at System.Web.Management.WebBaseEvent.RaiseInternal(WebBaseEvent eventRaised, ArrayList firingRuleInfos, Int32 index0, Int32 index1)
虽然发生率很低,但我还是很好奇为什么会发生这种情况。我试着做了一些研究,发现了下面的链接

根据这个链接,我可能在编写事件日志时传递了一些无效参数。 但我仔细检查了我的EventLog.WriteEntry方法,我在应用程序中只在几个地方使用它,而且,我正在传递静态字符串消息。若参数无效,那个么它应该在我每次尝试编写事件时发生


请任何人帮助我了解此事件的可能原因。使用EvenLog时是否存在任何已知问题?

检查您的代码您可能试图执行无效操作


在我的情况下,在将位置更改为D驱动器后,我正在将文件写入C驱动器问题已解决

我也面临着这个问题,是否有任何解决方案请?????不,仍然不知道为什么会发生这种情况……我不再有代码库……这个问题发生在很久以前……但是,这是我们正在编写的事件日志,是您在事件查看器中看到的事件日志…而不是您在日志文件中写入的事件…另外,这肯定不是安全问题,因为错误是偶发的。。。