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
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!