SQLce 4.0 来自企业库 5.0 ASP.NET 4.0
我有一个 MVC3 项目,其中我必须使用企业库 5.0 从 SQLCE 数据库中选择/更新数据。为此,我必须添加对 SQLCE dll 的引用。
如果我引用 SQLCE 4.0 中的 dll,则会收到错误
Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
所以我只能猜测企业库 5.0 专门寻找 sqlce 3.5 dll。
但是,如果我在项目中引用 3.5 dll,我会从 ASP.NET 收到错误,指出 ASP.NET 与 SQLCE 不兼容。
我确实在互联网上搜索过,但还找不到解决方案。
有人可以给我一些信息吗
谢谢
I have an MVC3 project in which I have to select/update data from SQLCE database using enterprise library 5.0. For this I have to add reference to SQLCE dll.
If I reference the dll from SQLCE 4.0 , I get the error
Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
So I can only guess that enterprise library 5.0 is specifically looking for sqlce 3.5 dll.
However if I reference the 3.5 dll in the project I get the error from ASP.NET that ASP.NET is not compatible with SQLCE .
I did search the internet but I cant find a solution yet.
can somebody give me some info please
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须重新编译 Entrprise Library 源,将其指向 4.0 ADO.NET Provider。
You must recompile the Entrprise Library source, pointing it the the 4.0 ADO.NET Provider.