asp.net core 文件存在 使用NPIO报错误 解决办法

asp.net core 文件存在 还是报错误 FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. 系统找不到指定的文件。

 using (FileStream fileStream = new FileStream(filePath_, FileMode.Open, FileAccess.Read))
            {
                IWorkbook workbook = file_exts == ".xls" ? new HSSFWorkbook(fileStream) : new XSSFWorkbook(fileStream);

System.TypeInitializationException:“The type initializer for 'NPOI.POIFS.Storage.HeaderBlock' threw an exception.”

问题导致是少安装了:System.Data.OleDb

请使用NuGet 安装上System.Data.OleDb

你可能感兴趣的:(asp.net,后端)