动态程序集中不支持调用的成员。
excelApp = new Microsoft.Office.Interop.Excel.Application(); excelDatei = excelApp.Workbooks.Open(file); //This line causes the error excelBlattSchaechte = excelDatei.Sheets["sheetname"];
尝试创建一个新项目作为.NETFramework。