I get the following error while creating an excel file
System.UnauthorizedAccessException: Retrieving the COM factory class for components with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). in QA.CreateExcel.createDoc () in e: \ ~~ CreateExcel.cs: line 33
I am using this code.
private Office.Excel.Application app =new Office.Excel.Application();
m using fw 4.0 and its web application
vakas source
share