Click here to Skip to main content
15,880,405 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi all,

I have one exception in liver server with excel application and C#

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

I have done the following

1) enabled excel in DCOM
2) did permision for IIS user and administrator for excel DCOM
3)created Desktop folder in syswow64

After all i still have the same issue.

the same code is working on another live server and working well in development system as well.

i am using the following software's

Framework 4
Excel 2007
OS:Windows 2008 R2


please help..
Posted
Updated 22-Oct-14 21:12pm
v2
Comments
George Jonsson 23-Oct-14 3:23am    
0x80070005 = "Access is denied" so you still have some authorization problem.
Richard Deeming 23-Oct-14 8:32am    
Office automation is not supported in ASP.NET applications:
http://support.microsoft.com/kb/257757[^]

1 solution

Provided full permission for everyone user and problem solved...
 
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