Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.ApplicationClass();
The error is as follows:
Error CS1752 Cannot embed interop type 'ApplicationClass'. Please use the applicable interface instead.
Modify the following error to solve:
Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application();