Author: wildthing4ever | Posted on: 3/17/2007 6:35:48 AM | Views : 217

Hi all,

Sorry for the huge post, but most of it is just for demonstration. 
When I am debugging an error in my web app, sometimes I get a helpful error like:
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 9: Dim temp As Control
Line 10: temp = Page.FindControl("Hello")
Line 11: temp.ID = "Hello"
Line 12:
Line 13: If Session("IsLoggedIn") Then

Go to the complete details ...