Unable to use SQL Server because ASP.NET version 2.0 Session State is not installed on the SQL serve
2014-01-09 16:48
1061 查看
原帖地址:http://www.power-programming.co.uk/post/2010/11/12/Unable-to-use-SQL-Server-because-ASPNET-version-20-Session-State-is-not-installed-on-the-SQL-server-Please-install-ASPNET-Session-State-SQL-Server-version-20-or-above.aspx
I installed a new aspstate database on a virgin server, and we kept getting the following 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'd installed it from the Version 2 framework, and got successful response
C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regsql.exe -ssadd -sstype c -d ASPState -S eduat1sql1 -E
Start adding session state.
....
Finished.
To use this custom session state database in your web application, please specify it in the configuration file by using the 'allowCustomSqlDatabase' and 'sqlConnectionString' attributes in the <system.web>\<sessionState> section.
You will note, that I have used the integrated switch, this is because I don't want the ultimate ASPNET user to have database creation permissions. Initially, I have the ASPNET database user db_datareader
and db_datawriter roles and I think this is where the issue arose. I removed this permissions and allocated db_owner role and all is working!
I installed a new aspstate database on a virgin server, and we kept getting the following 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'd installed it from the Version 2 framework, and got successful response
C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regsql.exe -ssadd -sstype c -d ASPState -S eduat1sql1 -E
Start adding session state.
....
Finished.
To use this custom session state database in your web application, please specify it in the configuration file by using the 'allowCustomSqlDatabase' and 'sqlConnectionString' attributes in the <system.web>\<sessionState> section.
You will note, that I have used the integrated switch, this is because I don't want the ultimate ASPNET user to have database creation permissions. Initially, I have the ASPNET database user db_datareader
and db_datawriter roles and I think this is where the issue arose. I removed this permissions and allocated db_owner role and all is working!
相关文章推荐
- ASP.Net DebugError解决方案[转]:Unable to start debugging on the web server.Debugging failes because integrated Windows authentication is not enabled.
- [原]Unable to start debugging on the web server.Debugging failes because integrated Windows authentication is not enabled.
- Unable to start debugging on the web server. Debugging failed because integrated windows authentication is not enabled.
- Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
- Unable to start debugging on the web server. The project is not configured to be debugged.
- [VB.NET]Unable to start debugging. The debugger is not properly installed 重裝不了,修復安裝也安裝不了
- HOW TO: Configure SQL Server to Store ASP.NET Session State
- 解决asp.net error: Operation is not valid due to the current state of the object
- Silverlight无法启动调试,错误“Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matching version.” 解决办法
- A ScriptManager is required on the page to use ASP.NET AJAX Script Components
- Unable to start debugging on the web server. The project is not configured to be debugged.
- ADO.NET Entity Framework: The version of SQL Server in use does not support datatype 'datetime2'
- Basic Sample - How To Keep ASP.NET ViewState On The Server
- 错误Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matching version
- ASP.NET4.0错误:Operation is not valid due to the current state of the object
- Unable to start debugging on the web server. The IIS worker process for the launched URL is not currently running
- Cannot connect to WMI provider.You do not have permission or the server is unreachable.Note that you can only manager SQL Server 2005 and later version with SQL Server Configuration Manager.Invalid namespace [0x8004100e]
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- 错误Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matching version.