惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky
MyScale Blog
MyScale Blog
Jina AI
Jina AI
B
Blog
Microsoft Security Blog
Microsoft Security Blog
T
Troy Hunt's Blog
博客园_首页
T
Threatpost
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
GbyAI
GbyAI
T
Tenable Blog
B
Blog RSS Feed
S
Securelist
T
Threat Research - Cisco Blogs
P
Privacy International News Feed
P
Proofpoint News Feed
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
C
CXSECURITY Database RSS Feed - CXSecurity.com
罗磊的独立博客
AWS News Blog
AWS News Blog
V
V2EX
宝玉的分享
宝玉的分享
J
Java Code Geeks
小众软件
小众软件
Spread Privacy
Spread Privacy
腾讯CDC
Google Online Security Blog
Google Online Security Blog
月光博客
月光博客
V
Visual Studio Blog
The Hacker News
The Hacker News
C
CERT Recently Published Vulnerability Notes
Project Zero
Project Zero
Know Your Adversary
Know Your Adversary
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
Apple Machine Learning Research
Apple Machine Learning Research
NISL@THU
NISL@THU
C
Check Point Blog
Webroot Blog
Webroot Blog
D
DataBreaches.Net
Cloudbric
Cloudbric
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家

博客园 - Box

ASP.NET 配置文件层次结构和继承(转) NetAdvantage 2007 CLR1x ASPNET 注册码 SN C# 处理xml(转) 关于版权声明的写法(转) 编写优秀技术文档的技巧(转) 教你怎样做项目开发总结报告(转) 如何编写高质量软件需求说明书(转) 如何编写企业解决方案书(转) 如何编写高质量的需求(转) 如何写好测试报告(转) 如何写系统分析书(转) Macromedia Captivate 使用手册(转) 改变你一生的五句话 (转) Windows 使用FTP批处理脚本(转) professional C# 2005 下载地址 Windows 安装组件注意事项 SQLServer数据库完整迁移(转) 让DataGridView 带*号的一行不显示! 计算字段.
处理SPS错误:只有在配置文件或 Page 指令中将启用会话状态设置为真时,才可以使用会话状态 - Box
Box · 2007-03-09 · via 博客园 - Box

1、C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\LAYOUTS目录里的 web.config文件里添加:
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>

加在<httpModules>里,加完之后的<httpModules>应该是这样的:
    <httpModules>
      <clear />
      <add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
      <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
       <add name="Session" type="System.Web.SessionState.SessionStateModule"/>
    </httpModules>
2、在对应的web application中web.config中修改:
<pages enableSessionState="false" enableViewState="true" enableViewStateMac="true" validateRequest="false" />
改为:
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />