2012-04-25 28 views
2

一部のinterops dllを使用してデータをWordファイルにエクスポートしています。以前はWindows 2008 Serverでアプリケーションを開発しましたが、その時点でデータをWordファイルにエクスポートできました。しかし最近私はWindows 7に自分のPCをアップグレードしました。それは私のlocalhostで正常に動作しています。CLSID {00024500-0000-0000-C000-000000000046}のコンポーネントのクラスファクトリに関する問題

私はIISでアプリケーションをデプロイするとき、私はこのエラーを取得しています:

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.

答えて

0

ASP.NET and Access Error 80070005を見てみましょう:

a. I first opened DCOMCNFG from the command prompt, opened Component Services, expanded Computers/My Computer/DCOM Config. Then I Selected Microsoft Excel Application, and in the resulting dialog selected Security tab. Under Security Tab I changed Launch and Activation Permissions to customize, Access Permissions to customize and configuration Permissions to customize. And in the all the three I selected the ASPNET account. b. I then Select the NEW Folder in Windows Explorer, opened the properties and under WebSharing tab I selected Share This Folder.

OR Error : 80070005

The .DLL in the bin folder is just a COM interop assembly. The actual COM component must also be installed on the Web Server, so you should check that.

OR When creating word object error : Access is denied: 80070005

You can gain access to the Office components only throught manually created account, that has access to the office binary files. For example your own account.

2

Windows Server 2003でinterop libに問題がありました。.NETアプリケーションを使用してExcelファイルを作成しようとしていました。それはローカルではなくサーバーで働いていました。 このリンクは、問題の解決方法を説明しています。 まず、サーバーにM.O.Excelをインストールする必要があります。 Microsoft ExcelアプリケーションをDCOMで設定します。

http://blog.crowe.co.nz/archive/2006/03/02/589.aspx

それは私を救いました!

関連する問題