473,809 Members | 2,940 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "
sqlConnectionSt ring="data
source=127.0.0. 1;uid=foo;pwd=b ar"
cookieless="fal se" 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 6082
Hi

perhaps you should re-run the
aspnet_regiis.e xe -r
from
C:\WINDOWS\Micr osoft.NET\Frame work\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 "
sqlConnectionSt ring="data
source=127.0.0. 1;uid=foo;pwd=b ar"
cookieless="fal se" 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
8426
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
3331
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? Thanks in advance!
1
2418
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 the differences, e.g that every object you store in SQLSession state have to be serializable, but other differences are very unfortunate.
6
5061
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
8005
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 window and navigate to the home page of my ASP.net app, and note the Session ID that was assigned. I then type CTRL-N to open a new IE window. The session ID displayed on the
10
3522
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 more time I have on a session? If I do a refresh, does reset the session clock? Do you have have to go to another page to reset the session timeout or will a postback also do it? This is important as we have a few pages that a user
1
1131
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 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.
11
3662
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 method has the WebMethodAttribute.EnableSession set to true. When I run the test page the session is maintained. However, using a console application, in between setting the string value and attempting to
0
9722
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
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10378
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
10121
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
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
7664
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
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4333
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
3
3015
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.