codeice / linqtoexcel

Automatically exported from code.google.com/p/linqtoexcel
0 stars 0 forks source link

LinqToExcel 1.10.1 #109

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Reference LinqToExcel 1.10 in my console application (fwk 4.5)
2. Build console application
3. Launch Application

What is the expected output? 

class Program
    {
        static void Main(string[] args)
        {
            var _fileNameWithPath = @"D:\DataSet.xlsx";
            var workSheetName = @"workSheetName";
            using (var excel = new ExcelQueryFactory(_fileNameWithPath))
            {
                var rows = from c in excel.Worksheet(workSheetName)
                           select c;

                var test = rows.ToList();
            }
        }
    }

What do you see instead?
When i launch my project, i have directly this exception

System.BadImageFormatException

Could not load file or assembly 'LinqToExcel, Version = 1.10.1.0, Culture = 
neutral, PublicKeyToken = 9c8ea65a58f03f1f' or one of its dependencies. Trying 
to load a program with an incorrect format.

What version of the product are you using? 
LinqToExcel 1.10.1

On what operating system?
Windows 7 professional

Please provide any additional information below.
I used LinqToExcel 1.8 and everything is well on the same environment

Original issue reported on code.google.com by phoang.p...@gmail.com on 21 Aug 2014 at 5:05

GoogleCodeExporter commented 8 years ago
It doesn't work with AnyCPU, only with x86

Original comment by roman....@gmail.com on 20 Nov 2014 at 9:08