B
Ben Amada
Hello! There are a couple of visitors (out of dozens) to this web page who
are causing the following error to occur:
"Object reference not set to an instance of an object."
I'm actually catching this error in a Try-Catch block. I've narrowed down
the possible offending code to the 3 lines below:
Request.Browser.Cookies
Request.UserAgent.ToString
Request.UserHostAddress.ToString
Is it possible for any of the 3 lines of code above to generate the error
listed above? For instance, is is possible that "Browser", "UserAgent" or
"UserHostAddress" would not be automatically instantiated in some cases?
Any help or ideas are appreciated!
Ben
are causing the following error to occur:
"Object reference not set to an instance of an object."
I'm actually catching this error in a Try-Catch block. I've narrowed down
the possible offending code to the 3 lines below:
Request.Browser.Cookies
Request.UserAgent.ToString
Request.UserHostAddress.ToString
Is it possible for any of the 3 lines of code above to generate the error
listed above? For instance, is is possible that "Browser", "UserAgent" or
"UserHostAddress" would not be automatically instantiated in some cases?
Any help or ideas are appreciated!
Ben