Read Excel file using in IIS hosted application

-1

I have an Asp .net MVC application and I am using Microsoft.Office.Interop.Excel to read an Excel file.

It is working fine when run from Visual Studio but when hosted on a Local IIS instance the following error is thrown:

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

c#
excel
asked on Stack Overflow Jun 26, 2019 by ihsan rai • edited Jun 26, 2019 by Rup

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0