Click here to Skip to main content
12,506,283 members (54,962 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
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 10-Jan-13 0:44am
Comments
ryanb31 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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160927.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100