mkhuwaja / linqtoexcel

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

Unable to load file or assembly #82

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have installed LinqToExcel version 1.7.0 via Nuget. I am getting this error 
while trying to load the class which uses LinqToExcel:

Could not load file or assembly 'LinqToExcel, Version=1.7.0.0

Original issue reported on code.google.com by sherif...@gmail.com on 26 Feb 2013 at 12:48

GoogleCodeExporter commented 8 years ago
I am using VS2010 with .net framework 4

Original comment by sherif...@gmail.com on 26 Feb 2013 at 12:51

GoogleCodeExporter commented 8 years ago
platform: x86

Original comment by sherif...@gmail.com on 26 Feb 2013 at 12:58

GoogleCodeExporter commented 8 years ago
can I also work with xls files (prior to 2007) using this library?

Original comment by sherif...@gmail.com on 26 Feb 2013 at 3:02

GoogleCodeExporter commented 8 years ago
That error is pretty generic, so I can't help you out much. It could be one of 
many different things. Are you using the full .net 4 framework or just the 
client framework. (you'll need to use the full framework)

And yes, it will work with xls files too.

Original comment by paulyo...@gmail.com on 27 Feb 2013 at 4:15

GoogleCodeExporter commented 8 years ago
I am using the full .net framework 4

Original comment by sherif...@gmail.com on 27 Feb 2013 at 10:30

GoogleCodeExporter commented 8 years ago
Can you download the dll and reference it instead of using the NuGet package. 
That will help me know if it's the NuGet package or something with your project.

Here's the link to download the dll: 
https://code.google.com/p/linqtoexcel/downloads/detail?name=LinqToExcel_1.7.0.zi
p&can=2&q=

Original comment by paulyo...@gmail.com on 1 Apr 2013 at 5:08

GoogleCodeExporter commented 8 years ago
I get this error too and I have the same setup. Here is the stack trace:

[OleDbException (0x80004005): Unspecified error]
   System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +351
   System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +31
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +76
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +126
   System.Data.OleDb.OleDbConnection.Open() +43
   LinqToExcel.Query.ExcelUtilities.GetWorksheetNames(ExcelQueryArgs args) +107
   LinqToExcel.Query.ExcelUtilities.GetWorksheetNames(String fileName) +42
   LinqToExcel.ExcelQueryFactory.GetWorksheetNames() +48

Original comment by igi.msny...@gmail.com on 6 May 2013 at 8:30

GoogleCodeExporter commented 8 years ago
Also, I can use these dlls with no problem in LinqPad. 

Original comment by igi.msny...@gmail.com on 6 May 2013 at 8:33

GoogleCodeExporter commented 8 years ago
Is this issue fixed. still I am getting this issue.

Original comment by sakth...@gmail.com on 3 Feb 2014 at 7:47