I keep receiving Object reference not set to an instance of an object error when trying to run my functions. This is the second time I used the code but I am calling different functions.
ERROR:
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.
Source Error:
Line 92:
Line 93: If cmpy <> "" Then
Line 94: If functions.GetLoadtblcmpy(cmpy).Read Then
Line 95: Dim dr As SqlDataReader = functions.GetLoadtblcmpy(cmpy)
Line 96: dr.Read()
