Session state has been disabled for ASP.NET.
2013-12-17 14:49
585 查看
Session state has been disabled for ASP.NET.The Report Viewer control requires that session state be enabled in local mode
While i was trying to setup some reports on a SPF 2010 site.
After trying to add a Sql Reporting Webpart i get the error:
Session state has been disabled for ASP.NET.
The Report Viewer control requires that session state be enabled in local mode
I never came across that error before when using RSWebaprts in Sharepoint 2007:)
But i think is related to ASP.NET sessions state:(
Any to fix it you would have to start to make sure the SharePoint Server ASP.NET Session State Service is enabled.
Unfortunately in Sharepiint SPF2010 and SP 2010 you would have to do it using PowerShell
By doing : Enable-SPSessionStateService -Defaultprovision
PS C:\> PSSnapin - Shows you all the PS Snapins
PS C:\> Add-PSSnapin "Microsoft.SharePoint.PowerShell" -- Adds the Sharepoint PS Snapin
PS C:\> get-command -Noun SP* -- Show all SP cmdlets
PS C:\> Add-SPShellAdmin -- (If you get error regarding the access to the farm you use this command to add an acct to able to run the Shell admin)
PS C:\> Get-Help Enable-SPSessionStateService - Shows helpp for Enable-SPSessionStateService
PS C:\> Enable-SPSessionStateService -Defaultprovision - (enables/activates SPSessionStateService) you have more options available when you run the Get-Help Enable-SPSessionStateService
The Enable-SPSessionStateService cmdlet creates a session state database, installs the ASP.NET session state schema, and updates the Web.config files on the farm to turn on the session state service.
If the DefaultProvision form of the command is used, all default settings are used. These are:
DatabaseName = “SessionStateService_<GUID>”
DatabaseServer = the same database server as the SharePoint 2010 configuration database
DatabaseCredentials = Integrated Windows Authentication
After running the cmd you should see the SharePoint Server ASP.NET Session State Service started in your service applications in the Central Admin Site.
While i was trying to setup some reports on a SPF 2010 site.
After trying to add a Sql Reporting Webpart i get the error:
Session state has been disabled for ASP.NET.
The Report Viewer control requires that session state be enabled in local mode
I never came across that error before when using RSWebaprts in Sharepoint 2007:)
But i think is related to ASP.NET sessions state:(
Any to fix it you would have to start to make sure the SharePoint Server ASP.NET Session State Service is enabled.
Unfortunately in Sharepiint SPF2010 and SP 2010 you would have to do it using PowerShell
By doing : Enable-SPSessionStateService -Defaultprovision
PS C:\> PSSnapin - Shows you all the PS Snapins
PS C:\> Add-PSSnapin "Microsoft.SharePoint.PowerShell" -- Adds the Sharepoint PS Snapin
PS C:\> get-command -Noun SP* -- Show all SP cmdlets
PS C:\> Add-SPShellAdmin -- (If you get error regarding the access to the farm you use this command to add an acct to able to run the Shell admin)
PS C:\> Get-Help Enable-SPSessionStateService - Shows helpp for Enable-SPSessionStateService
PS C:\> Enable-SPSessionStateService -Defaultprovision - (enables/activates SPSessionStateService) you have more options available when you run the Get-Help Enable-SPSessionStateService
The Enable-SPSessionStateService cmdlet creates a session state database, installs the ASP.NET session state schema, and updates the Web.config files on the farm to turn on the session state service.
If the DefaultProvision form of the command is used, all default settings are used. These are:
DatabaseName = “SessionStateService_<GUID>”
DatabaseServer = the same database server as the SharePoint 2010 configuration database
DatabaseCredentials = Integrated Windows Authentication
After running the cmd you should see the SharePoint Server ASP.NET Session State Service started in your service applications in the Central Admin Site.
相关文章推荐
- using sql server or sql azure for session state store in asp.net
- [转]ASP.NET HttpModule for handling session end with StateServer
- Using SQL Server for asp.net session state
- Asp.net中Application Session Cookie ViewState Cache Hidden 区别
- ASP.NET SessionState 解惑
- A new version of the ASP.NET Ajax Library has been released
- asp.net IRequiresSessionState
- 如何: 配置到 Store ASP.NET Session State SQL Server
- assert() has been disabled for security reasons in php
- asp.net基于StateServer的二级域名共享session
- 如何用ASP.NET里的State Management Database来储存Session Variable。
- ASP.NET保存信息总结(Application、Session、Cookie、ViewState和Cache等) .
- 深入理解asp.net SessionState
- 从ASP.NET 会话状态谈IReadOnlySessionState,IHttpSessionState,IRequiresSessionState
- ASP.NET Application,Session,Cookie和ViewState等对象用法和区别 (转)
- asp.net SessionState模式的配置及使用
- Asp.net中Application Session Cookie ViewState Cache Hidden
- lnmp -- 解决Warning: scandir() has been disabled for security reasons in…的问题
- ASP.NET 负载均衡 StateServer Session共享问题(经验记录)
- 自定义ASP.net 2.0 Membership的步骤,和entry 'AspNetSqlMembershipProvider' has already been added错误的解决