c# - 异常管理错误

标签 c# .net asp.net

正在收到错误消息,例如

The event source ExceptionManagerInternalException does not exist and cannot be created with the current permissions.

在我的 web.config 中使用的代码

<section name="exceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,Microsoft.ApplicationBlocks.ExceptionManagement"/>
  <exceptionManagement mode="on">
    <publisher assembly="ExceptionManagement" type="Zerone.ExceptionManagement.ExceptionXMLPublisher" exceptionFormat="xml" fileName="c:\ALAE\"/>
  </exceptionManagement>

谢谢

最佳答案

在具有管理员权限的 DOS 窗口中运行:

eventcreate /t error /id 1000 /so ExceptionManagerInternalException /l application /d "new src ExceptionManagerInternalException in application log"

eventcreate /t error /id 1000 /so ExceptionManagerPublishedException /l application /d "new src ExceptionManagerPublishedException in application log"

这解决了我的客户端应用程序问题,但应该可以在 ASP-net 中使用

Reference here .

关于c# - 异常管理错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6909589/

相关文章:

asp.net - 其他 Web 技术中是否有与 ASP.NET ViewState 等效的东西?

c# - 绑定(bind)到 MainView 窗口的 Width 属性时出现绑定(bind)错误

.net - 如何在 .NET/C#/VS2008 中的项目之间共享命名空间。接收错误 : "are you missing an assembly reference?"

.net - asp.net网站中的CSS文件

.net - 将 Office 安装到 Windows 容器中(servercore :ltsc2019) failed with error code 17002

c# - 反序列化 XML 文件而不将其全部加载到内存中

asp.net - 无效操作异常 : Could not find 'UserSecretsIdAttribute' on assembly

c# - 如何以编程方式从值中删除/添加复合/非复合百分比和固定金额?

c# - C# 中的最大长度名称类

c# - 订户丢失消息;这是 Rx 的错误还是我做错了?