Hi
I am having the problem in a Web Application. In the mean time I created a windows app and used the following code.
XConnection()
Dim arParams(1) As SqlParameter
arParams(0) = New SqlParameter("@SESSIONID", TextBox1.Text)
arParams(1) = New SqlParameter("@CLIENTID", CLng(TextBox2.Text))
SqlHelper.ExecuteNonQuery(XConnection, CommandType.StoredProcedure, "SP_RECORD_LOGIN", arParams)
XConnection.Close()
This works prefectly. In my web app which references the same object I use the same code and get the error
Error converting data type bigint to int.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Error converting data type bigint to int.
Source Error:
Line 284:
Line 285: ' Finally, execute the command
Line 286: retval = cmd.ExecuteNonQuery()
Line 287:
Line 288: ' Detach the SqlParameters from the command object, so they can be used again
It must be something in the web app but the line reporting the error is in Microsoft.ApplicationBlocks.Data sqlhelper
Will battle on ......
I am having the problem in a Web Application. In the mean time I created a windows app and used the following code.
XConnection()
Dim arParams(1) As SqlParameter
arParams(0) = New SqlParameter("@SESSIONID", TextBox1.Text)
arParams(1) = New SqlParameter("@CLIENTID", CLng(TextBox2.Text))
SqlHelper.ExecuteNonQuery(XConnection, CommandType.StoredProcedure, "SP_RECORD_LOGIN", arParams)
XConnection.Close()
This works prefectly. In my web app which references the same object I use the same code and get the error
Error converting data type bigint to int.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Error converting data type bigint to int.
Source Error:
Line 284:
Line 285: ' Finally, execute the command
Line 286: retval = cmd.ExecuteNonQuery()
Line 287:
Line 288: ' Detach the SqlParameters from the command object, so they can be used again
It must be something in the web app but the line reporting the error is in Microsoft.ApplicationBlocks.Data sqlhelper
Will battle on ......