..NET Framework 1.1
Has anyone reported or experienced NullReferenceEx ception errors when
accessing the HTTP_REFERER value on clients that are behind web blocking
software?
At least one of our customers uses the WatchDog WebBlocker product. Our web
app would throw NullReferenceEx ception errors on the following line
(assigning a Hyperlink control's NavigateURL property to the HTTP_REFERER
value):
lnk.NavigateUrl = Request.ServerV ariables("HTTP_ REFERER").ToStr ing();
And return the error message:
"Object reference not set to an instance of an object"
Which leads me to wonder if the blocking software is also blocking
ServerVariables in the entire HTTP request .
I ended up having to use a Javascript line
("javascript:wi ndow.history.ba ck(-1)") to work around this.
Can anyone else contribute their experiences?
--
Elliot M. Rodriguez, MCSD
My .Net thoughts, comments, observations:
Has anyone reported or experienced NullReferenceEx ception errors when
accessing the HTTP_REFERER value on clients that are behind web blocking
software?
At least one of our customers uses the WatchDog WebBlocker product. Our web
app would throw NullReferenceEx ception errors on the following line
(assigning a Hyperlink control's NavigateURL property to the HTTP_REFERER
value):
lnk.NavigateUrl = Request.ServerV ariables("HTTP_ REFERER").ToStr ing();
And return the error message:
"Object reference not set to an instance of an object"
Which leads me to wonder if the blocking software is also blocking
ServerVariables in the entire HTTP request .
I ended up having to use a Javascript line
("javascript:wi ndow.history.ba ck(-1)") to work around this.
Can anyone else contribute their experiences?
--
Elliot M. Rodriguez, MCSD
My .Net thoughts, comments, observations:
Comment