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

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,270 questions
{count} votes

6 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