c# – 异常管理错误
发布时间:2020-12-16 01:46:07 所属栏目:百科 来源:网络整理
导读:我得到的错误信息就像 The event source ExceptionManagerInternalException does not exist and cannot be created with the current permissions. 在我的web.config中使用代码 section name="exceptionManagement" type="Microsoft.ApplicationBlocks.Exce
我得到的错误信息就像
在我的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. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |