473,503 Members | 1,670 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session record in ASPStateTempSessions remains locked indefinitely


error:

System.Web.HttpException: Exception of type System.Web.HttpException was
thrown. ---> System.Web.HttpException: Unable to connect to SQL Server
session database. ---> System.Data.SqlClient.SqlException: General network
error. Check your network documentation.

at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)

at System.Data.SqlClient.SqlCommand.ExecuteReader()

at System.Web.SessionState.SqlStateClientManager.DoGe t(String id, SqlCommand
cmd)

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

at System.Web.SessionState.SqlStateClientManager.DoGe t(String id, SqlCommand
cmd)

at System.Web.SessionState.SqlStateClientManager.GetE xclusive(String id)

at
System.Web.SessionState.SqlStateClientManager.Syst em.Web.SessionState.IStateClientManager.BeginGetEx clusive(String id, AsyncCallback cb, Object state)

at System.Web.SessionState.SessionStateModule.GetSess ionStateItem()

at
System.Web.SessionState.SessionStateModule.PollLoc kedSessionCallback(Object
state)

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

at System.Web.HttpAsyncResult.End()

at System.Web.SessionState.SessionStateModule.EndAcqu ireState(IAsyncResult ar)

at System.Web.AsyncEventExecutionStep.OnAsyncEventCom pletion(IAsyncResult 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 ASPStateTempSessions 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 3522
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

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

Thanks, dave.

"SethHer" wrote:

error:

System.Web.HttpException: Exception of type System.Web.HttpException was
thrown. ---> System.Web.HttpException: Unable to connect to SQL Server
session database. ---> System.Data.SqlClient.SqlException: General network
error. Check your network documentation.

at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)

at System.Data.SqlClient.SqlCommand.ExecuteReader()

at System.Web.SessionState.SqlStateClientManager.DoGe t(String id, SqlCommand
cmd)

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

at System.Web.SessionState.SqlStateClientManager.DoGe t(String id, SqlCommand
cmd)

at System.Web.SessionState.SqlStateClientManager.GetE xclusive(String id)

at
System.Web.SessionState.SqlStateClientManager.Syst em.Web.SessionState.IStateClientManager.BeginGetEx clusive(String id, AsyncCallback cb, Object state)

at System.Web.SessionState.SessionStateModule.GetSess ionStateItem()

at
System.Web.SessionState.SessionStateModule.PollLoc kedSessionCallback(Object
state)

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

at System.Web.HttpAsyncResult.End()

at System.Web.SessionState.SessionStateModule.EndAcqu ireState(IAsyncResult ar)

at System.Web.AsyncEventExecutionStep.OnAsyncEventCom pletion(IAsyncResult 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 ASPStateTempSessions 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
2857
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...
0
1026
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...
5
2843
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...
1
1584
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...
1
6175
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...
1
8483
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...
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...
0
3220
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 -...
5
3168
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...
0
7201
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
7083
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
7328
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...
1
6988
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...
0
7456
tracyyun
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...
0
5578
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,...
1
5011
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...
0
3166
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...
0
379
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...

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.