Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error : 800700c1 in instantiating an object for Microsoft.Office.Interop.Excel.Application

I am getting the below error when instantiating the Microsoft.Office.Interop.Excel.Application() for generating Excel from the winforms app.

This was working before and suddently it stopped working eventhough there was no change in code and in version of excel. Only change I could see is there were some windows 10 updates getting installed in past weeks but I am not sure whether that was the cause for the problem

retrieving the com class factory for component with clsid {00024500-0000-0000-c000-000000000046} failed due to the following error : 800700c1.

I could see many solutions for access denied (error: 80070005 Access is denied) for the same type of operation, but none for error : 800700c1.

I am running the application in 32 bit and I have re-installed the office 2016 (32-bit) suite but still I am getting the error.

Any help in direction of solving would help.

like image 395
Vignesh AJ Avatar asked Sep 06 '25 08:09

Vignesh AJ


1 Answers

Deleting the file "C:\Program" fixed the issue. No idea how the file was created and why deleting it solve the excel generation problem.

like image 198
Vignesh AJ Avatar answered Sep 08 '25 22:09

Vignesh AJ