有没有人能让PDFCreator在ASP.NET 2.0网站上运行?
在我使用的开发机器上,在遵循以下过程之后,它就可以正常工作了:
但是,当我将它部署到我们的测试服务器时,它在这个错误中失败了:
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中找不到这个组件。
我们的服务器配置:
发布于 2008-11-28 19:10:32
问题是IIS (以及ASP.Net进程)作为系统帐户运行,wich没有设置任何打印机。
你有两个选择:
1-使用Craig提供的文章设置系统帐户的打印机
2-模拟ASP.Net站点使用已设置打印机的帐户。
发布于 2008-11-11 15:00:59
下面的文章描述了这个问题和解决方案:
从ASP调用COM对象时无法打印
https://stackoverflow.com/questions/221126
复制相似问题