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? 7 2935
Are you using InProc for maintaining state ?
If you're using InProc, your session variables will be lost
any time your ASP.NET process recycles.
If you *are* using InProc, you might want to look into using
State Server of SQL Server for maintaining state.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Erik" <Er**@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com... 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?
Hi!
Yes I did use Inproc but now I'm using StateServer instead and it works
fine. I still don't know why the process recyles so often, I lost the
variables every 10 seconds.
/Erik
"Juan T. Llibre" wrote: Are you using InProc for maintaining state ?
If you're using InProc, your session variables will be lost any time your ASP.NET process recycles.
If you *are* using InProc, you might want to look into using State Server of SQL Server for maintaining state. Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ =================================== "Erik" <Er**@discussions.microsoft.com> wrote in message news:7F**********************************@microsof t.com...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?
re: I'm using StateServer instead and it works fine.
Good !
re: I lost the variables every 10 seconds.
That points to a serious coding problem, if the ASP.NET
process is being recycled every 10 seconds.
Check the event viewer to see the reason for the quick recycling.
Also, check the Application Pool's recycle settings.
You may have very short number of requests,
time or max memory consumption settings.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Erik" <Er**@discussions.microsoft.com> wrote in message
news:37**********************************@microsof t.com... Hi! Yes I did use Inproc but now I'm using StateServer instead and it works fine. I still don't know why the process recyles so often, I lost the variables every 10 seconds. /Erik
"Juan T. Llibre" wrote:
Are you using InProc for maintaining state ?
If you're using InProc, your session variables will be lost any time your ASP.NET process recycles.
If you *are* using InProc, you might want to look into using State Server of SQL Server for maintaining state. Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ =================================== "Erik" <Er**@discussions.microsoft.com> wrote in message news:7F**********************************@microsof t.com... >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?
Hi guys,
I have also problem with losing my session variables but in the following
scenario.
I'm developing a web site on IIS5.1 hosted on WinXP using ASP.NET 1.1 with
C# and everything is very cool.
When I deploy to test environment I can remark that my session variables are
lost after web application make call to a com component. Immediately after
this, I'm losing session variables.
Test environment is on Win2003 and IIS6.
Should I change way of storing my session variables and use Cache object
insted of Session or what!?
Best regards,
Vasko
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... re: I'm using StateServer instead and it works fine.
Good !
re: I lost the variables every 10 seconds.
That points to a serious coding problem, if the ASP.NET process is being recycled every 10 seconds.
Check the event viewer to see the reason for the quick recycling.
Also, check the Application Pool's recycle settings.
You may have very short number of requests, time or max memory consumption settings.
Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ =================================== "Erik" <Er**@discussions.microsoft.com> wrote in message news:37**********************************@microsof t.com... Hi! Yes I did use Inproc but now I'm using StateServer instead and it works fine. I still don't know why the process recyles so often, I lost the variables every 10 seconds. /Erik
"Juan T. Llibre" wrote:
Are you using InProc for maintaining state ?
If you're using InProc, your session variables will be lost any time your ASP.NET process recycles.
If you *are* using InProc, you might want to look into using State Server of SQL Server for maintaining state. Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ =================================== "Erik" <Er**@discussions.microsoft.com> wrote in message news:7F**********************************@microsof t.com... >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?
may be your call to the com component is making you web app to crash or
maybe the iis is the one whos crashing and restarting.
"Vasil Buraliev" <va************@yahoo.com> wrote in message
news:eh**************@TK2MSFTNGP14.phx.gbl... Hi guys, I have also problem with losing my session variables but in the following scenario.
I'm developing a web site on IIS5.1 hosted on WinXP using ASP.NET 1.1 with C# and everything is very cool. When I deploy to test environment I can remark that my session variables are lost after web application make call to a com component. Immediately after this, I'm losing session variables. Test environment is on Win2003 and IIS6.
Should I change way of storing my session variables and use Cache object insted of Session or what!?
Best regards, Vasko
"Juan T. Llibre" <no***********@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... re: I'm using StateServer instead and it works fine.
Good !
re: I lost the variables every 10 seconds.
That points to a serious coding problem, if the ASP.NET process is being recycled every 10 seconds.
Check the event viewer to see the reason for the quick recycling.
Also, check the Application Pool's recycle settings.
You may have very short number of requests, time or max memory consumption settings.
Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ =================================== "Erik" <Er**@discussions.microsoft.com> wrote in message news:37**********************************@microsof t.com... Hi! Yes I did use Inproc but now I'm using StateServer instead and it works fine. I still don't know why the process recyles so often, I lost the variables every 10 seconds. /Erik
"Juan T. Llibre" wrote:
Are you using InProc for maintaining state ?
If you're using InProc, your session variables will be lost any time your ASP.NET process recycles.
If you *are* using InProc, you might want to look into using State Server of SQL Server for maintaining state. Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ =================================== "Erik" <Er**@discussions.microsoft.com> wrote in message news:7F**********************************@microsof t.com... >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?
Maybe,
I have log files that COM creates itself and I'm loging errors, warrning and
infos in web application. Can not see any error. But as u said something is
crasshin aspnet_wp.exe and my session variables are lost.
I changed way of storing session data from InProc to ServerProc and now I'm
not losing session data but... still have some other problems. I will try to
describe in more details just let me test it litle bit.
Thanx for answer.
Regards,
Vasko.
"Alex D." <al********@hotmail.com> wrote in message
news:OF**************@TK2MSFTNGP10.phx.gbl... may be your call to the com component is making you web app to crash or maybe the iis is the one whos crashing and restarting.
"Vasil Buraliev" <va************@yahoo.com> wrote in message news:eh**************@TK2MSFTNGP14.phx.gbl... Hi guys, I have also problem with losing my session variables but in the following scenario.
I'm developing a web site on IIS5.1 hosted on WinXP using ASP.NET 1.1 with C# and everything is very cool. When I deploy to test environment I can remark that my session variables are lost after web application make call to a com component. Immediately after this, I'm losing session variables. Test environment is on Win2003 and IIS6.
Should I change way of storing my session variables and use Cache object insted of Session or what!?
Best regards, Vasko
"Juan T. Llibre" <no***********@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... re: I'm using StateServer instead and it works fine.
Good !
re: I lost the variables every 10 seconds.
That points to a serious coding problem, if the ASP.NET process is being recycled every 10 seconds.
Check the event viewer to see the reason for the quick recycling.
Also, check the Application Pool's recycle settings.
You may have very short number of requests, time or max memory consumption settings.
Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ =================================== "Erik" <Er**@discussions.microsoft.com> wrote in message news:37**********************************@microsof t.com... Hi! Yes I did use Inproc but now I'm using StateServer instead and it works fine. I still don't know why the process recyles so often, I lost the variables every 10 seconds. /Erik
"Juan T. Llibre" wrote:
> Are you using InProc for maintaining state ? > > If you're using InProc, your session variables will be lost > any time your ASP.NET process recycles. > > If you *are* using InProc, you might want to look into using > State Server of SQL Server for maintaining state. > > > > Juan T. Llibre, asp.net MVP > aspnetfaq.com : http://www.aspnetfaq.com/ > asp.net faq : http://asp.net.do/faq/ > foros de asp.net, en español : http://asp.net.do/foros/ > =================================== > "Erik" <Er**@discussions.microsoft.com> wrote in message > news:7F**********************************@microsof t.com... > >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? > > >
I found an usfull article. I recomended to all that dealing with COM
components from ASP.NET. http://msdn.microsoft.com/library/de...ml/DBGch04.asp
Regards,
Vasko
"Alex D." <al********@hotmail.com> wrote in message
news:OF**************@TK2MSFTNGP10.phx.gbl... may be your call to the com component is making you web app to crash or maybe the iis is the one whos crashing and restarting.
"Vasil Buraliev" <va************@yahoo.com> wrote in message news:eh**************@TK2MSFTNGP14.phx.gbl... Hi guys, I have also problem with losing my session variables but in the following scenario.
I'm developing a web site on IIS5.1 hosted on WinXP using ASP.NET 1.1 with C# and everything is very cool. When I deploy to test environment I can remark that my session variables are lost after web application make call to a com component. Immediately after this, I'm losing session variables. Test environment is on Win2003 and IIS6.
Should I change way of storing my session variables and use Cache object insted of Session or what!?
Best regards, Vasko
"Juan T. Llibre" <no***********@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... re: I'm using StateServer instead and it works fine.
Good !
re: I lost the variables every 10 seconds.
That points to a serious coding problem, if the ASP.NET process is being recycled every 10 seconds.
Check the event viewer to see the reason for the quick recycling.
Also, check the Application Pool's recycle settings.
You may have very short number of requests, time or max memory consumption settings.
Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ =================================== "Erik" <Er**@discussions.microsoft.com> wrote in message news:37**********************************@microsof t.com... Hi! Yes I did use Inproc but now I'm using StateServer instead and it works fine. I still don't know why the process recyles so often, I lost the variables every 10 seconds. /Erik
"Juan T. Llibre" wrote:
> Are you using InProc for maintaining state ? > > If you're using InProc, your session variables will be lost > any time your ASP.NET process recycles. > > If you *are* using InProc, you might want to look into using > State Server of SQL Server for maintaining state. > > > > Juan T. Llibre, asp.net MVP > aspnetfaq.com : http://www.aspnetfaq.com/ > asp.net faq : http://asp.net.do/faq/ > foros de asp.net, en español : http://asp.net.do/foros/ > =================================== > "Erik" <Er**@discussions.microsoft.com> wrote in message > news:7F**********************************@microsof t.com... > >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? > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Brad |
last post by:
Hi everyone,
I've been using ASP on a few different projects over the past year, either
using Javascript or VBScript. During that time, I've made use of session
variables, but even then, I've...
|
by: Microsoft |
last post by:
I am using Session variables in my ASP application. I have tested the
application on a Win2k professional and it works fine. When the same web
app is installed on a win2k advanced server from the...
|
by: Billy Jacobs |
last post by:
I am having a problem with my session variable being set
to Null for no apparent reason.
I am declaring it like the following when the user logs in.
dim objUserInfo as new clsUserInfo
'Set...
|
by: Eliyahu Goldin |
last post by:
When I run my ASP.NET application first time after deployment, it runs OK.
On the second run, when one of my web forms tries to read session variables
set in another form, it finds them empty....
|
by: tshad |
last post by:
I have been using the default session state (InProc) and have found that I
have been loosing my information after a period of time (normally 20
minutes).
Is there anyway to find out how much...
|
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...
|
by: maxkumar |
last post by:
Hi,
I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website
has been running for about 1.5 years now. In the past, we used to have random
cases of session variables getting...
|
by: Aarchaic |
last post by:
Hello i have problem my session variables seem to disapear as i go along i've created this code to ilustrate whats happening
First off i just post 3 detials like a name a age and a favourite...
|
by: K. A. |
last post by:
I have two servers at work, 'A' for testing and development, and
server 'B' for production.
On server A, I wrote a PHP test code to login users then direct them
to a personalized page. This is...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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: 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...
|
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: 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...
| |