Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting following error while download excel file after deploying on server.


Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

I hope, need to give permission for Excel.application in following Control panel -> Administrative Tools -> Component Services -> My Computer -> DCOM Config -> Excel.Application.

There I don't have Excel.Application option. I need to add that. How can I add ?
Posted

1 solution

First you need to install excel i.e need to install Microsoft Office.

Then go to DCOM config and there you will find an application named "Microsoft Excel Application". Right Click - > Properties -> Give Persmissions
 
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