DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 7 Aug 2007 05:00:14 -0400,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    SevDer am
          2    SevDer am
                 3    (Steven Cheng[MSFT])
                        4    (Steven Cheng[MSFT])


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
Date:Tue, 7 Aug 2007 05:00:14 -0400   Author:  

Re: Weird session lost and auto web.config   
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" <sevder@newsgroup.nospam> wrote in message 
news:2DD134AB-D237-40CD-B4A6-BC034C7B689A@microsoft.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 
Date:Tue, 7 Aug 2007 05:28:35 -0400   Author:  

Re: Weird session lost and auto web.config   
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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.

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

This posting is provided "AS IS" with no warranties, and confers no rights.
Date:Wed, 08 Aug 2007 06:11:42 GMT   Author:  

Re: Weird session lost and auto web.config   
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.
Date:Fri, 10 Aug 2007 10:14:02 GMT   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us