【问题标题】:PDFCreator and ASP.NETPDFCreator 和 ASP.NET
【发布时间】:2010-09-18 06:42:30
【问题描述】:

有没有人设法让 PDFCreator 在 ASP.NET 2.0 网站上运行?

在我的带有 Visual Studio 网络服务器的开发机器上,按照以下步骤运行就可以了:

  • 使用 tlbimp 创建一个 com 互操作 dll
  • 引用这个 dll
  • 编写一些代码来使用它

但是,当我将它部署到我们的测试服务器时,它却因以下错误而惨遭失败:

Retrieving the COM class factory for component with CLSID {082391C9-8188-4364-B4FD-66A1524B2097} failed due to the following error: 80070005.
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 {082391C9-8188-4364-B4FD-66A1524B2097} failed due to the following error: 80070005. 

我在 DCOMCNFG.msc 中找不到这个组件。

我们的服务器配置:

  • Windows 2003
  • Asp.net 2.0
  • MS Office XP
  • PDFCreator 0.9.0

【问题讨论】:

    标签: asp.net pdf-generation


    【解决方案1】:

    问题是 IIS 进程(以及 ASP.Net 进程)作为 SYSTEM 帐户运行,它没有设置任何打印机。

    你有两个选择:

    1 - 使用 Craig Lebakken 提供的 article 为系统帐户设置打印机

    2 - 模拟 ASP.Net 站点以使用已设置打印机的帐户

    【讨论】:

      【解决方案2】:

      以下 Microsoft 知识库文章描述了该问题和解决方案:

      COM objects fail to print when called from ASP

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-04-01
        • 2012-02-07
        • 1970-01-01
        • 2020-02-12
        • 2020-06-11
        • 1970-01-01
        相关资源
        最近更新 更多