I am having trouble with a ASP.net application with multiple pages.
If a value (eg a String) is assigned to Session["Test"] on page one and then in page two is used to set a lable.text the Session["Test"] seems to have forgotten what it was holding.
Putting a try catch around it reveals the error message:
"Object not set to a instance of a reference".
The really confusing thing is that this example will work on the same server access via the localhost call on our network but fails everytime when accessed via the internet calling the sample IIS server via our website domain.
Can anyone suggest some reason to why this is happening? Could it be an IIS configuration fault?
Regards in advance...
If a value (eg a String) is assigned to Session["Test"] on page one and then in page two is used to set a lable.text the Session["Test"] seems to have forgotten what it was holding.
Putting a try catch around it reveals the error message:
"Object not set to a instance of a reference".
The really confusing thing is that this example will work on the same server access via the localhost call on our network but fails everytime when accessed via the internet calling the sample IIS server via our website domain.
Can anyone suggest some reason to why this is happening? Could it be an IIS configuration fault?
Regards in advance...