Hello,
I've got two classes: EventLog and ErrorLog. I need to access Session
state from these classes, but they are not associated with ASPX pages.
So I've been accessing the Session object through
HttpContext.Current.Session["someVar"].
This was working fine for several months. Suddenly, ErrorLog stopped
being able to "see" the Session object. I made no changes, so I'm
frankly quite stumped. They both import the same namespaces, yet when
ErrorLog is executing and I set a watch on
"HttpContext.Current.Session", it shows as "<undefined value>".
Any ideas? Thanks.
Regards,
Jeff Shantz 3 1198
post some relevant code which reproduces the problem
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here... http://tinyurl.com/3he3b
"Jeff Shantz" <je********@msn.com> wrote in message
news:c8**************************@posting.google.c om... Hello,
I've got two classes: EventLog and ErrorLog. I need to access Session state from these classes, but they are not associated with ASPX pages. So I've been accessing the Session object through HttpContext.Current.Session["someVar"].
This was working fine for several months. Suddenly, ErrorLog stopped being able to "see" the Session object. I made no changes, so I'm frankly quite stumped. They both import the same namespaces, yet when ErrorLog is executing and I set a watch on "HttpContext.Current.Session", it shows as "<undefined value>".
Any ideas? Thanks.
Regards, Jeff Shantz
Is your Eventlog and Errorlog objects are running in the process of ASP.NET.
If it is running in different process then you cant access the context
across processes.
--
Saravana
Microsoft MVP - ASP.NET www.extremeexperts.com
"Jeff Shantz" <je********@msn.com> wrote in message
news:c8**************************@posting.google.c om... Hello,
I've got two classes: EventLog and ErrorLog. I need to access Session state from these classes, but they are not associated with ASPX pages. So I've been accessing the Session object through HttpContext.Current.Session["someVar"].
This was working fine for several months. Suddenly, ErrorLog stopped being able to "see" the Session object. I made no changes, so I'm frankly quite stumped. They both import the same namespaces, yet when ErrorLog is executing and I set a watch on "HttpContext.Current.Session", it shows as "<undefined value>".
Any ideas? Thanks.
Regards, Jeff Shantz
Are the classes somehow accessed out from web context?
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Jeff Shantz" <je********@msn.com> wrote in message
news:c8**************************@posting.google.c om... Hello,
I've got two classes: EventLog and ErrorLog. I need to access Session state from these classes, but they are not associated with ASPX pages. So I've been accessing the Session object through HttpContext.Current.Session["someVar"].
This was working fine for several months. Suddenly, ErrorLog stopped being able to "see" the Session object. I made no changes, so I'm frankly quite stumped. They both import the same namespaces, yet when ErrorLog is executing and I set a watch on "HttpContext.Current.Session", it shows as "<undefined value>".
Any ideas? Thanks.
Regards, Jeff Shantz This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Phil Grimpo |
last post by:
I had previously explained this problem in a different thread, but now that
I have an IISState log, I figured I'd re-start the thred. My situation and
the log are following...
I have a very odd...
|
by: ZMan |
last post by:
Scenario:
This is about debugging server side scripts that make calls to
middle-tier business DLLs. The server side scripts are legacy ASP 3.0
pages, and the DLLs are managed DLLs...
|
by: John Mullin |
last post by:
We are having a problem which appears similar to a previous posting:
http://groups.google.com/groups?hl=en&lr=&frame=right&th=d97f552e10f8c94c&seekm=OZw33z9EDHA.2312%40TK2MSFTNGP10.phx.gbl#link1
...
|
by: Peter R. Vermilye |
last post by:
I am involved on a web application that is using a third party set of
APIs for remote database access (middleware). I've been brought in
because of my background in programming, thus I'm new to...
|
by: RDizzle |
last post by:
okay. so all i am doing is changing a registration script that uses
$_GET to a script that uses $_POST, but the validation script now
returns NULL values for all posted vars.
What's the deal?
...
|
by: mcbobin |
last post by:
Hi,
Hopefully somebody can help me...
The development team I work in has created a large application that has
started displaying some nasty bugs which we think are being caused by
the session...
|
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= |
last post by:
Hi everybody,
I've got two questions about using the EnableSession property with an
ASP.NET WebService:
First Question:
I'm trying to create a web service with EnableSession=true.
I can't...
|
by: Tomasz |
last post by:
Hello Developers!
I have an interesting problem using my custom MembershipProvider,
RoleProvider and Forms Authentication.
Both MembershipProvider and RoleProvider require session state, where...
|
by: =?Utf-8?B?Um9iSEs=?= |
last post by:
I have two websites setup on an IIS Server. In the web.config files i have
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data...
|
by: Claudio M. E. Bastos Iorio |
last post by:
Hi, anyone using VS2008 (final) on windows Vista?
I have a problem. The ASP.NET web site administration tool on any site
created by VS2008, running on Vista, is not working as it should. I
can...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |