Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.85.5.452, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies. The system cannot find the file specified.`
Stack:
[FileNotFoundException: Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.85.5.452, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies. The system cannot find the file specified.]
Excel.Core.ZipWorker.Extract(Stream fileStream) +0
Excel.ExcelOpenXmlReader.Initialize(Stream fileStream) +78
[Asp.Net MVC3 C#]
Utilizzando il pacchetto NuGet ExcelDataReader Ho cercato semplicemente di aprire un file .xlsx salvato sul filesystem. Qui è il codice utilizzato:
string filePath = HttpContext.Server.MapPath("~/blank3.xlsx");
FileStream stream = System.IO.File.Open(filePath, FileMode.Open, FileAccess.Read);
IExcelDataReader excelReader = ExcelReaderFactory.CreateOpenXmlReader(stream);
Ecco il sito per il pacchetto NuGet: http://exceldatareader.codeplex.com/
Che cosa dà? Questo dovrebbe funzionare senza intoppi.
Puoi essere un po 'più esplicito con il tuo processo, per favore? –