2012-04-25 22 views
2

我正在使用一些interop dll的數據導出到Word文件。早些時候我開發了Windows 2008 Server中的應用程序,那時我可以將數據導出到Word文件。但最近我已將我的電腦升級到Windows 7.它在本地主機上正常工作。具有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中的互操作庫存在問題。我試圖通過.NET應用程序創建一個excel文件。它在本地但在服務器上工作。 此鏈接解釋如何解決問題。 首先,您必須在服務器上安裝M.O.Excel。 在DCOM中配置Microsoft Excel應用程序。

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

它救了我!

相關問題