1.右键以管理员身份打开“SharePoint Management Shell”
2.执行以下命令:
Enable-SPSessionStateService -DefaultProvision
3.用记事本打开网站的web.config
4.在<system.web><httpModules>节下添加如下节点:
<add name = "Session" type="System.Web.SessionState.SessionStateModule" />
5.在记事本中搜索“pages enableSessionState”,修改<pages enableSessionState="false"为<pages enableSessionState="true"