PDFCreator を ASP.NET 2.0 Web サイトで実行できた人はいますか?
Visual Studio Web サーバーを搭載した私の開発マシンでは、次の手順を実行すると問題なく動作します。
- tlbimp で com interop 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 オフィス XP
- PDFクリエーター 0.9.0