web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Exception while accessing Excel File using Microsoft.Office.Interop.Excel in Console App

(0) ShareShare
ReportReport
Posted on by 11
Hello,
 
I am trying to read data from an Excel file in my Console Application using Microsoft.Office.Interop.Excel (V15.0.4795.1000).
 
Earlier it was working fine when the job was running on Windows 2016 Server. But while running it on Windows 2019 Server it is throwing an exception.
 
The Microsoft Excel Application is installed in Server (2019).
 
My Code to access the file : 
 
Excel.Application xlApp = new Excel.Application();
Excel.Workbook xlWorkbook = xlApp.Workbooks.Open(fileInfo.FullName); //This line is throwing an exception
 
Exception :
 
/the server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))/.
 
 
Is this because of any server compatibility issues or NuGet version issue or anything else, I'm not sure
 
Thanks in Advance for your help.
 
Regards, 
Prince
I have the same question (0)
  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at
    As this question isn't about Microsoft Dynamics, you should rather use a different forum (maybe this one).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans