473,386 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Troubleshooting Object Reference Not Set to Instance of an Object

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
3 1726
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: Daniel | last post by:
Hello =) I have an object which contains a method that should execute every x ms. I can use setInterval inside the object construct like this - self.setInterval('ObjectName.methodName()',...
6
by: Martin | last post by:
I'd like to be able to get the name of an object instance from within a call to a method of that same object. Is this at all possible? The example below works by passing in the name of the object...
1
by: Robert A Riedel | last post by:
I am completely baffled when the following managed exception is thrown: "Object reference not set to an instance of an object" from a nested subroutine when referencing a variable allocated on the...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
3
by: Lori McDonald | last post by:
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...
3
by: Adam | last post by:
We have a web site that uses .vb for the web pages and .cs for a class module. We are getting the error in .NET 2.0 and VS 2005 beta 2. It does work with .NET 1.1. When trying to access a page...
12
by: Andrew Poulos | last post by:
With the following code I can't understand why this.num keeps incrementing each time I create a new instance of Foo. For each instance I'm expecting this.num to alert as 1 but keeps incrementing. ...
6
by: Shailen Sukul | last post by:
Observed a weird behaviour with object references. See code listing below: using System; using System.Collections.Generic; using System.Text; namespace PointerExceptionTest { /*
2
by: Ralph | last post by:
Hi I don't understand why it's not working: function schedule(imTop){ this.tdImagesTop = imTop; } schedule.prototype.selectEl = function() { alert(this.tdImagesTop);
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.