473,796 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weird session lost and auto web.config

Hi All,

I am recently experiencing a weird problem.
I don't know what exactly is the cause of the problem but here is my
scenario and symptoms.

First of all here is my architecture
1. I have a main framework (DNN) build in VB.NET which I try to prevent
changing things there (simply not changing it)
2. I have a virtual directory under this which I develop in C#.
3. Main app in IIS is http://localhost/DNN
4. My app running in this framework where I develop is located at
http://localhost/DNN/DesktopModules/MyApp
5. When compilations happen all required DLL's go under the main app bin
folder as expected.
Until 1 month ago everything was working fine (I don't know when the problem
started)

Problem statement
1. When I build a referenced library project, it adds a new web.config under
my app which is not required at all and I don't know why this started.
2. When I build myapp it also adds this web.config (I just have to delete it
each time as it does not fit my scenario and throws exceptions when exists)
3. In my code, when I use Response.Redire ct, a new session starts.

#3 is my biggest issue as I lose my session.

Does anyone know why this is happening?
My production code still runs hopefully, but development and truly I don't
know the change that might trigger this.

Please help

SevDer
www.sevder.com

Aug 7 '07 #1
3 3622
Actually what I also realize is, session cookie is not written at all for
some reason.
When I view the cookie information using FF, my session ID is not there
which is there for the production code.
Is there a hotfix I applied causing this behavior?

SevDer
www.sevder.com

"SevDer" <se****@newsgro up.nospamwrote in message
news:2D******** *************** ***********@mic rosoft.com...
Hi All,

I am recently experiencing a weird problem.
I don't know what exactly is the cause of the problem but here is my
scenario and symptoms.

First of all here is my architecture
1. I have a main framework (DNN) build in VB.NET which I try to prevent
changing things there (simply not changing it)
2. I have a virtual directory under this which I develop in C#.
3. Main app in IIS is http://localhost/DNN
4. My app running in this framework where I develop is located at
http://localhost/DNN/DesktopModules/MyApp
5. When compilations happen all required DLL's go under the main app bin
folder as expected.
Until 1 month ago everything was working fine (I don't know when the
problem started)

Problem statement
1. When I build a referenced library project, it adds a new web.config
under my app which is not required at all and I don't know why this
started.
2. When I build myapp it also adds this web.config (I just have to delete
it each time as it does not fit my scenario and throws exceptions when
exists)
3. In my code, when I use Response.Redire ct, a new session starts.

#3 is my biggest issue as I lose my session.

Does anyone know why this is happening?
My production code still runs hopefully, but development and truly I don't
know the change that might trigger this.

Please help

SevDer
www.sevder.com
Aug 7 '07 #2
Hi SevDer,

From your description, you're encountering some problem on ASP.NET
application's sessionstate data, you found the session state in your
ASP.NET 2.0 web application (in product environment) will get lost
unexpectedly, correct?

According to your description, your application is mainly divided into two
parts:

** the main framework application, deployed in the top virtual directory
** some module components that is deployed in a sub directory and could be
updated when there is new module added or old module remoted

As for the following things you mentioned:

=========
1. When I build a referenced library project, it adds a new web.config
under
my app which is not required at all and I don't know why this started.
2. When I build myapp it also adds this web.config (I just have to delete
it
each time as it does not fit my scenario and throws exceptions when exists)
===========

do you mean it will add a new web.config file under the application's sub
directory or means the new web.config file will override the original root
web .config file? For "reference library project", is it a normal class
library project? If so, I think it should only contains a App.config file
and will output an assembly(dll) file rather than web.config file. If the
reference library is abit particular, would you provide some further
description on it?

So far, based on my experience, for session state lossing, if you're using
inproc session, it is probably caused by the ASP.NET web applicaiton
restart(or the worker process recycle). There are many causes could make
asp.net application restart:

** process recycle

** many aspx page get recompiled dynamically

** web.config file has been modified

** bin dir has been modified

** some antivirus software that modify application files
....

For your scenario, if your module components will be updated during
application running and modify some of the above things, it cause the
appliation to restart. You can also put some trace statement in the
Application_Sta rt global event to see whether you can capture such
application start behavior.

here are some other web articles that mentioned some of these behaviors:

http://www.kbalertz.com/871042/application.aspx

http://support.microsoft.com/kb/316148

http://www.eggheadcafe.com/articles/20021016.asp
BTW, for such problem, if it is specific to a certain machine or
environment, is could be caused by some particular things that may be hard
to troubleshoot through newsgroup support. Anyway, we'll try to help you
track down and isolate this issue.

If you have any other finding or any questions on this, please feel free to
post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 8 '07 #3
Hi SevDer,

How are you doing? Have you got any progress or does the suggestion in my
last reply helps you a little? Since this is a complex troubleshooting
issue, though we may not be able to 100% resolve it , we'll try best to
help provide some suggestion or workaround on this. Please feel free to
post here if there is anything else we can help you.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 10 '07 #4

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

Similar topics

1
12899
by: Brian Schloz | last post by:
Hello, I just thought I'd share my particular situation regarding session state periodically being "lost" in my asp.net app. I read with interest all of the posts regarding lost session state (virus scanner, modified assemblies/configs, etc.). The suggested solution of using a 'State Server' or 'SQL State Server' was not attractive to me given the drawbacks: performance, objects must be serializable, no more Session_End.
4
7430
by: Nedu N | last post by:
how to make session not to time out (infinite life time)? if not possible how to increase the time out? for my application its timing out fairly very quick even though i have time out = 99999
2
2015
by: Tomas Martinez | last post by:
Hi, Well, my problem is so simple as it says in the subjet but very frustrating also. I have a project and it is losing the session variables with each postback, so I downloaded from the web a project which used a session management dll to discover what was wrong in my project. This web project has two pages, one send to the other a variable with session state and the other changes this one, shown in a label, with each postback, well,...
7
2968
by: Erik | last post by:
I have an application that uses sessions variables a lot but one I publish the application on the prod server these variables are lost. The application is written i c# 2.0 and I've set the statServer timeout to 20 min in the the web.config file. Any ideas why the variables are lost?
1
321
by: Oliver Jentsch | last post by:
My session is always 20 minutes. I tried to change it in the Web.Config, but the session remains to 20 minutes. My Web.Config ist <sessionState mode="InProc" cookieless="false" timeout="80"
4
1233
by: luke | last post by:
Hi I got the problem of lost session data when it operates in external network (via internet), but it has not problem within the internal network. Any helps will be appreciated. Thanks, Luke
7
5240
by: gnewsgroup | last post by:
In my asp.net 2.0 web application, in Web.config, I have timeout="30", s l i d i n g E x p i r a t i o n = "true" for the Authentication element. I suppose, this means that as long as we don't let a 30 min elapse without making any request, the session should stay alive, right? But I notice that quite often, the application throws out Null reference exception where I try to access a session variable like so:
9
1826
by: gnewsgroup | last post by:
I am using forms authentication for my web application. In web.config, I have this: <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" timeout="120" name=".ASPXAUTH" path="/"
6
2050
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have a web application vs2005 and it looks like a condition is causing session veriables to be lost. This does not seem to be happening too often. The web application allows uploading and deleting files on the server, but not in the bin directory. I am not sure if this is related. Any idea what might be causing this and how to fix it? Thanks. -- Paul G Software engineer.
0
9524
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10003
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9047
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.