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

Wierd problem with session ending in ASP.NET 2.0 with VS ASP.NET Development Server

When I am running my ASP.NET 2.0 application using VS.NET 2005 ASP.NET
Development Server, the session state seems to be getting lost at various
times without warning. I am not sure why this is happening. It is not
related to timeout because it occurs way before the default of 20 session
timeout setting.

One thing that I did notice that may be a key to this:

1. Place a breakpoint in Global.asax for session_end.
2. Run ASP.NET application using Visual Studio.
3. Go to a page that makes a SQL database update to a row in any table.
4. While debugger is running, load table data from table where row was
updated in step 3 using Visual Studio IDE.
5. Application will hit session_end breakpoint without doing any postback
from web page. (Why???)
6. At this point, the session variables in my running debugged page are
gone when it does a postback.

I am not sure if the info related above is related to why the session ends
on its own, but I was really confused as to how in the world I could hit my
session_end breakpoint when I did not do a postback to the web site at all.
I merely displayed some data using the Visual Studio SQL data viewer.

Anyhow, is there any explanation as to why session is disappearing before
the session timeout setting?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
Mar 27 '07 #1
6 5136
inproc session end anytime a site recycle occurs (memory limit, file
change, recompile, etc). most likely a file change in happening causing
a recompile, which ends all sessions.

-- bruce (sqlwork.com)

Ken Varn wrote:
When I am running my ASP.NET 2.0 application using VS.NET 2005 ASP.NET
Development Server, the session state seems to be getting lost at various
times without warning. I am not sure why this is happening. It is not
related to timeout because it occurs way before the default of 20 session
timeout setting.

One thing that I did notice that may be a key to this:

1. Place a breakpoint in Global.asax for session_end.
2. Run ASP.NET application using Visual Studio.
3. Go to a page that makes a SQL database update to a row in any table.
4. While debugger is running, load table data from table where row was
updated in step 3 using Visual Studio IDE.
5. Application will hit session_end breakpoint without doing any postback
from web page. (Why???)
6. At this point, the session variables in my running debugged page are
gone when it does a postback.

I am not sure if the info related above is related to why the session ends
on its own, but I was really confused as to how in the world I could hit my
session_end breakpoint when I did not do a postback to the web site at all.
I merely displayed some data using the Visual Studio SQL data viewer.

Anyhow, is there any explanation as to why session is disappearing before
the session timeout setting?

Mar 27 '07 #2
inproc session end anytime a site recycle occurs (memory limit, file
change, recompile, etc). most likely a file change in happening causing
a recompile, which ends all sessions.
None of these areas were changed as far as I can tell, unless VS does
something in the background that I am unaware of. All I can say is that the
only time it seems to happen consistently is when I select "show table data"
in VS.NET while the app is running.
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
Mar 28 '07 #3
Actually, even there is a file change, the current requests are served
using the existing site in memory, and all future requests use the new
recompiled site.
Did you try to enable tracing and analyzing that?

Mar 29 '07 #4
On Mar 29, 11:07 am, "Latish Sehgal" <latish.seh...@gmail.comwrote:
Actually, even there is a file change, the current requests are served
using the existing site in memory, and all future requests use the new
recompiled site.
Did you try to enable tracing and analyzing that?
I am having similar problem with session variable values set in an
aspx.vb page does not carry over across page postbacks. This started
happening in a newly converted app from ASP 1.1

Mar 30 '07 #5
On Mar 30, 5:35 pm, aamirghan...@gmail.com wrote:
On Mar 29, 11:07 am, "Latish Sehgal" <latish.seh...@gmail.comwrote:
Actually, even there is a file change, the current requests are served
using the existing site in memory, and all future requests use the new
recompiled site.
Did you try to enable tracing and analyzing that?

I am having similarproblemwithsessionvariable values set in an
aspx.vb page does not carry over across page postbacks. This started
happening in a newly converted app from ASP 1.1
I am also facing the same problem. I have an apsx page with two
buttons.
Click on first button session remains. When i click the second button
the session clears off all the keys gets cleared.

I even tried two buttons with absolutely no code written in the event,
but still behaves the same way.

Can any please let me know if you have any suggestions or comments.

Thanks

Apr 2 '07 #6
On Apr 2, 11:09 am, replytos...@gmail.com wrote:
On Mar 30, 5:35 pm, aamirghan...@gmail.com wrote:
On Mar 29, 11:07 am, "Latish Sehgal" <latish.seh...@gmail.comwrote:
Actually, even there is a file change, the current requests are served
using the existing site in memory, and all future requests use the new
recompiled site.
Did you try to enable tracing and analyzing that?
I am having similarproblemwithsessionvariable values set in an
aspx.vb page does not carry over across page postbacks. This started
happening in a newly converted app from ASP 1.1

I am also facing the same problem. I have an apsx page with two
buttons.
Click on first button session remains. When i click the second button
the session clears off all the keys gets cleared.

I even tried two buttons with absolutely no code written in the event,
but still behaves the same way.

Can any please let me know if you have any suggestions or comments.

Thanks
My problem was solved, but it was something other than session being
reset. see the last post on following link:

http://groups.google.com/group/micro...a4e0a6a0074fea

Apr 13 '07 #7

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

Similar topics

8
by: Marc Hoeve | last post by:
Hi everybody I'm setting up 2 websites for a friend of mine, en I'm have problems with one of the sites. The situation: I have 2 different domains (both in the .NL domain). Both domains...
2
by: Donald Scott | last post by:
We are having a problem with sessions ending sooner then they should. We have a two server web garden, both servers have identical machine keys. I'm storing session state in Sql Server. Sessions...
3
by: vvenk | last post by:
Hello: This was posted in a wrong forum; that's why I am posting here again. Sorry. I just wrote my first ASP.Net application, tested it on my development environment and deployed it on a...
0
by: Amid | last post by:
I have the following folder structure: SomeFolder Solutions Middleware WebServiceProject Solution sln file is in Solutions folder. When I Open solution VS2005 creates copy of...
2
by: Aras Kucinskas | last post by:
The “The page cannot be displayed” error occurs when debugging ASP.NET web application using VS 2005. ASP.NET Development Server icon in taskbar shows that application is starting on port 2795 but...
0
by: DaveOnSEN | last post by:
Hi, I'm having a problem with Visual Studio 2005 Development Server. I've recently upgraded from 2003 to 2005. I used to develop and debug against IIS, so I still have it installed on my...
3
by: Meena | last post by:
Dear All, i have developed an application located on a server that has a front end and a back end interface, the application uses session object. when i log on as a backend user and a client user...
0
by: Vico | last post by:
hi all, I have same problem with asp .net development server. I have a web services, it work. to access to the server I insert in web browser http://localhost:xxxx/proget, it work, but if i insert...
0
by: ronscottlangham | last post by:
I have a WCF Web Service that I develop using the ASP.NET Development Server in Visual Studio. In release, the web service will support both HTTP and HTTPS. Initially I had only HTTP configured in...
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
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
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
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
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
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...

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.