Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
I am getting error in asp.net web.config file.
error.
 
Unable to use SQL Server because either ASP.NET version 2.0 Session State is not installed on the SQL server, or ASP.NET does not have permission to run the dbo.TempGetVersion stored procedure. If the ASP.NET Session State schema has not been installed, please install ASP.NET Session State SQL Server version 2.0 or above. If the schema has been installed, please grant execute permission on the dbo.TempGetVersion stored procedure to either the ASP.NET application pool identity, or the Sql Server user specified in the sqlConnectionString attribute.
 
I am using .net framework 4.0
 
where i am confused reg_sql.exe.
Posted 30-Nov-12 23:26pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

When you are trying to use session state mode sqlserver then you need to activate or enable the sqlserver and asp.net connectivity for session maintain in sql server.
 
If connectivity is not installed then you may get the 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."
 
To solve this. do the following steps:
 
(1) Open command prompt and go on following path.
be sure to run this in the correct directory)
 
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regsql.exe -ssadd -sstype c -d DATABASENAME -E
 
(2) change DATABASENAME
to the name of your database. This will begin to start the session state.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.141015.1 | Last Updated 1 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100