why isn't Microsoft.office.interop.excel DLL working once deployed on server ?

  • Thread starter Thread starter osamaalhasan
  • Start date Start date
O

osamaalhasan

Guest
I worked on a function that will export a datatable to Excel XLSX , once i deployed it to a server it stopped working, I tried fixing a few bits here and there and now it's logging this error

Exception :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)). at Globals.Export(DataTable DataT, String FileName, Boolean WithNumbering) <br />Inner Exception :N/A <br />Source :App_Code <br />Data :System.Collections.ListDictionaryInternal <br />StackTrace : at Globals.Export(DataTable DataT, String FileName, Boolean WithNumbering)


What's the solution to this ?

Thanks.

Continue reading...
 
Back
Top