473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

misconfigured framework? IIS problem? or what else?

hello all,

i have a problem ...
like I already discussed in the thread "session empty" I have the following
problem:

I created a completely new web...
i added 2 files:

sessiontest1.aspx:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1"
Trace="true" %>
<script runat="server">
public void Page_Load(Object sender, EventArgs e)
{
Session.Add("testvar", DateTime.Now);
if (Application["timestamp"]==null) Application.Add("timestamp",
DateTime.Now);
}
</script>

sessiontest2.aspx:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1"
Trace="true" %>
<script runat="server">
void Page_Load(object sender, EventArgs e)
{
Response.Write("testvar(session): " + Session["testvar"] + " and
timestamp(appl): "+Application["timestamp"]);
if (Session.IsNewSession) Response.Write("new SESSION");
Response.Write("<br>Session is running out in: " + Session.Timeout);
}
</script>

If I run sessiontest1.aspx there should be placed an applicationvar and an
sessionvar ... both with the current time.
After that I call the sessiontest2.aspx.
You can see that it does nothing else than sending these two variables to
the browseroutput. It simple. ..
but now the problem ...
sometimes all works... i get the output for example:
"testvar(session): 19.05.2005 19:17:52 and timestamp(appl): 19.05.2005
19:17:52
Session is running out in: 20"

but sometimes i get the output:
" testvar(session): and timestamp(appl): new SESSION
Session is running out in: 20 "

only if i reload the page... and then after another reload of the page
(sessiontest2.aspx) i get the first output (the correct one).
it is random what is showed after a new reload ... either the correct
version with the variables available or the versions where the variables are
not available.

If it is the problematic case it is also IsNewSession == true.... but why?
The trace of the page sais me, that both variables are not registered (im
speaking of the problematic-case).

And it's getting even better:
If I call again "sessiontest1.aspx" and i have luck ... and I call again the
sessiontest2.aspx a few times .... I can see that there are now 2 versions
of both variables are existing ...
one time i get:
" testvar(session): 19.05.2005 19:17:52 and timestamp(appl): 19.05.2005
19:17:52
Session is running out in: 20 "
and one time i get:
" testvar(session): 19.05.2005 19:28:31 and timestamp(appl): 19.05.2005
19:28:31
Session is running out in: 20 "

both versions are alternating randomly...

what is this?
why is this?
please help me!!!

thank you
Alex
Nov 19 '05 #1
0 1434

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Federico | last post by:
Dear all, I've an old version of Visual Studio.NET (2002)standard and I have read the guide for developers by Halvorson. In the section on "how to distribute a Visual Basic . NET Application",...
4
by: Frederico Caldeira Knabben | last post by:
Hello, I'm having a problem when trying to use the Directory.CreateDirectory() method. It throws a DirectoryNotFoundException exception. I'll try to illustrate it: Suppose you have the...
1
by: limelight | last post by:
I have discovered a math error in the .NET framework's Log function. It returns incorrect results for varying powers of 2 that depend on whether the program is run from within the IDE or from the...
17
by: Andreas Huber | last post by:
What follows is a discussion of my experience with .NET generics & the ..NET framework (as implemented in the Visual Studio 2005 Beta 1), which leads to questions as to why certain things are the...
2
by: Tomas Vera | last post by:
Hello All, I'm running into a problem that I don't know how to solve (properly, at least). Our web servers are running Win2K and have Framework v1.0.3705 running on them. We have a DLL...
2
by: WebBuilder451 | last post by:
I'm attempting to install the 2.0 framework on a win2k machine and it's taking forever. (1 hour+) I'm currently waiting for the cancel to complete and i will try to restart and hope nothing got...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
34
by: emrahayanoglu | last post by:
Hello Everyone, Now, I'm working on a new web framework. I tried many test on the other programming languages. Then i decided to use python on my web framework project. Now i want to listen...
17
by: HartsVideo | last post by:
Hi, No one seems to know the answers to these questions or they're just not telling. I downloaded and installed .NET Framework 2.0 and along with it came ASP.NET. .NET Framework 2.0 wrecked...
0
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...
0
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
0
BarryA
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.