N
newsgroups.comcast.net
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.NullReferenceException: 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.HttpUnhandledException' was thrown.
System.NullReferenceException: Object reference not set to an instance of an
object.
at mgFunctions.mgSetCookies(String stroID)
at mgDisplay.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object
o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Code snip.
Sub Page_Load(sender As Object, e As EventArgs)
if not Ispostback then
dim stroID as string = "u"
if Request.QueryString.Item("_o") <> string.empty then
stroID = Request.QueryString.Item("_o").tostring()
end if
mgFunctions.mgSetCookies(stroID)
end if
It seems like the application doesn't know what mgFunctions.mgSetCookies 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
website. The errors are only from one particular ip address (The error is
System.NullReferenceException: 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.HttpUnhandledException' was thrown.
System.NullReferenceException: Object reference not set to an instance of an
object.
at mgFunctions.mgSetCookies(String stroID)
at mgDisplay.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object
o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Code snip.
Sub Page_Load(sender As Object, e As EventArgs)
if not Ispostback then
dim stroID as string = "u"
if Request.QueryString.Item("_o") <> string.empty then
stroID = Request.QueryString.Item("_o").tostring()
end if
mgFunctions.mgSetCookies(stroID)
end if
It seems like the application doesn't know what mgFunctions.mgSetCookies 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