Question

How to Save Excel File extracting data from a database view

Hello Team,

I configured a business process that is hitting a service for saving an excel file at a particular location in the system & the data is extracted from a database view. Also, the process & service got compiled & published successfully but running the business process is throwing some errors which are as follows.

 

System.UnauthorizedAccessException: 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)).

 

Kindly help me out in this regard.

 

Thanks & Regards

Like 0

Like

1 comments

Hello Poorva,

 

Please make sure that the IIS worker process user has all the access rights to all the folders of the binary files of the application. Also please review these topics to check needed access permissions: https://www.vbforums.com/showthread.php?657928-failed-due-to-the-follow… and https://forums.codeguru.com/showthread.php?515494-RESOLVED-failed-due-t…

 

Best regards,

Oscar

Show all comments