473,399 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Asp.net 2.0 session state confusion

I have a freshly installed test machine, both 1.1 and 2.0 frameworks
installed, and sql server 2005.

The application was ported from 1.1 -2.0.

I ran aspnet_regsql wizard with defaults, which creates an aspnetdb in
sql. The application runs in an IIS vroot that was set up (call it
"foo"), and I checked to make sure that the asp.net property tap for
the vroot was using the 2.0 framework.

When invoking the app, it fails with a sql exception, stating that it
can't find the 'aspstate' database.

I change the name of the aspnetdb session database (created above),
and it tells me... "Unable to use SQL Server because ASP.NET version
2.0 Session .State is not installed on the SQL server. "

sessionstate element looks like:
<sessionState mode="SQLServer"
sqlConnectionString="data
source=127.0.0.1;uid=foo;pwd=bar"
cookieless="false" timeout="120"/>

user foo is an owner of the state database.

why is my newly-upgraded-to-asp.net 2.0-application still looking for
the database whose name is ASPState? I tried configuring the
'aspnetdb' name into the config file, but it told me that to do so
would require selecting custom databses in the wizard.

thanks in advance

Mar 20 '07 #1
1 6049
Hi

perhaps you should re-run the
aspnet_regiis.exe -r
from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

----------------------
If my answer helped you please press "Yes" bellow

Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/
"dc****@nwlink.com" wrote:
I have a freshly installed test machine, both 1.1 and 2.0 frameworks
installed, and sql server 2005.

The application was ported from 1.1 -2.0.

I ran aspnet_regsql wizard with defaults, which creates an aspnetdb in
sql. The application runs in an IIS vroot that was set up (call it
"foo"), and I checked to make sure that the asp.net property tap for
the vroot was using the 2.0 framework.

When invoking the app, it fails with a sql exception, stating that it
can't find the 'aspstate' database.

I change the name of the aspnetdb session database (created above),
and it tells me... "Unable to use SQL Server because ASP.NET version
2.0 Session .State is not installed on the SQL server. "

sessionstate element looks like:
<sessionState mode="SQLServer"
sqlConnectionString="data
source=127.0.0.1;uid=foo;pwd=bar"
cookieless="false" timeout="120"/>

user foo is an owner of the state database.

why is my newly-upgraded-to-asp.net 2.0-application still looking for
the database whose name is ASPState? I tried configuring the
'aspnetdb' name into the config file, but it told me that to do so
would require selecting custom databses in the wizard.

thanks in advance

Mar 21 '07 #2

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

Similar topics

8
by: karahan celikel | last post by:
I realized that when SqlServer mode is used for session management Session_End event is not fired in global.asax. What can I do if I want to do something when a user's session end? Thanks
3
by: Green | last post by:
Hi, I want to test whether a sesion exist, what can i do? I use Session.toString().length == 0 , but it will prompt the error saying object is not referenced. How can i test Session exist? ...
1
by: Johan Nedin | last post by:
Hello! I have a problem with SQLSession state on my ASP.NET pages. SQLSession state behaves very different from InProcess session state, which I think is very bad. I can understand some of...
6
by: TR | last post by:
What is the best practice for implementing a Logoff feature so that the user's session is terminated and session state memory is released? Thanks TR
2
by: Jim Tilson | last post by:
I'm having a problem with Session ID being duplicated across multiple IE windows. I edited the web.config for my ASP.net web application to display trace information on the page. I open an IE...
10
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...
1
by: dchinn | last post by:
I have a freshly installed test machine, both 1.1 and 2.0 frameworks installed, and sql server 2005. The application was ported from 1.1 -2.0. I ran aspnet_regsql wizard with defaults, which...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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
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 project—planning, coding, testing,...
0
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...

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.