Quantcast
Channel: Excel Data Reader - Read Excel files in .NET
Viewing all 448 articles
Browse latest View live

New Post: Try to compile v2.1 (82323) or v2.01 (27264) failed

$
0
0
Thank you very much.
I succeeded to compile


___________________________

Pascal Gineste
GFI Informatique
04 76 61 30 29



De : Ian1971 <[email removed]>
Envoyé : jeudi 31 octobre 2013 11:03
À : Gineste Pascal
Objet : Re: Try to compile v2.1 (82323) or v2.01 (27264) failed [ExcelDataReader:464093]

From: Ian1971

You don't need 2.0 to compile.

I quite happily use 4.0

New Post: Neither stream 'Workbook' nor 'Book' was found in file

New Post: I have multiple sheets in an Excel file how to read it into a dataset

$
0
0
Hi

I have multiple sheets in an Excel file how to read it into a dataset. I tried using excel data reader but could not Please give me solution

New Post: I have multiple sheets in an Excel file how to read it into a dataset

Created Unassigned: ArgumentOutOfRange creating binary reader [12440]

$
0
0
Getting an ArgumentOutOfRangeException as soon as I try the CreateBinaryReader method:

```
private void CPImport2003(Account account, HttpPostedFile file, ResponseArg response)
{
using (IExcelDataReader dr = ExcelReaderFactory.CreateBinaryReader(file.InputStream))
{
DataSet ds = dr.AsDataSet();
}
}
```

Here's the stack trace from VS 2010

```
at System.Web.HttpInputStream.Seek(Int64 offset, SeekOrigin origin)
at Excel.Core.BinaryFormat.XlsFat..ctor(XlsHeader hdr, List`1 sectors, Int32 sizeOfSector, Boolean isMini, XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsFat.cs:line 52
at Excel.Core.BinaryFormat.XlsHeader.GetMiniFAT(XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsHeader.cs:line 177
at Excel.Core.BinaryFormat.XlsStream..ctor(XlsHeader hdr, UInt32 startSector, Boolean isMini, XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsStream.cs:line 26
at Excel.Core.BinaryFormat.XlsRootDirectory..ctor(XlsHeader hdr) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsRootDirectory.cs:line 21
at Excel.ExcelBinaryReader.readWorkBookGlobals() in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelBinaryReader.cs:line 154
at Excel.ExcelBinaryReader.Initialize(Stream fileStream) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelBinaryReader.cs:line 872
at Excel.ExcelReaderFactory.CreateBinaryReader(Stream fileStream) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelReaderFactory.cs:line 22
at Kpa.Web.Helpers.FileUploadHandler.CPImport2003(Account account, HttpPostedFile file, ResponseArg response) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 441
at Kpa.Web.Helpers.FileUploadHandler.HandleCPImport(String parentId, HttpPostedFile file, ResponseArg response) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 341
at Kpa.Web.Helpers.FileUploadHandler.ProcessRequest(HttpContext context) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 98
```

And the simple test spreadsheet I'm trying to read in.

Note that I've got an HttpPostedFile to build the InputStream from. Also note that this version was created by saving as Excel97-2003 Workbook from a newer version of Excel.

I'd just downloaded the Excel Data Reader dll from CodePlex, so it shouldn't be an out-of-date problem.

Commented Unassigned: ArgumentOutOfRange creating binary reader [12440]

$
0
0
Getting an ArgumentOutOfRangeException as soon as I try the CreateBinaryReader method:

```
private void CPImport2003(Account account, HttpPostedFile file, ResponseArg response)
{
using (IExcelDataReader dr = ExcelReaderFactory.CreateBinaryReader(file.InputStream))
{
DataSet ds = dr.AsDataSet();
}
}
```

Here's the stack trace from VS 2010

```
at System.Web.HttpInputStream.Seek(Int64 offset, SeekOrigin origin)
at Excel.Core.BinaryFormat.XlsFat..ctor(XlsHeader hdr, List`1 sectors, Int32 sizeOfSector, Boolean isMini, XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsFat.cs:line 52
at Excel.Core.BinaryFormat.XlsHeader.GetMiniFAT(XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsHeader.cs:line 177
at Excel.Core.BinaryFormat.XlsStream..ctor(XlsHeader hdr, UInt32 startSector, Boolean isMini, XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsStream.cs:line 26
at Excel.Core.BinaryFormat.XlsRootDirectory..ctor(XlsHeader hdr) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsRootDirectory.cs:line 21
at Excel.ExcelBinaryReader.readWorkBookGlobals() in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelBinaryReader.cs:line 154
at Excel.ExcelBinaryReader.Initialize(Stream fileStream) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelBinaryReader.cs:line 872
at Excel.ExcelReaderFactory.CreateBinaryReader(Stream fileStream) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelReaderFactory.cs:line 22
at Kpa.Web.Helpers.FileUploadHandler.CPImport2003(Account account, HttpPostedFile file, ResponseArg response) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 441
at Kpa.Web.Helpers.FileUploadHandler.HandleCPImport(String parentId, HttpPostedFile file, ResponseArg response) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 341
at Kpa.Web.Helpers.FileUploadHandler.ProcessRequest(HttpContext context) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 98
```

And the simple test spreadsheet I'm trying to read in.

Note that I've got an HttpPostedFile to build the InputStream from. Also note that this version was created by saving as Excel97-2003 Workbook from a newer version of Excel.

I'd just downloaded the Excel Data Reader dll from CodePlex, so it shouldn't be an out-of-date problem.
Comments: ** Comment from web user: speterson **

BTW, I backed up to v 2.0.1 and get past the CreateBinaryReader problem. This works both with the MemoryStream or if I use my HttpPostedFile's InputStream directly.

So, a little mess-up in v 2.1 I guess?

Anyway, I think this will be enough to allow me to press on trying to use the DataReader.

Commented Unassigned: ArgumentOutOfRange creating binary reader [12440]

$
0
0
Getting an ArgumentOutOfRangeException as soon as I try the CreateBinaryReader method:

```
private void CPImport2003(Account account, HttpPostedFile file, ResponseArg response)
{
using (IExcelDataReader dr = ExcelReaderFactory.CreateBinaryReader(file.InputStream))
{
DataSet ds = dr.AsDataSet();
}
}
```

Here's the stack trace from VS 2010

```
at System.Web.HttpInputStream.Seek(Int64 offset, SeekOrigin origin)
at Excel.Core.BinaryFormat.XlsFat..ctor(XlsHeader hdr, List`1 sectors, Int32 sizeOfSector, Boolean isMini, XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsFat.cs:line 52
at Excel.Core.BinaryFormat.XlsHeader.GetMiniFAT(XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsHeader.cs:line 177
at Excel.Core.BinaryFormat.XlsStream..ctor(XlsHeader hdr, UInt32 startSector, Boolean isMini, XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsStream.cs:line 26
at Excel.Core.BinaryFormat.XlsRootDirectory..ctor(XlsHeader hdr) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsRootDirectory.cs:line 21
at Excel.ExcelBinaryReader.readWorkBookGlobals() in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelBinaryReader.cs:line 154
at Excel.ExcelBinaryReader.Initialize(Stream fileStream) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelBinaryReader.cs:line 872
at Excel.ExcelReaderFactory.CreateBinaryReader(Stream fileStream) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelReaderFactory.cs:line 22
at Kpa.Web.Helpers.FileUploadHandler.CPImport2003(Account account, HttpPostedFile file, ResponseArg response) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 441
at Kpa.Web.Helpers.FileUploadHandler.HandleCPImport(String parentId, HttpPostedFile file, ResponseArg response) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 341
at Kpa.Web.Helpers.FileUploadHandler.ProcessRequest(HttpContext context) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 98
```

And the simple test spreadsheet I'm trying to read in.

Note that I've got an HttpPostedFile to build the InputStream from. Also note that this version was created by saving as Excel97-2003 Workbook from a newer version of Excel.

I'd just downloaded the Excel Data Reader dll from CodePlex, so it shouldn't be an out-of-date problem.
Comments: ** Comment from web user: Ian1971 **

Yes, 2.1 added support for more variants of xls (following the spec), but some of these require being able to jump around in the file. This should be revisited to see if it can retain support and not break non-seekable streams

Commented Unassigned: ArgumentOutOfRange creating binary reader [12440]

$
0
0
Getting an ArgumentOutOfRangeException as soon as I try the CreateBinaryReader method:

```
private void CPImport2003(Account account, HttpPostedFile file, ResponseArg response)
{
using (IExcelDataReader dr = ExcelReaderFactory.CreateBinaryReader(file.InputStream))
{
DataSet ds = dr.AsDataSet();
}
}
```

Here's the stack trace from VS 2010

```
at System.Web.HttpInputStream.Seek(Int64 offset, SeekOrigin origin)
at Excel.Core.BinaryFormat.XlsFat..ctor(XlsHeader hdr, List`1 sectors, Int32 sizeOfSector, Boolean isMini, XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsFat.cs:line 52
at Excel.Core.BinaryFormat.XlsHeader.GetMiniFAT(XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsHeader.cs:line 177
at Excel.Core.BinaryFormat.XlsStream..ctor(XlsHeader hdr, UInt32 startSector, Boolean isMini, XlsRootDirectory rootDir) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsStream.cs:line 26
at Excel.Core.BinaryFormat.XlsRootDirectory..ctor(XlsHeader hdr) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\Core\BinaryFormat\XlsRootDirectory.cs:line 21
at Excel.ExcelBinaryReader.readWorkBookGlobals() in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelBinaryReader.cs:line 154
at Excel.ExcelBinaryReader.Initialize(Stream fileStream) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelBinaryReader.cs:line 872
at Excel.ExcelReaderFactory.CreateBinaryReader(Stream fileStream) in c:\development\eapidemo\third-party\ExcelDataReader\ExcelDataReader\Excel\ExcelReaderFactory.cs:line 22
at Kpa.Web.Helpers.FileUploadHandler.CPImport2003(Account account, HttpPostedFile file, ResponseArg response) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 441
at Kpa.Web.Helpers.FileUploadHandler.HandleCPImport(String parentId, HttpPostedFile file, ResponseArg response) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 341
at Kpa.Web.Helpers.FileUploadHandler.ProcessRequest(HttpContext context) in C:\dev\MKO\KpaWeb\Kpa.Web\Helpers\FileUploadHandler.cs:line 98
```

And the simple test spreadsheet I'm trying to read in.

Note that I've got an HttpPostedFile to build the InputStream from. Also note that this version was created by saving as Excel97-2003 Workbook from a newer version of Excel.

I'd just downloaded the Excel Data Reader dll from CodePlex, so it shouldn't be an out-of-date problem.
Comments: ** Comment from web user: readysell_adam **

Hi,

I believe I have the same issue. When I try to run the following with the attached XLS file:

```
using (var fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read))
{
IExcelDataReader excelReader = null;
if (importExportDefinition.ImportExportFormat == ImportExportFormat.XLSX)
{
excelReader = ExcelReaderFactory.CreateOpenXmlReader(fileStream);
}
else if (importExportDefinition.ImportExportFormat == ImportExportFormat.XLS)
{
excelReader = ExcelReaderFactory.CreateBinaryReader(fileStream);
}
```

I get this error:

```
System.ArgumentOutOfRangeException occurred
HResult=-2146233086
Message=Non-negative number required.
Parameter name: count
Source=mscorlib
ParamName=count
StackTrace:
at System.Text.EncodingNLS.GetString(Byte[] bytes, Int32 index, Int32 count)
at Excel.Core.BinaryFormat.XlsBiffSST.ReadStrings()
at Excel.ExcelBinaryReader.readWorkBookGlobals()
at Excel.ExcelBinaryReader.Initialize(Stream fileStream)
at Excel.ExcelReaderFactory.CreateBinaryReader(Stream fileStream)
at Readysell.Module.BusinessLogic.ImportExport.ImportExportHelper.ImportFile(UnitOfWork unitOfWork, ImportExportDefinition importExportDefinition, String fileName) in c:\Users\Adam\Documents\Visual Studio 2013\Projects\Readysell.beta\Readysell.Module\BusinessLogic\ImportExport\ImportExportHelper.cs:line 249
InnerException:
```


New Post: DateTime parsing error - the OADate is wrong

$
0
0
The date that is parsed by excel data reader is a few years off.

When parsing '9/8/2013' exceldatareader is giving me 40056
When it should actually be 41525


void Main()
{
var dt = DateTime.Parse("9/8/2013");
Double d = dt.ToOADate();
Console.WriteLine(d);   
Console.WriteLine(DateTime.FromOADate(d));

// output from exceldata reader
Console.WriteLine(DateTime.FromOADate(40056));
}


Output

41525
9/8/2013 12:00:00 AM
8/31/2009 12:00:00 AM

Created Unassigned: Example of excel file returning no datasets [12455]

$
0
0
FileStream stream = File.Open(excelFilePath, FileMode.Open, FileAccess.Read);
excelReader = Excel.ExcelReaderFactory.CreateOpenXmlReader(stream);
DataSet result = excelReader.AsDataSet();

result is null for the attached file.

Created Unassigned: DateTime parsing error - the OADate is wrong [12456]

$
0
0
The date that is parsed by excel data reader is a few years off.

When parsing '9/8/2013' exceldatareader is giving me 40056
When it should actually be 41525


Using the attached xls file, dates are converted wrongly.

void Main()
{
var dt = DateTime.Parse("9/8/2013");
Double d = dt.ToOADate();
Console.WriteLine(d);
Console.WriteLine(DateTime.FromOADate(d));

// output from exceldata reader
Console.WriteLine(DateTime.FromOADate(40056));
}


Output

41525
9/8/2013 12:00:00 AM
8/31/2009 12:00:00 AM

Commented Unassigned: DateTime parsing error - the OADate is wrong [12456]

$
0
0
The date that is parsed by excel data reader is a few years off.

When parsing '9/8/2013' exceldatareader is giving me 40056
When it should actually be 41525


Using the attached xls file, dates are converted wrongly.

void Main()
{
var dt = DateTime.Parse("9/8/2013");
Double d = dt.ToOADate();
Console.WriteLine(d);
Console.WriteLine(DateTime.FromOADate(d));

// output from exceldata reader
Console.WriteLine(DateTime.FromOADate(40056));
}


Output

41525
9/8/2013 12:00:00 AM
8/31/2009 12:00:00 AM
Comments: ** Comment from web user: sholle **

I'm not sure it's quite that simple. I don't think Excel dates have the same base as most everyone else. You might want to take a look at this:

http://www.cpearson.com/excel/datetime.htm

Commented Unassigned: DateTime parsing error - the OADate is wrong [12456]

$
0
0
The date that is parsed by excel data reader is a few years off.

When parsing '9/8/2013' exceldatareader is giving me 40056
When it should actually be 41525


Using the attached xls file, dates are converted wrongly.

void Main()
{
var dt = DateTime.Parse("9/8/2013");
Double d = dt.ToOADate();
Console.WriteLine(d);
Console.WriteLine(DateTime.FromOADate(d));

// output from exceldata reader
Console.WriteLine(DateTime.FromOADate(40056));
}


Output

41525
9/8/2013 12:00:00 AM
8/31/2009 12:00:00 AM
Comments: ** Comment from web user: Moxplod **

Wow .. thanks for that, i was wondering what is going wrong here. So is there any way to detect in data reader whether we should use the 1904 date mode or the 1900 date mode to recalculate the date?

As if we just use the default way we are always going to have a 4 year difference with these files.

Commented Unassigned: DateTime parsing error - the OADate is wrong [12456]

$
0
0
The date that is parsed by excel data reader is a few years off.

When parsing '9/8/2013' exceldatareader is giving me 40056
When it should actually be 41525


Using the attached xls file, dates are converted wrongly.

void Main()
{
var dt = DateTime.Parse("9/8/2013");
Double d = dt.ToOADate();
Console.WriteLine(d);
Console.WriteLine(DateTime.FromOADate(d));

// output from exceldata reader
Console.WriteLine(DateTime.FromOADate(40056));
}


Output

41525
9/8/2013 12:00:00 AM
8/31/2009 12:00:00 AM
Comments: ** Comment from web user: sholle **

I don't have to do anything with the dates. I get date strings out of the following snippet:

using (FileStream streamIn = File.Open(_PathFilename, FileMode.Open, FileAccess.Read))
using (IExcelDataReader execlReader = (Path.GetExtension(_PathFilename) == ".xlsx" ? ExcelReaderFactory.CreateOpenXmlReader(streamIn): ExcelReaderFactory.CreateBinaryReader(streamIn)))
{
DataSet ds = new DataSet();
ds = execlReader.AsDataSet();
foreach (DataTable sheet in ds.Tables)
{
foreach (DataRow Row in sheet.Rows)
{
var x = Row.ItemArray
.
.
.

New Post: Can't support other language

$
0
0
as subject,if content in excel use international language, such as Chinese, your excel data reader can't read

Created Unassigned: Usage problem under mono [12459]

$
0
0
The code is simple.

App.cs
```
using System;

class App
{
static void Main()
{
#if DebugConfig
Console.WriteLine("WE ARE IN THE DEBUG CONFIGURATION");
#endif

Console.WriteLine("Hello, world!");

IExcelDataReader excelReader = ExcelReaderFactory.CreateOpenXmlReader("~/Desktop/Sample.xlsx");
}
}

```

CEC.csproj
```
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets = "Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<appname>cec</appname>
<outputpath>bin/</outputpath>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
<Compile Include = "App.cs"/>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="ExcelDataReader/src/Excel/Excel.csproj">
<Project>{4CB0690E-3E7A-497C-9116-D52024F63195}</Project>
<Name>Excel</Name>
</ProjectReference>
</ItemGroup>

<Import Project="$(MSBuildToolsPath)/Microsoft.CSharp.targets" />

</Project>
```

Output (full output in attachment):
xbuild CEC.csproj
```
Target CoreCompile:
Tool /usr/bin/gmcs execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/ App.cs /define:"DEBUG;TRACE" /reference:/home/den/work/contactor/ceos1/ExcelDataReader/src/Excel/bin/Debug//Excel.dll /reference:/usr/lib/mono/2.0/mscorlib.dll /reference:/usr/lib/mono/2.0/System.dll /reference:/usr/lib/mono/2.0/System.Data.dll /reference:/usr/lib/mono/2.0/System.Xml.dll /reference:/home/den/work/contactor/ceos1/ExcelDataReader/src/Excel/bin/Debug/ICSharpCode.SharpZipLib.dll /warn:4
Unhandled Exception: System.ArgumentException: assemblyName cannot have zero length.
at System.Reflection.AssemblyName..ctor (System.String assemblyName) [0x00000] in <filename unknown>:0
at Mono.CSharp.AssemblyDefinition.CreateAssemblyName () [0x00000] in <filename unknown>:0
at Mono.CSharp.AssemblyDefinitionDynamic.Create (System.AppDomain domain, AssemblyBuilderAccess access) [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: assemblyName cannot have zero length.
at System.Reflection.AssemblyName..ctor (System.String assemblyName) [0x00000] in <filename unknown>:0
at Mono.CSharp.AssemblyDefinition.CreateAssemblyName () [0x00000] in <filename unknown>:0
at Mono.CSharp.AssemblyDefinitionDynamic.Create (System.AppDomain domain, AssemblyBuilderAccess access) [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
/usr/lib/mono/4.0/Microsoft.CSharp.targets: error : Compiler crashed with code: 1.
Task "Csc" execution -- FAILED
```

Commented Unassigned: Example of excel file returning no datasets - OpenXmlReader [12455]

$
0
0
FileStream stream = File.Open(excelFilePath, FileMode.Open, FileAccess.Read);
excelReader = Excel.ExcelReaderFactory.CreateOpenXmlReader(stream);
DataSet result = excelReader.AsDataSet();

result is null for the attached file.
Comments: ** Comment from web user: Moxplod **

Any developers taken a look at this?
This is a completely legit excel file that is not being read properly. I have about 5% of excel files in my product throwing this error. It will be great if this bug can be fixed!

Created Unassigned: Could not load file or assembly 'Excel, Version=2.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. [12493]

$
0
0
I have recently downloaded the latest dll's of Excel Data Reader and published in the server. When I try to read the data I am getting the below exception. Please get me out of this error asap

____Could not load file or assembly 'Excel, Version=2.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. ____

Created Unassigned: ERROR - Extra data contains Zip64 information but version 2.0 is not high enough [12505]

$
0
0
While reading attached excel file, we get an exception
ERROR - Extra data contains Zip64 information but version 2.0 is not high enough

New Post: Error assembly file name System.Data, version 2.0.0.0

$
0
0
Hello all, I'm currently trying to develop a source code to read an excel file in Windows Mobile 6.5 using VB.NET 2005 (Framework 2.0 Net.). I have add reference files like system.data, excel.dll from CodePlex. By the time we debug the errors are like this: File or Assembly name MissingMethodException 'System.Data, version 2.0.0.0 .... or one of its dependencies was not found'. please help your explain. Thanks.
Viewing all 448 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>