2012-04-25 2 views
2

일부 interops dll을 사용하여 Word 파일로 데이터를 내보내고 있습니다. 이전에 Windows 2008 Server에서 응용 프로그램을 개발했는데 그 당시에는 데이터를 Word 파일로 내보낼 수있었습니다. 하지만 최근에 내 PC를 Windows 7로 업그레이드했습니다. 내 로컬 호스트에서 올바르게 작동합니다.CLSID가있는 구성 요소의 클래스 팩토리와 관련된 문제 {00024500-0000-0000-C000-000000000046}

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.

또는 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.

또는 When creating word object error : Access is denied: 80070005 내가 IIS에서 응용 프로그램을 배포 할 때

이 오류가 무엇입니까 :

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을 설치해야합니다. DCOM에서 Microsoft Excel 응용 프로그램을 구성합니다.

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

그것은 저를 저장!