Sybase SQL Anywhere 和 Windows CE 的 System.Data 问题
我正在将 vb.net 应用程序从 Oracle Lite 迁移到任何地方的 Sybase SQL。我已经对代码进行了几次更改,但有一个特定的错误让我发疯。所有这些都在 Visual Studio 2005 中。
当我编译代码时,它给出以下错误“引用包含基类“System.Data,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089” .Data.Common.DbCommand' 将其添加到您的项目中”。
我为 WindowsCE 平台添加了 System 和 System.Data,它们在 Oracle Lite 系统下运行良好。我已删除这些文件并将其重新添加到项目中。似乎没有什么可以消除该错误。
有问题的代码很多,一个例子是:
Public con As ULConnection
这里的任何想法都会非常有帮助!
I am moving a vb.net application from Oracle Lite to Sybase SQL anywhere. I have made several code changes but have a specific error that is driving me mad. All of this is in Visual Studio 2005.
When I compile the code it gives me the following error "Reference required to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the base class 'System.Data.Common.DbCommand'. Add one to your project".
I have both System and System.Data added for the WindowsCE platform and these worked fine under the Oracle Lite system. I have removed and re-added these files to the project. Nothing seems to be working to get rid of the error.
The offending code is legion, one example is:
Public con As ULConnection
Any thoughts here would be very helpful!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
b77a5c561934e089
的公钥令牌表示完整的框架,而不是紧凑的框架、程序集。您正在使用的某些内容(可能是您拥有的 SQL Anywhere 版本)是参考桌面 System.Data 程序集构建的,该程序集无法在设备上运行。您需要专门针对 Compact Framework 构建的程序集。A public Key Token of
b77a5c561934e089
indicates a full framework, not compact framework, assembly. Something you're using (likely the version of SQL Anywhere you have) was built referencing the desktop System.Data assembly, which is not going to work on a device. You need assemblies built specifically targeting the Compact Framework.