sqlException- Could not evaluate expression

D Disha Gujar 2 years 11 months ago
8 0 0

I have windows device application developed in visual studio 2008. It builds successfully but getting error at connection.Open();
connection is object of System.Data.SqlClient.SqlConnection. Provided valid connectionString.
 
Here is a stack trace :
at 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()
   at System.Data.SqlClient.TdsParser.Connect(String host, SqlInternalConnection connHandler, Int32 timeout)
   at System.Data.SqlClient.SqlInternalConnection.OpenAndLogin()
   at System.Data.SqlClient.SqlInternalConnection..ctor(SqlConnection connection, Hashtable connectionOptions)
   at System.Data.SqlClient.SqlConnection.Open()
   at CamTestApp.UserLogin.btnLogin_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam)
   at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
   at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
   at System.Windows.Forms.Application.Run(Form fm)
   at CamTestApp.Program.Main()
 
 
 
Throwing error for both deployment options -
Windows Mobile 6.5.3 Professional Device
Windows Mobile 6.5.3 Professional Emulator
 
 
Can anybody please help?

CONTACT
Can’t find what you’re looking for?