Seems like error related to excel library. I have never seen this. Maybe try to install Microsoft.Office.Interop.Excel nuget