Reputation: 19587
I am trying to store session in SQL Server 2008 on shared webhosting. What I did until now is:
aspnet_regsql -ssadd
-sstype c -d SessionDb -sqlexportonly c:\SessionScript.sql
(using aspnet_regsq.exe)SessionScript.sql
against the database.Two tables were created (ASPStateTempApplications
and ASPStateTempSessions
) as well as all the necessary stored procedures.
My web.config
file looks like this:
<sessionState
mode="SQLServer"
allowCustomSqlDatabase="true"
sqlConnectionString="server;Initial Catalog=db;User ID=usr;Password=pwd"
cookieless="false" timeout="20" />
finally when trying to run the site I an getting this error:
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.
I checked everywhere on the internet but didnt find any solution that can help me with this problem.
Upvotes: 1
Views: 374
Reputation: 280590
You need to contact the webhost - they will need to install ASPState for you (but I'll bet they won't do it). You may have to use InProc or another solution instead. Do you have multiple web servers, or just one?
Upvotes: 1