G
Guest
I have an ASP.NET/C# solution, where I can perfectly cast something I stored
in the session object to a class of mine (BackEnd), as this:
->be = (BackEnd)Session["BackEnd"];<-
But if I try to do the same:
->this.backend = (BackEnd)System.Web.HttpContext.Current.Session["BackEnd"]<--
in another project of the same solution I got:
public CustomerAccess(BackEnd backend, string culture) {
this.backend = (BackEnd)System.Web.HttpContext.Current.Session["BackEnd"];
....
at runtime. I can access the Session-state perfectly (because of a hint of
Marcelo in this Newsgroup, so I referenced System.Web and everything looked
okay) and cast for example to (string) without any problem.
What could be the problem here ?
in the session object to a class of mine (BackEnd), as this:
->be = (BackEnd)Session["BackEnd"];<-
But if I try to do the same:
->this.backend = (BackEnd)System.Web.HttpContext.Current.Session["BackEnd"]<--
in another project of the same solution I got:
public CustomerAccess(BackEnd backend, string culture) {
this.backend = (BackEnd)System.Web.HttpContext.Current.Session["BackEnd"];
....
at runtime. I can access the Session-state perfectly (because of a hint of
Marcelo in this Newsgroup, so I referenced System.Web and everything looked
okay) and cast for example to (string) without any problem.
What could be the problem here ?