473,715 Members | 6,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Odd error from one ip address only

I am having an odd problem. Every day I get application errors from my
website. The errors are only from one particular ip address (The error is
System.NullRefe renceException: Object reference not set to an instance of an
object....) The logs show that the request appear to be coming from some
kind of spider or bot. They have no url referrer and are the order of the
pages requested could not be "clicked" in the order requested. They all fail
at the same point. Here is the error message and a snip of the code.

Exception of type 'System.Web.Htt pUnhandledExcep tion' was thrown.
System.NullRefe renceException: Object reference not set to an instance of an
object.
at mgFunctions.mgS etCookies(Strin g stroID)
at mgDisplay.Page_ Load(Object sender, EventArgs e)
at System.Web.Util .CalliHelper.Ev entArgFunctionC aller(IntPtr fp, Object
o, Object t, EventArgs e)
at System.Web.Util .CalliEventHand lerDelegateProx y.Callback(Obje ct sender,
EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)

Code snip.

Sub Page_Load(sende r As Object, e As EventArgs)
if not Ispostback then
dim stroID as string = "u"
if Request.QuerySt ring.Item("_o") <> string.empty then
stroID = Request.QuerySt ring.Item("_o") .tostring()
end if
mgFunctions.mgS etCookies(stroI D)

end if
It seems like the application doesn't know what mgFunctions.mgS etCookies is
for this particular user only. Could this user be doing something malicious?

I am getting 30 or 40 errors a day just from this one user, but no other.
Any thoughts?

Mike
Apr 5 '06 #1
7 1249
I suspect it is malicious, but automated. Probably some script kiddies
running and automated exploit scanner or some malware infected server doing a
similar thing. Look at the server logs for any publicly available web server
and you get this sort of thing all the time.

"newsgroups.com cast.net" wrote:
I am having an odd problem. Every day I get application errors from my
website. The errors are only from one particular ip address (The error is
System.NullRefe renceException: Object reference not set to an instance of an
object....) The logs show that the request appear to be coming from some
kind of spider or bot. They have no url referrer and are the order of the
pages requested could not be "clicked" in the order requested. They all fail
at the same point. Here is the error message and a snip of the code.

Exception of type 'System.Web.Htt pUnhandledExcep tion' was thrown.
System.NullRefe renceException: Object reference not set to an instance of an
object.
at mgFunctions.mgS etCookies(Strin g stroID)
at mgDisplay.Page_ Load(Object sender, EventArgs e)
at System.Web.Util .CalliHelper.Ev entArgFunctionC aller(IntPtr fp, Object
o, Object t, EventArgs e)
at System.Web.Util .CalliEventHand lerDelegateProx y.Callback(Obje ct sender,
EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)

Code snip.

Sub Page_Load(sende r As Object, e As EventArgs)
if not Ispostback then
dim stroID as string = "u"
if Request.QuerySt ring.Item("_o") <> string.empty then
stroID = Request.QuerySt ring.Item("_o") .tostring()
end if
mgFunctions.mgS etCookies(stroI D)

end if
It seems like the application doesn't know what mgFunctions.mgS etCookies is
for this particular user only. Could this user be doing something malicious?

I am getting 30 or 40 errors a day just from this one user, but no other.
Any thoughts?

Mike

Apr 5 '06 #2
I would advice to ignore that

Those robots do some weird things, submit form with bad parameters (or no
parameters) .....

If you are tired of the error just ban it.

George.
"newsgroups.com cast.net" <Mi************ ****@noZorY.geZ waYrrenY.com> wrote
in message news:0q******** *************** *******@comcast .com...
I am having an odd problem. Every day I get application errors from my
website. The errors are only from one particular ip address (The error is
System.NullRefe renceException: Object reference not set to an instance of
an
object....) The logs show that the request appear to be coming from some
kind of spider or bot. They have no url referrer and are the order of the
pages requested could not be "clicked" in the order requested. They all
fail
at the same point. Here is the error message and a snip of the code.

Exception of type 'System.Web.Htt pUnhandledExcep tion' was thrown.
System.NullRefe renceException: Object reference not set to an instance of
an
object.
at mgFunctions.mgS etCookies(Strin g stroID)
at mgDisplay.Page_ Load(Object sender, EventArgs e)
at System.Web.Util .CalliHelper.Ev entArgFunctionC aller(IntPtr fp, Object
o, Object t, EventArgs e)
at System.Web.Util .CalliEventHand lerDelegateProx y.Callback(Obje ct
sender,
EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)

Code snip.

Sub Page_Load(sende r As Object, e As EventArgs)
if not Ispostback then
dim stroID as string = "u"
if Request.QuerySt ring.Item("_o") <> string.empty then
stroID = Request.QuerySt ring.Item("_o") .tostring()
end if
mgFunctions.mgS etCookies(stroI D)

end if
It seems like the application doesn't know what mgFunctions.mgS etCookies
is
for this particular user only. Could this user be doing something
malicious?

I am getting 30 or 40 errors a day just from this one user, but no other.
Any thoughts?

Mike

Apr 5 '06 #3
Don't forget that most spiders do not accept cookies.
Have you tried connecting to your site using a browser that doesn't
support cookies?
Perhaps mgFunctions.mgS etCookies() should check the value of
Request.Browser .Cookies before trying to get/set them

Apr 6 '06 #4

"Jason Hales" <ja*********@ya hoo.com> wrote in message
news:11******** *************@v 46g2000cwv.goog legroups.com...
Don't forget that most spiders do not accept cookies.
Have you tried connecting to your site using a browser that doesn't
support cookies?
Perhaps mgFunctions.mgS etCookies() should check the value of
Request.Browser .Cookies before trying to get/set them

I have tried that with no problem. The function does check for the existence
of the cookie. Also, many users browse with no cookies and I don't get any
errors. I suspect the bot is doing something is shouldn't be. It is coming
from
aplacecalledAbo venet_Communica tions_Inc.

Mike
Apr 6 '06 #5
That's stumped me. It might help to post up some code for
mgFunctions.mgS etCookies

Jason

Apr 7 '06 #6
I also am having the same problem and the problem am having is in this line
"Request.QueryS tring.Item("_o" ) <> string.empty "

that if the Request.QuerySt ring.Item("_o") = null then this exception appears. That means that if the previous page is not submitting anthing in the query string then the error is generated.
Apr 21 '06 #7
I also am having the same problem and the problem am having is in this line
"Request.QueryS tring.Item("_o" ) <> string.empty "

that if the Request.QuerySt ring.Item("_o") = null then this exception appears. That means that if the previous page is not submitting anthing in the query string then the error is generated.
Apr 21 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
8458
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order by VisitDt" I'm getting this error message: Errno is 2465. Err.description is "Can't find field '|' referred to in your expression"
8
21910
by: Grant Richard | last post by:
Using the TcpListener and TcpClient I created a program that just sends and receives a short string - over and over again. The program is fine until it gets to around 1500 to 1800 messages. At that time, I get a SocketException with the message "Only one usage of each socket address (protocol/network address/port) is normally permitted". This happen if you use localhost or between two distinct computers. And, for a period of time after the...
0
3545
by: iKiLL | last post by:
Hi All Code Below for this problem ERROR: "An existing connection was forcibly closed by the remote host"
10
6975
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
0
8823
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9343
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9198
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9104
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9047
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
3175
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2541
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2119
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.