ASP.NET 应用程序导出到 Excel(或在本例中不导出)

发布于 2024-09-28 23:04:58 字数 462 浏览 0 评论 0原文

现有的 .net 2 应用程序迁移到 .net 4 并移至 IIS7 Windows 2008 R2 服务器。

我们曾经能够在网页上运行一些代码来将一些东西导出到excel。

现在,当我们这样做时......我们收到以下错误:

计算机默认权限设置不会为 CLSID 为 {00024500-0000-0000-C000-000000000046} 和 APPID
的 COM 服务器应用程序授予本地激活权限 用户 d"omain\username" SID (S-1-5-21-2084383492-816144152-925700815-4150) 从地址 LocalHost 不可用(使用 LRPC)。可以使用组件服务管理工具修改此安全权限。

有什么想法吗?

我确实想知道这是否可能与经过身份验证的用户位于与网络服务器不同的域有关 - 我们在哪里看到此错误?

Exising .net 2 app migrated to .net 4 and moved to an IIS7 Windows 2008 R2 server.

We used to be able to run some code on the web page to export some stuff to excel.

Now, when we do... we get the following error:

The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {00024500-0000-0000-C000-000000000046} and APPID
Unavailable to the user d"omain\username" SID (S-1-5-21-2084383492-816144152-925700815-4150) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.

Any thoughts?

I did wonder if it may be to do with the authenticated user being on a different domain to the webserver - where we see this error??

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

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

发布评论

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

评论(2

把回忆走一遍 2024-10-05 23:04:58

尝试按照此解决方案进行操作:

Microsoft 支持

我相信错误的基本原理是相同的。您尝试运行 DCOm 组件的用户没有启动该组件的权限。

Try following this resolution:

Microsoft Support

I believe that the basics of the error are the same. The user you are trying to run the DCOm component as does not have permission to start it.

情绪 2024-10-05 23:04:58

重新启动网络服务器,这个错误不再出现...当我尝试保存工作簿时,我收到另一个错误...我将就此发布另一个问题。

感谢您的帮助

Restarted the web server and this error no longer appears... I get another error when I try and do the workbook save... I'll post another question on that.

Thanks for your help

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文