By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,824 Members | 1,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,824 IT Pros & Developers. It's quick & easy.

Troubleshooting Object Reference Not Set to Instance of an Object

P: n/a
I am logging errors in my web application in a database for troubleshooting (and emailing them to myself) and I am getting this error I cannot understand

I have a click event that is generating an "Object reference not set to instance of an object". Now, I have seen this error a lot and usually I am forgetting to create a new instance or something... but the puzzling thing in this case -- is that I have tested this click event several times and I do not see this error. I am guessing it has something to do with the users browser or session settings or something. But I cannot determine what. One thing that is odd... is that in the server variables there is an odd line shown under the user-agent that I do not understand.

From the 'ALL_HTTP' Server variable --
HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1
HTTP_~~~~~~~:~~~~:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HTTP_~~~~~~~~~~~~~~~:~~~~~ ~~~~~~

Server Variable: 'HTTP_USER_AGENT' has the value: 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Server Variable: 'HTTP_~~~~~~~' has the value: '~~~~:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Server Variable: 'HTTP_~~~~~~~~~~~~~~~' has the value: '~~~~~ ~~~~~~~

Whenever I see those squigglies that is when I seem to get errors on the click event. Any ideas as to what it means? I have tested the site with my own IE6 browser and I am not getting the error. Any ideas what to check

Thanks
Lori
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Lori,

It looks like someone is adding non-standard headers to the post.

It may be an effort to create a buffer overrun, or it may be just foreign
characters that means something in that language.

You might want to check your IIS logs to see if you can correlate the source
IP and trace it back.
"Lori McDonald" <lo**@nospam.nospam> wrote in message
news:2B**********************************@microsof t.com...
I am logging errors in my web application in a database for troubleshooting
(and emailing them to myself) and I am getting this error I cannot
understand.

I have a click event that is generating an "Object reference not set to
instance of an object". Now, I have seen this error a lot and usually I
am forgetting to create a new instance or something... but the puzzling
thing in this case -- is that I have tested this click event several times
and I do not see this error. I am guessing it has something to do with
the users browser or session settings or something. But I cannot
determine what. One thing that is odd... is that in the server variables
there is an odd line shown under the user-agent that I do not understand.

From the 'ALL_HTTP' Server variable -->
HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HTTP_~~~~~~~:~~~~:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HTTP_~~~~~~~~~~~~~~~:~~~~~ ~~~~~~~

Server Variable: 'HTTP_USER_AGENT' has the value: 'Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1)'
Server Variable: 'HTTP_~~~~~~~' has the value:
'~~~~:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
Server Variable: 'HTTP_~~~~~~~~~~~~~~~' has the value: '~~~~~ ~~~~~~~'

Whenever I see those squigglies that is when I seem to get errors on the
click event. Any ideas as to what it means? I have tested the site with
my own IE6 browser and I am not getting the error. Any ideas what to
check?

Thanks,
Lori


Nov 18 '05 #2

P: n/a
I just got the same error..... this time with some different server variable

Server Variable: 'HTTP_USER_AGENT' has the value: 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Server Variable: 'HTTP_WEFERER' has the value: 'IVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFG GMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVW

I have no idea what HTTP_WEFERER is

Would someone adding non-standard headers effect the view state at all

I will try and trace the IP back.
Nov 18 '05 #3

P: n/a
One of your users has Norton Personal Firewall and it is munging the HTTP
headers.
"Lori McDonald" <lo**@nospam.nospam> wrote in message
news:2B**********************************@microsof t.com...
I am logging errors in my web application in a database for troubleshooting (and emailing them to myself) and I am getting this error I
cannot understand.
I have a click event that is generating an "Object reference not set to instance of an object". Now, I have seen this error a lot and usually I am
forgetting to create a new instance or something... but the puzzling thing
in this case -- is that I have tested this click event several times and I
do not see this error. I am guessing it has something to do with the users
browser or session settings or something. But I cannot determine what. One
thing that is odd... is that in the server variables there is an odd line
shown under the user-agent that I do not understand.
From the 'ALL_HTTP' Server variable -->
HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HTTP_~~~~~~~:~~~~:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~ HTTP_~~~~~~~~~~~~~~~:~~~~~ ~~~~~~~

Server Variable: 'HTTP_USER_AGENT' has the value: 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)' Server Variable: 'HTTP_~~~~~~~' has the value: '~~~~:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
~~' Server Variable: 'HTTP_~~~~~~~~~~~~~~~' has the value: '~~~~~ ~~~~~~~'

Whenever I see those squigglies that is when I seem to get errors on the click event. Any ideas as to what it means? I have tested the site with my
own IE6 browser and I am not getting the error. Any ideas what to check?
Thanks,
Lori

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.