473,657 Members | 3,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session record in ASPStateTempSes sions remains locked indefinitely


error:

System.Web.Http Exception: Exception of type System.Web.Http Exception was
thrown. ---> System.Web.Http Exception: Unable to connect to SQL Server
session database. ---> System.Data.Sql Client.SqlExcep tion: General network
error. Check your network documentation.

at System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)

at System.Data.Sql Client.SqlComma nd.ExecuteReade r()

at System.Web.Sess ionState.SqlSta teClientManager .DoGet(String id, SqlCommand
cmd)

--- End of inner exception stack trace ---

at System.Web.Sess ionState.SqlSta teClientManager .DoGet(String id, SqlCommand
cmd)

at System.Web.Sess ionState.SqlSta teClientManager .GetExclusive(S tring id)

at
System.Web.Sess ionState.SqlSta teClientManager .System.Web.Ses sionState.IStat eClientManager. BeginGetExclusi ve(String id, AsyncCallback cb, Object state)

at System.Web.Sess ionState.Sessio nStateModule.Ge tSessionStateIt em()

at
System.Web.Sess ionState.Sessio nStateModule.Po llLockedSession Callback(Object
state)

--- End of inner exception stack trace ---

at System.Web.Http AsyncResult.End ()

at System.Web.Sess ionState.Sessio nStateModule.En dAcquireState(I AsyncResult ar)

at System.Web.Asyn cEventExecution Step.OnAsyncEve ntCompletion(IA syncResult ar)

symptom:

we occasionally experience a large number of persistent locks requests for
specific sessionid on the sql state server used by our web apps.

from our experimentation .

if a sessionid in the ASPStateTempSes sions has it's field locked, set to 1
and not set back to 0, and another request is made for the same session the
locking behavior above occurs resulting in the error above.

we have not been able to replicate it well.
we typically experience it under heavy load.
any additional information anyone could provide would be greatly appreciated.

-seth

Nov 19 '05 #1
2 3528
Seth,

Were you able resolve the "Unable to connect to SQL Server session database"
error?

We are running on Windows 2003 web farm and I get this error as well as a

"OutOfMemoryExc eption.. Unable to serialize the session state error after
the app is running for a couple hours."

Thanks, dave.

"SethHer" wrote:

error:

System.Web.Http Exception: Exception of type System.Web.Http Exception was
thrown. ---> System.Web.Http Exception: Unable to connect to SQL Server
session database. ---> System.Data.Sql Client.SqlExcep tion: General network
error. Check your network documentation.

at System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)

at System.Data.Sql Client.SqlComma nd.ExecuteReade r()

at System.Web.Sess ionState.SqlSta teClientManager .DoGet(String id, SqlCommand
cmd)

--- End of inner exception stack trace ---

at System.Web.Sess ionState.SqlSta teClientManager .DoGet(String id, SqlCommand
cmd)

at System.Web.Sess ionState.SqlSta teClientManager .GetExclusive(S tring id)

at
System.Web.Sess ionState.SqlSta teClientManager .System.Web.Ses sionState.IStat eClientManager. BeginGetExclusi ve(String id, AsyncCallback cb, Object state)

at System.Web.Sess ionState.Sessio nStateModule.Ge tSessionStateIt em()

at
System.Web.Sess ionState.Sessio nStateModule.Po llLockedSession Callback(Object
state)

--- End of inner exception stack trace ---

at System.Web.Http AsyncResult.End ()

at System.Web.Sess ionState.Sessio nStateModule.En dAcquireState(I AsyncResult ar)

at System.Web.Asyn cEventExecution Step.OnAsyncEve ntCompletion(IA syncResult ar)

symptom:

we occasionally experience a large number of persistent locks requests for
specific sessionid on the sql state server used by our web apps.

from our experimentation .

if a sessionid in the ASPStateTempSes sions has it's field locked, set to 1
and not set back to 0, and another request is made for the same session the
locking behavior above occurs resulting in the error above.

we have not been able to replicate it well.
we typically experience it under heavy load.
any additional information anyone could provide would be greatly appreciated.

-seth

Nov 19 '05 #2
UK
HI,
Is there a solution to the problem Seth has posted. Seems like we also experiencing the same issue.
Thanks.
UK

From http://search.yahoo.com/search?p=ASP...p=mss&ei=UTF-8

Posted via DevelopmentNow. com Groups
http://www.developmentnow.com
Nov 3 '06 #3

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

Similar topics

6
2873
by: bonehead | last post by:
I'm still a novice when it comes to session security issues. The problems I'm trying to solve may be fairly common, but I haven't seen examples of solutions in any of the books I've looked at. I currently have a page called 'login.php' which requires the user to provide a userid/password combination. If the user logs in successfully (i.e., the supplied userid/password combination is in the mysql database), the user is directed to a page...
0
1035
by: Scott Vercuski via .NET 247 | last post by:
Hello all, I have a question with respect to the ASP Session State. Here's the scenario I have. I've setup the session on our SQLserver in the ASPState.ASPStateTempSessions table. I can seethe sessions fine and can get the sessionID. My question is, isit possible to re-load the session into a session object fromanother area. For Example, I have an error trapping process,during that process the session state is saved off to a copy ofthe...
5
2848
by: Tim W. | last post by:
Folks. In a B2B Procurement system we've created, we got following Session-Issue: Configuration: We are using IIS 6.0 and added SQL-Based-Sessions in web.config with a timeout of 240 minutes and set them to cookieless mode. As well we added Session.Timeout=240 in asp.net-application and saved data into the session. Session-Timeout in IIS is also set to 240.
1
1604
by: Tejaswi | last post by:
Hello! I have set the Session Timeout to 5 minutes. I login to the Web Page and then wait for 6 minutes. Then I again try to get the page and the Session does not expire. I checked the Expires field in the ASPStateTempSessions Table and it shows the correct value. What I expect is that when I hit the page after 5 minutes, the Session values are empty (even though the SessionID may be the same) or the Session gets Abandoned and a new...
1
6193
by: Seetha J | last post by:
I work on a website where users can apply for different types of loans. Depending on the type of loan we store various sets of data in Session state which is maintained in SQL Server. If the user stops in the middle of loan application process I want to capture whatever data was in the session and store it in our backoffice systems for non-repudiation purposes. In the past we have been doing it on session end but after we moved to SQL...
1
8499
by: Mark Reed | last post by:
Hi All, I'm having a problem with the following code. I've read quite a lot of old posts regarding the issue but none seem to affer a solution. The scenario is. I have a bound form which contains a couple of memo fields. I need to keep some sort of log as to when each update of the memo field occurs so I have locked bot the memo fields on the main form. To edit them, the user double clicks the ememo field which then opens an unbound...
0
255
by: sabrina | last post by:
Hi, I am trying to set my web application to use sql server mode for session state. I have made the change to the web.config and ran InstallPersistSqlState. When the application runs, I can see a new record inserted into ASPStateTempSessions table. However when I attempt to load the data from a session variable, it is always nothing. Any advise -- Thanks, Sabrina
0
3233
by: Access Programming only with macros, no code | last post by:
ERROR MESSAGE: Could not update; currently locked by another session on this machine. BACKGROUND I have the following objects: Table1 - HO (which has about 51,000+ records) Table2 - Contact (which has 68,000+ records)
5
3175
by: prakashwadhwani | last post by:
The Delete Event/Proc & "Save_Fields_In_Form_Header" Event/Proc in my form were working perfectly. However, after I added a call to the "Save_Fields_In_Form_Header" Event/Proc in the "Current" Event of my form, and I now try to Delete a record, I get ... Run-Time Error 3218 - Could not Update; Currently Locked. My Access application then effectively freezes forcing me to shut Access down & re-start. The record DOES get deleted...
0
8384
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8820
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7314
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5630
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.