473,471 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Unable to use SqlState Session mode

The issue description is as follows:
Environment
Windows Server 2003 SP2
Framework 1.1
Framework 2.0
SqlServer 2000
Description:
The Web server hosts both Framework 1.1 and 2.0 applications.
The application runs Framework 1.1 and works as expected in
“InProc” Session mode.
When we try to make the application to run in “SqlServer”
session mode, error occurs. The Steps followed to configure the “SqlServer
Session Mode” are
Created a new database ASPState using the following Script
InstallPersistSqlState.sql from the following path
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
Modified the Web.config file for the application to store the session
values in database the changes are as follows:

Before change (Web.config):
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false" timeout="60"/>
After code change(Web.config):
<sessionState mode="SQLServer" sqlConnectionString="Integrated
Security=SSPI;data source=DbServer;" cookieless="false" timeout="60"/>

Error Description:
The session gets created and stored in the state server as
expected after the setup is completed. (We verified it by executing a “Select
* ….” against the session table)
After sometime say 30 min or so, the application returns
following error when tried logging in (which seems to suggest that the
environment has changed to Framework 2.0).

Error Message: Unable to use SQL Server because ASP.NET version 2.0 Session
State is not installed on the SQL server. Please install ASP.NET Session
State SQL Server version 2.0 or above.
Error Source: System.Web
Error Target Site: Void
GetServerSupportOptions(System.Data.SqlClient.SqlC onnection)

Observation:
Checked IIS to ensure that the application point to ASP.Net 1.1 from the
following tab (Right click Virtual Directory>Properties >ASP.Net, ASP.Net
is pointing to V 1.1.4322)

But it does not seem to fix the issue

Jun 18 '07 #1
0 2890

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

Similar topics

1
by: Brian Pittman | last post by:
Hi all, As the subject says I'm having trouble connecting to SQL Server 2K via Visual Studio.NET 2002 (VB). It tells me that SQL Server does not exist or access is denied. I know that the...
2
by: Dave | last post by:
We just started getting this error message in our application today (stack trace below). From the OutOfMemoryException, I'm guessing it could be a memory leak. I'm making sure I'm closing all my...
0
by: Maciek | last post by:
Hi When I set Session state mode to StateServer (IIS 6.0; windows2003; .NET 2.0) in my application, I have recived this message:...
2
by: forinti | last post by:
Is it possible to use the Session object, with SqlState, when outside of a request scope? I have some very slow queries that I fire asynchronously, while the user sees a wait page. Therefore,...
1
by: Tim | last post by:
Could anyone tell me what this means and how do I correct it. Any suggestions? Thanks! Tim Richardson IT Developer and Consultant www.paladin3d.com Unable to serialize the session state. In...
6
by: tshad | last post by:
I had asked about this before, but have been unable to solve the problem. Could this be a problem with Web Services? I have 4 web services that I reference in this object. There is only one...
4
by: Abi | last post by:
We able to generate this error in our test environment and were able to research this enough to understand that the issue is NOT with an abject that needs to be serialized but rather as the stack...
2
by: Richard | last post by:
Our web programmer was looking in his application log an found the following error: 2006-08-31 16:33:35,129 ERROR org.hibernate.util.JDBCExceptionReporter - < SQL0723N An error occurred in a...
0
by: Nachi | last post by:
I have installed SQL Server 2000 with VS 2005 - did not install SqlExpress\Sql 2005. I have a remote Sql Server Instance locally. The normal application connectes to this Sql Server. When I run...
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...
0
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
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 projectplanning, coding, testing,...
1
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
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...
0
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 ...

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.