首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PDFCreator和ASP.NET

PDFCreator和ASP.NET
EN

Stack Overflow用户
提问于 2008-10-21 08:13:15
回答 2查看 3.7K关注 0票数 2

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

在我使用的开发机器上,在遵循以下过程之后,它就可以正常工作了:

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

但是,当我将它部署到我们的测试服务器时,它在这个错误中失败了:

代码语言:javascript
复制
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
EN

回答 2

Stack Overflow用户

发布于 2008-11-28 19:10:32

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

你有两个选择:

1-使用Craig提供的文章设置系统帐户的打印机

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

票数 3
EN

Stack Overflow用户

发布于 2008-11-11 15:00:59

下面的文章描述了这个问题和解决方案:

从ASP调用COM对象时无法打印

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/221126

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档