IIS Error: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied

Last Reply on Jan 21, 2018 11:31 AM By Mudassar

Posted on Jan 20, 2018 01:54 AM

Host on IIS 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)).

this error return when click on Export to excel Button

 

Posted on Jan 20, 2018 01:54 AM
Hi @vishalkal,
Please try the following

Download data from SQL Server as Encrypted Excel file in ASP.Net

It might help you.

Cheers Andrea.

Posted on Jan 21, 2018 11:31 AM

Seems you are using some library (DLL) such as Interop Excel and which is not installed or configured on server.

Thus there's nothing we can do in this issue. You need to contact your hosting company and ask them to install the missing software.