I have developed an application with asp.net 2.0 and SQL Server 2005. It is working fine on my local PC without any error and exceptions.
When i moved the application to server, i m getting the following runtime exception.
User needs to login initially to enter application. Once they submit login the following exception occur.
System.NullReferenceException: Object reference not set to an instance of an object.
Here is my error code:
Dim dbdata As dataconnection = New dataconnection
Line 54: Dim dr As SqlDataReader = dbdata.finduser(user_id, user_password)
Line 55: If dr.HasRows Then ' error here
Line 56: Return True
Line 57: Else
Please help me ASAP . No such exception, when i run on local PC.
View Complete Post