S
shapper
Hello,
I have a function inside a compiled class which code is as follows:
Public Function Send() As Boolean
' [Some code]
Try
' [Some code]
Return True
Catch ex As Exception
' [Some code]
Return False
End Try
End Function
In my aspx.vb code I have:
Dim obj As New MyNamespace.MyClass
If obj.Send Then
Else
End If
I am getting an error on code line "If obj.Send Then":
System.NullReferenceException: Object reference not set to an instance
of an object.
I have no idea what is going on. Shouldn't my class function return
true or false?
Thanks,
Miguel
I have a function inside a compiled class which code is as follows:
Public Function Send() As Boolean
' [Some code]
Try
' [Some code]
Return True
Catch ex As Exception
' [Some code]
Return False
End Try
End Function
In my aspx.vb code I have:
Dim obj As New MyNamespace.MyClass
If obj.Send Then
Else
End If
I am getting an error on code line "If obj.Send Then":
System.NullReferenceException: Object reference not set to an instance
of an object.
I have no idea what is going on. Shouldn't my class function return
true or false?
Thanks,
Miguel