G
George Durzi
I'm encountering an odd problem with one of my users accessing my web
application.
The first line in the Page_Load function of this webform is:
string sReferer = Request.ServerVariables["HTTP_REFERER"].ToString()
When the user accesses this page, the code immediately breaks at this line,
giving him the standard:
Object reference not set to an instance of an object.
I logged in as him locally and verified in my trace that I could see the
server variable. Also, it's not possible for him in the application to get
to that page before logging in, so there should always be a value for the
referer.
So anyway, I commented out that line, and it all works fine for him.
Is there anything that could prevent a user from "seeing" the Server
Variables collection? Could it be a security setting on their PC?
The user is running:
Windows XP SP2
Privacy Settings set to Medium
Active Scripting enabled
Thanks!
application.
The first line in the Page_Load function of this webform is:
string sReferer = Request.ServerVariables["HTTP_REFERER"].ToString()
When the user accesses this page, the code immediately breaks at this line,
giving him the standard:
Object reference not set to an instance of an object.
I logged in as him locally and verified in my trace that I could see the
server variable. Also, it's not possible for him in the application to get
to that page before logging in, so there should always be a value for the
referer.
So anyway, I commented out that line, and it all works fine for him.
Is there anything that could prevent a user from "seeing" the Server
Variables collection? Could it be a security setting on their PC?
The user is running:
Windows XP SP2
Privacy Settings set to Medium
Active Scripting enabled
Thanks!