E
Elliot M. Rodriguez
..NET Framework 1.1
Has anyone reported or experienced NullReferenceException 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 NullReferenceException errors on the following line
(assigning a Hyperlink control's NavigateURL property to the HTTP_REFERER
value):
lnk.NavigateUrl = Request.ServerVariables("HTTP_REFERER").ToString();
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:window.history.back(-1)") to work around this.
Can anyone else contribute their experiences?
Has anyone reported or experienced NullReferenceException 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 NullReferenceException errors on the following line
(assigning a Hyperlink control's NavigateURL property to the HTTP_REFERER
value):
lnk.NavigateUrl = Request.ServerVariables("HTTP_REFERER").ToString();
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:window.history.back(-1)") to work around this.
Can anyone else contribute their experiences?