Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass'

Venkata Ramana Nori 36 Reputation points
2021-02-04T07:21:21.033+00:00

Hi

I've this C# application which opens excel file and updated another excel file. The application developed in Visual studio 2005 and Office 2016.

I've recently uninstalled Office 2016 and installed Office 365. Since then " Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' " an error is generated (Image attached)

I've searched web but didn't get any idea on how to solve this error???

63887-image.png

63839-image.png

63895-image.png

Developer technologies | C#
{count} votes

7 answers

Sort by: Most helpful
  1. Serj 0 Reputation points
    2024-02-01T20:09:22.7733333+00:00

    It's worked for me. Thank you for your recommend. Please repair your Excel Software. Good lucks.

    0 comments No comments

  2. Anonymous
    2024-07-25T15:20:07.0166667+00:00

    Has anyone else had this problem and the Office repair did not work. We have tried this and it works for a few days maybe weeks and then not anymore.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.