Category Archives: Tech
ASP session timeout on IIS 6
with new asp.net 2.0 application. For stability sake, a separate application
pool is built for those asp applications. However, we met the session state
loss problem when running these apps.
To address this problem,
1) disable the recycle time setting in application pool;
2) set timeout after idle to 20 mins;
3) make sure web garden to 1
This is only for in process mode. Out-of-process mode is not affected.
For the underlying mechanics, please refer to David’s blog at
http://blogs.msdn.com/david.wang/archive/2005/09/19/Why_do_I_lose_ASP_Sessio
n_State_on_IIS6.aspx
转移sql server 2k数据库
在记得数据库里用户名/密码的情况下,这是种很简易的方法。
首先将数据文件和日志文件attach到新sql server上
会发现原库里的用户的登录为空,即形成所谓的孤立用户。
在登录里建立原有用户名和密码的登录
通过以下语句将Heihe里的名为Heihe的孤立用户连接到新建的Heihe登录上。
use Heihe
EXEC sp_change_users_login ‘Update_One’, ‘Heihe’, ‘Heihe’
多个用户执行多次即可。
发现log事务日志文件很大,数据文件2G左右,日志超过15G,决定压缩。
使用以下命令:
–截断事务
BACKUP LOG with no_log
use Heihe
DBCC SHRINKFILE (heihe_log)
将之收缩到默认大小
推荐一个桌面日历组件
datalist itemcommand doesn’t fire的问题
spy-bot在扫描过程中死掉的问题
1. 打开spy-bot,不要开始扫描
2. 打开任务管理器,找到spy-bot进程
3. 点右键,设置“关系设置…”,只留cpu 0
4. 运行spy-bot扫描之
原因是piv的超线程造成的
Tortoise SVN与VS.net 2005协同工作
SubVersion 从1.2.3 升级到 1.4.2
Neon 0.26.1
Berkeley DB 4.4.20
OpenSSL 0.9.8b
ZLib 1.2.3
Apache 2.0.58
Python 2.4
libintl 0.14.1 (patched)
将相关软件更新上来
2. 停止apache server
3. 将zip解压缩到 C:Program Filessvn-win32-1.4.2下
4. 将bin/*.so copy到apache下的modules目录下
5. 将bin/*.dll copy到apache的dll目录下
6. 将iconv下的内容copy到apache bin/iconv下
7. 重启 apache server
复杂的xsl导致asp.net 2出现unhandled exception
win server 2003 + iis6 + asp.net 2.0
最早的提示只有事件查看器里的event id 5000,及系统事件里的app pool崩溃。应用windbg等工具,定位到是 asp.net 2.0里的 XmlCompiledTransform 在load 复杂的 iso转换模板时出现。
只google到几个帖子描述类似问题,大致意思是说 XmlCompiledTransform在处理复杂的xsl时可能有问题。但没有找到解决方案。
已经耗了一下午及一晚上的时间,也没有找到方法。
郁闷之极,在xp本机debug时没有任何问题,部署到正式机器(windows 2003)上就不成。
vs 2005新类型无法打开
google之,发现vs需要安装 vs 2005 web application project 1.0。
http://www.getive.com/article.asp?id=79 这则blog有相关下载信息。