错误:无法加载文件或程序集'System.Data.Entity [英] error:Could not load file or assembly 'System.Data.Entity

查看:174
本文介绍了错误:无法加载文件或程序集'System.Data.Entity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


错误:
无法加载文件或程序集``System.Data.Entity,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089''或其依赖项之一.系统找不到指定的文件.

场景:

使用嵌入式firebird ado.net服务提供商来实现数据库连接.
Firebird的dll可以使用FbDataAdapter,FbConnection,FbCommand等类没有问题,但是当尝试使用FbDataReader读取或使用FbDataAdapter填充数据集时,则会出现此错误



更多细节


error:
Could not load file or assembly ''System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'' or one of its dependencies. The system cannot find the file specified.

scenario:

used embedded firebird ado.net service provider for databse conectivity.
no issues with firebird''s dll coz able to use classes such as FbDataAdapter,FbConnection,FbCommand but when tries to read with FbDataReader or fill dataset with FbDataAdapter it gives this error



more detailing

i tried using excel database n it works fine...
i hav downloaded firebird installed then added refrance n copied fbembed.dll in \bin\Debug following some tutorial on this site n then jus used namespace  FirebirdSql.Data.FirebirdClient; so after that i m able to acces FbDataAdapter etc;
this procedure is fine or somthng missin???

推荐答案

您是否已安装Microsoft .Net Framework 3.5 SP1?
Do you have Microsoft .Net Framework 3.5 SP1 installed?


我有非常模糊的解决方案:
选项1
使用.NET Framework 2.0来完成它.
(coz System.Data.Entity.dll将自动复制到ur bin文件夹中)
选项2
如果您要坚持3.5复制
中的System.Data.Entity.dll bin文件夹项目
i got very vague solutions:
option 1
use .NET framework 2.0 n its done.
(coz System.Data.Entity.dll is copied at ur bin folder automatically)
option 2
if u want to stick to 3.5 copy System.Data.Entity.dll in
bin folder project


这篇关于错误:无法加载文件或程序集'System.Data.Entity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆