Skip to main content

Posts

Showing posts with the label Exception from HRESULT 0x80070005 E_ACCESSDENIED

Exception from HRESULT: 0x80070005 (E_ACCESSDENIED) - Error : 80070005 Access is denied.

An exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll but was not handled in user code Additional information: 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 Issue Is Occurring – When I tried to download excel file on cloud server! I debugging this code on the cloud server and find out, error is occurring at the time of creation of Microsoft.Office.Interop.Excel.Application object i.e. using Excel = Microsoft.Office.Interop.Excel; Excel.Application excel = new Excel.Application(); This is a COM permissions problem! I used forms authentication! Firstly search Desktop folder in the below path – CREATE Desktop folder, if not exist! For 64-bit (x64) - create this folder: C:\Windows\SysWOW64\config\systemprofile\Desktop For 32-bit (x86) - create this...