473,394 Members | 1,866 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,394 software developers and data experts.

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.Redirect, 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 3595
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****@newsgroup.nospamwrote in message
news:2D**********************************@microsof t.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.Redirect, 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_Start 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
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...
4
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
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...
7
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...
1
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"...
4
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, ...
7
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...
9
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"...
6
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
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,...
0
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...
0
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,...
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...

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.