配置在带有 IIS7 的 Windows Server 2008 中运行互操作服务的权限

发布于 2024-11-16 22:32:20 字数 259 浏览 1 评论 0原文

我在 ASP.NET 3.5 中开发了一个代码,它使用互操作服务使用 Visual Studio 2008 在 Excel 中生成报告。该代码在本地 PC 和 Windows XP 系统中运行得很好。但是当部署在 Windows Server 2008 中时,它开始出现与权限相关的问题。

由于以下错误,检索 CLSID {00024500-0000-0000-C000-000000000046} 的组件的 com 类工厂失败:80070005

对上述内容有什么想法吗?

I have developed a code in ASP.NET 3.5 which uses interop services to generate reports in excel using visual studio 2008. The same is running very well in the local PC and the system having Windows XP. But when deployed in Windows Server 2008 it starts giving permission related issue.

Retrieving the com class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005

Any Idea on the above?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

橘亓 2024-11-23 22:32:20

您需要更新您的 Web.Config。

 <identity impersonate="true" userName="DomainName\administrator" password="password"/>
        <authentication mode="Windows"> </authentication>

You need to update your Web.Config.

 <identity impersonate="true" userName="DomainName\administrator" password="password"/>
        <authentication mode="Windows"> </authentication>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文