Ms sql与windows ce设备问题 [英] Ms sql with windows ce device problem

查看:54
本文介绍了Ms sql与windows ce设备问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,我在为Windows移动设备编写应用程序时遇到了问题。所以用户界面和数据库都已到位,问题是当我按下一个按钮时,它会检索一些数据并填充数据网格,这个错误发生了这个错误



Hey guys, I encountered a problem while programing an app for windows mobile devices. So UI and database are all in place, the problem is when I press a button wich shuld retrive some data and fill a data grid this error occures

System.Data.SqlClient.SqlConnection.OnError(SqlException exception, TdsParserState state)
  at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, TdsParserState state)
  at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()\r\n
  at System.Data.SqlClient.TdsParser.Connect(String host, SqlInternalConnection connHandler, Int32 timeout)\r\n
  at System.Data.SqlClient.SqlInternalConnection.OpenAndLogin()\r\n
  at System.Data.SqlClient.SqlInternalConnection..ctor(SqlConnection connection, Hashtable connectionOptions)\r\n
  at System.Data.SqlClient.SqlConnection.Open()\r\n
  at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)\r\n
  at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)\r\n
  at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)\r\n
  at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)\r\n
  at RfidKnjiznicaTestSD.KnjiznicaDSTableAdapters.CustomerTableAdapter.GetData()\r\n   at RfidKnjiznicaTestSD.ObrazecZacetni.btnSkenirajStranka_Click(Object sender, EventArgs e)\r\n   at System.Windows.Forms.Control.OnClick(EventArgs e)\r\n
  at System.Windows.Forms.Button.OnClick(EventArgs e)\r\n
  at System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam)\r\n
  at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)\r\n
  at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)\r\n
  at System.Windows.Forms.Application.Run(Form fm)\r\n
  at RfidKnjiznicaTestSD.Program.Main()\r\n"   string





好吧让我澄清一点......我设置sql所以它接受tcp / ip连接,我把正确的连接字符串与所有必需的参数,我的模拟设备(谁是Windows Mobile 5.0掌上电脑)是cradeled到comp,但我仍然无法让这个该死的东西工作并在模拟器上显示数据。



如果我在win form项目中运行相同的东西evrything工作很好,所以存储过程会返回正确的数据。



感谢您的回答!



Ok let me clarify this a little bit... I set up sql so it accepts tcp/ip connections, I put the correct connection string with all the required parameters, my emulated device (wich is windows mobile 5.0 pocket pc) is cradeled to the comp, but I still cant get this damn thing to work and display the data on the emulator.

If I run the same thing in a win forms project evrything works fine, so the stored procedures return the correct data.

Thank you for your answer!

推荐答案

你好



我有完全相同的问题





我是在我的WIN 7笔记本电脑上工作,我可以从cshar访问数据库在笔记本电脑上运行的应用程序



但是如果我从同一台笔记本电脑的Debug中的WinCE设备运行一个应用程序,我会收到错误



但几个月前工作正常



其中一个不同之处在于,在此期间我安装了VS 2013笔记本电脑所以VS 2013与VS 2008共存可能在某处存在冲突
Hello

I have exactly the same problem


I'm working from my WIN 7 Laptop, I can acces the database from a csharp application running on the laptop

However if I run an application from a WinCE device in Debug from the same laptop I get the error

But it was working fine a few month ago

One of the difference is that in the Meantime I've installed VS 2013 on the Laptop so VS 2013 is co-existing with VS 2008 maybe there is a conflict somewhere


这篇关于Ms sql与windows ce设备问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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