正在收到错误消息,例如
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 中使用
关于c# - 异常管理错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6909589/