Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Asp.net 2.0 session state confusion

Reply
Thread Tools

Asp.net 2.0 session state confusion

 
 
dchinn@nwlink.com
Guest
Posts: n/a
 
      03-20-2007
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWRsYWkgTWFzY2hpYWNo?=
Guest
Posts: n/a
 
      03-21-2007
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/


"(E-Mail Removed)" 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
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 2.0 Session State and ASP.NET 1.1 Session State jnickfl1 ASP .Net 0 09-18-2006 03:23 PM
Unable to make the session state request to the session state server Maciek ASP .Net 0 09-15-2005 08:49 PM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
Unable to make the session state request to the session state server Not Liking Dot Net Today ASP .Net 0 04-21-2004 11:54 AM
unable to make the session state request to the session state server shamanthakamani ASP .Net 1 11-20-2003 04:51 AM



Advertisments