i studied like state server retrieve the session if the web server restarts.
here my doubt is application will not work while webserver restarts.then what is the use of retrieve the session after restrart the webserver?
View Complete Post
Hi to all,
I have some things that I want to know. I am right now using a free asp.net webhosting ("somee.com"). The problem is that when I am visiting a page, there's a tendency that values stored in my session variables are lost. Therefore, it causes an error when the requested page is loaded.
1. I am thinking of using sessionState mode="SqlServer". Will it solve my problem?
Actualy Im working on it but Im having problems when connecting to the sql database.
2. Is that a problem in the webhost?
3. Do free webhosting sites provide allow session state in the sql server?. Because ive tried it locally into my computer and error say's i should intall the ASP.NET Session State SQL Server version 2.0 or above.
I am using vb.net (Visual Studio 2008 with framework 3.5). I have a server that exposes several services requiring sessions. I am using wsHttpBinding for all. One of my requirements is to allow non-dot net third parties to access these services. When a
client connects to a service and then some time later the server goes away, the state of the connection is still reporting "open".
Currently I have implemented a "ping" function on the server. My client calls this function every 5 to 10 seconds and if the server does shutdown, I get alerted with an exception error. This works, but I was wondering if there is a way where I don't
have to call my ping function?
I don't want to use a dual connection binding and I was hoping to use the connection state variable? But, I don't know how to get it to update by itself. The client user application could just wait until it goes to invoke a service method, but I was wondering
if there was another way.
Thanks in advance!!
My ASP.NET web application is hosted in multiple servers with a Network Load balancer Hardware. I am facing issues in session management during the site navigation. Frequently the session values are lost and application errors out with session not found. Currently the Site is configured with the Session mode as Inproc.
I would like to know:
1. Whether changing the Session mode to State server will solve the session management issue. 2. If changing the session mode then what would be the best configuration for the state server.3. Is there any other configuration settings that needs to be done in the State server as well as in the application
I am now migrating a ASP.NET web pages (.NET 2.0) to Windows 2008 R2, started IIS, SMTP, ASP.NET state server on the same machine.
Originally I have such setting on web.config, which is OK on windows server 2003.
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/>
On windows 2008 R2:
On IIS, I defined that as an Application and under "Default Web Site", and defined a new applicaiton pool to it.
On "Default Web site", I define the session to use "InProc" and the application as "InProc", everything works fine, however, when I change the application to use "StateServer", the follow error happens:
Sample error detail:
Event code: 3009 Event message: Unable to make the session state request to the session state server. Details: last phase='Reading response from the state server', error code=0x8000FFFF, size of outgoing data=0 Event time: 10/21/2010 2:28:48 PM Event time (UTC): 10/21/2010 6:28:48 AM Event ID: 85f567a2371448678bf90eff3942fe62 Event sequence: 4 Event occurrence: 1 Event detail
The fix for this error message is to run aspnet_regsql -ssadd. I have run that uptown, downtown and in my lady's chamber and it does no good, although it never complains. Are there any other possibilities?
IIS Server: v5.1 running on XP.
SQLServer 2005 running on a different XP box.
Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618
There is an ASPState database on the server, containing only two tables: ASPStateTempApplications and ASPStateTempSessions. I did not use -sstype when I ran aspnet_regsql.
Good luck to everyone.
Imagine A project has been in the medium-sized scale contents classes in the sessions,
the SQL Server sessions seriliazed. 300-minute session in the state here;
but it losts when they dont till 300 minutes.
there are a lot of solution on the Internet, but most are guaranteed by SQL Server State and it cant be change anything. in the meantime i havent any vps or vds just using low hosting packet web farm or web garden dont know.
by the way i had try another solution named "Defibilator" think a iframe on page and refresh every 60 second for extends session timeout. [didnt work either]
Do you think the problem is ?
easy to come to you.
p.s : sorry for my bad english
I have created a server control consisting of a TextArea and a div under it. My goal is to create my own asp:TextArea type control. the div is for a Character count of the text area and seems to work ok but i added a CharacterCountVisible property to the control that is always returning true. See Proptery definition below
<Bindable(False), Category("Appearance"), DefaultValue("True"), Localizable(True)> Property CharacterCountVisible() As Boolean Get Return _CountBoxVisible End Get Set(ByVal value As Boolean) _CountBoxVisible = value End SetEnd Property
Note the _CountBoxVisible variable is define inside the class as :
Dim _CountBoxVisible as Boolean = True
What I am trying to do is give the user/coder the option to show/utilize the char count feature. Can make it disappear with textarea1.CharacterCountVisible = False but setting it to true will not make it display.
What am i missing
Edited by Nancy Michell
MSDN Magazine November 2005
ASP.NET provides a number of ways to maintain user state, the most powerful of which is session state. This article takes an in-depth look at designing and deploying high-performance, scalable, secure session solutions, and presents best practices for both existing and new ASP.NET session state features straight from the ASP.NET feature team.
MSDN Magazine September 2005
Running a Web farm means managing session state across servers. Since session state can't be shared across a Web farm with Internet Information Services 5.0, a custom solution is required. One such solution using a tool called the session manager is described here. The article begins with a description of the SQL Server database used to store state information, the stored procedures used to update it, and the retrieval of session data. ASP code drives the session manager tool and the COM and COM+ components that run the stored procedures.
MSDN Magazine October 2000
I just for the first time into a session state problem. So I am hoping someone
here has the answer.
I have written an ASP.Net website and tried to implement the common poor mans online user count.The problem I am having is the following.
On App_Start I create a variable and assign it the value of 0;
Then increase the number on session_start and decrement on session_end.
On my local IIS it works perfectly from IE8 and Opera. The value increments correctly.As soon as I upload to my live server. The value increments on every link I click and every page refresh when I test with IE8.This does not happen when testing with Opera.
Could someone please shed some light on the subject.
Due to the known problem of session variables getting lost if using InProc-server during frequent changes in development, I had to choose between SQL and ASP.NET State server, so I opted for the second. Initially, all fine, but after using it for a few days, I started to get this error:
Server Error in '/cv2' Application.Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection. If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the clie
I want to show all the activities of the logged in user in a gridview. I am using VS 2010. please suggest some good ways of doing it.