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

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

博客园 - Du大调

mysql 8 忘记密码 发生系统错误 1067 一些有特色的国外电子商务网站 margin在IE6下的问题。 4月4号参加北京俱乐部活动的收获 转化率极高的十个网站 (转)获取网购订单的12个技巧 利用委托异步发送邮件 每日词汇 每日英语 词汇 不是可以识别的 内置函数名称 电子商务网站用户体验--根据用户的习惯进行推荐 异常详细信息: System.Data.SqlClient.SqlException:过程或函数 需要参数 但未提供该参数。 不是有效的虚拟路径,未能映射路径 在IIS中设置Gzip页面压缩 刚做项目的时候 silverlight 不可 silverlight error message,ErrorCode:2254 ErrorCode: 1001 响应在此上下文中不可用
使用aspnet_regsql.exe 创建ASPState数据库,用来保存session会话
Du大调 · 2009-01-06 · via 博客园 - Du大调

因为公司有多台服务器,所以session要保存在sql server上,因此要在数据库中建立存放session的数据库ASPState,

在C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727下找到了生成ASPState的sql:InstallSqlState.sql

马上打开,放到查询分析器里执行,怪了,在这里出问题了,报出了如下错误:

 
-----------------------------------------
Starting execution of InstallSqlState.SQL
-----------------------------------------
--------------------------------------------------
Note:                                            
Do not run this file manually.                   
You should use aspnet_regsql.exe to install      
and uninstall SQL session state.                 
 
Run 'aspnet_regsql.exe -?' for details.        
--------------------------------------------------
If the job does not exist, an error from msdb.dbo.sp_delete_job is expected.
消息 14262,级别 16,状态 1,过程 sp_verify_job_identifiers,第 67 行
指定的 @job_name ('ASPState_Job_DeleteExpiredSessions')不存在。
If the category already exists, an error from msdb.dbo.sp_add_category is expected.
消息 14261,级别 16,状态 1,过程 sp_add_category,第 32 行
指定的 @name ('[Uncategorized (Local)]')已存在。
 
------------------------------------------
Completed execution of InstallSqlState.SQL
------------------------------------------

这段里说要运行aspnet_regsql.exe 来创建,为什么要这样搞呢?

于是打开VS2005命令提示,输入:aspnet_regsql.exe -?

出现了aspnet_regsql.exe的说明,往下拉会看到"会话状态选项",有一命令:-ssadd(Session state add?) 解释说:添加对 sqlserver 模式会话状态的支持.

估计就是这个了,输入: aspnet_regsql.exe -ssadd

提示:请指定用户ID,或对受信任的连接使用-E

输入如下:aspnet_regsql.exe -ssadd -E

成功.

也可以指定用户名:aspnet_regsql.exe -ssadd -U sa

会提示输入密码.正确输入后也会执行成功.

删除该功能的话执行aspnet_regsql.exe -ssremove -E

就OK了.

本博客内容公供学习研究用,和工作内容无关.