472,805 Members | 943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 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 1688
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);
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.