Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
This is the error i am getting when tried to use following code in my asp.net application
Dim oEmployees As New CMSSol.Employees
oEmployees.LoadByPrimaryKey(1)
Response.Write(oEmployees.LastName)
I have a record in the table for EmployeeId=1
Any Suggestions?????
