c# - LogParser 访问被拒绝错误

标签 c# asp.net iis logging logparser

我使用 Logparser 解析 IIS 日志并在网页上显示信息。在我的开发环境中一切正常,但是一旦我将应用程序发布到服务器,我就会收到以下错误:

Retrieving the COM class factory for component with CLSID {8CFEBA94-3FC2-45CA-B9A5-9EDACF704F66} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {8CFEBA94-3FC2-45CA-B9A5-9EDACF704F66} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

这个错误是什么意思,我该如何解决?

最佳答案

您可能需要授予在服务器 DCOM 下运行它的用户运行它的权限。 DCOM 配置位于组件服务中,您可以看到每个条目的 GUID,因此您应该能够识别相关条目。

然后为其编辑安全权限,并赋予相关用户Launch and Activation权限和Access权限。

关于c# - LogParser 访问被拒绝错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12263235/

相关文章:

c# - 之字形,IndexOutOfRangeException

c# - Enumerable.Average 和 OverflowException

asp.net - Web 应用程序问题(web.config 错误) 使用 IIS7.5 和 ASP.NET v2 的 HTTP 500.19

asp.net - Angular HttpClient 调用缺少查询字符串和授权 header

powershell - 安装 IIS 作为 Octopus Deploy 中的一个步骤

c# - 元组类中的命名比 "Item1"、 "Item2"更好

c# - Visual Studio 2008 html 项目文档

c# - 如何在 ASP.Net 中创建和保存文档和模板?

c# - 使用 caSTLe-windsor 的 MVC4 中 HttpClient 的生活方式

c# - 继承类的无效输出