Click here to Skip to main content
15,939,243 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am running a program in which i am saving the data in an excel file. But while running it i am facing the following error:-

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
Posted
Comments
ZurdoDev 10-Jan-13 8:08am    
Without seeing anything else, I would guess you don't have the Excell dlls, or some other dll, on the server.

1 solution

Hello,
The error code you have:

HRESULT: 0x80070005 (2147942405)
Name: E_ACCESSDENIED
Description: Access is denied
Severity code: Failed
Facility Code: FACILITY_WIN32 (7)
Error Code: 0x0005 (5)

Possible solution:
Initialize COM security.
Helpful links:
CoInitializeSecurity function (COM)[^]
http://stackoverflow.com/questions/5662382/how-does-the-com-coinitializesecurity-work[^]

Regards,
Maxim.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900