Facing issue in below code
using Microsoft.Office.Interop.Excel;
var excel = new Application(); // this is throwing error
Error:
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a The server process could not be started because the configured identity is incorrect. Check the username and password.
I am trying to read excel present in SharePoint
.
How to resolve above issue