异常挂起会话后是否可以取消远程 IIS ASP 服务器的锁定?
我一直在用经典 ASP 编写一个访问 2 个 Access 数据库的应用程序。我正在处理的一个页面抛出异常,这在开发过程中是正常的,不会导致持久问题。然而这一次,在异常发生后,任何打开任一数据库的尝试都会冻结会话并导致无限的脚本超时。如果我删除会话 cookie,我就能够再次访问 ASP 页面,直到我再次尝试打开数据库。
抛出异常时打开的数据库保持打开状态。有一个 LDB 锁定文件,尽管我可以使用 FTP 下载 MDB 文件,但我无法重命名或删除 LDB 或 MDB 文件。第二个访问数据库未打开,但任何读取该数据库的尝试也会挂起会话。
访问 HTML 页面没问题。
该网站由 Hostway 托管,他们不感兴趣(“编码问题=你的问题”,即使它让我的网站陷入困境,我怀疑直到下一次重新启动,无论什么时候)。
以下是引发异常的相关 ASP 页面的转储:
Active Server Pages error 'ASP 0115'
Unexpected error
/translatestats.asp
A trappable error (C0000005) occurred in an external object. The script cannot continue running.
Active Server Pages error 'ASP 0240'
Script Engine Exception
/translatestats.asp
A ScriptEngine threw exception 'C0000005' in 'IActiveScript::Close()' from 'CActiveScriptEngine::FinalRelease()'.
有什么方法可以远程解除站点/强制关闭数据库吗?
I have been coding an app in classic ASP that accesses 2 Access databases. I had a page I was working on throw an exception, which is normal during development and causes no lasting problems. This time however, after the exception any attempt to open either of the databases would freeze the session with an infinite script timeout. If I delete the session cookie I an able to access ASP pages again until I try to open the database again.
The database that was open when the exception was thrown is left open. There is a LDB lock file and I can't rename or delete either the LDB or MDB file, though I can download the MDB file with FTP. The 2nd access database is not open but any attempt to read this also hangs the session.
Accessing HTML pages is fine.
The site is hosted with Hostway and they are not interested ("Coding problem = Your problem" even though it leaves my site dead in the water, I suspect until the next reboot, whenever that might be).
Here is the dump from the relevant ASP page that threw the exception:
Active Server Pages error 'ASP 0115'
Unexpected error
/translatestats.asp
A trappable error (C0000005) occurred in an external object. The script cannot continue running.
Active Server Pages error 'ASP 0240'
Script Engine Exception
/translatestats.asp
A ScriptEngine threw exception 'C0000005' in 'IActiveScript::Close()' from 'CActiveScriptEngine::FinalRelease()'.
Is there any way I can unstick the site / force close the database remotely ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IIS6 至少每 26 小时重新启动一次应用程序池。
(https://serverfault.com/questions/108898/restart-iis-app-自动池)
尝试一些重启脚本
http://forums.iis.net/t/955382.aspx
IIS6 at least restart app pools every 26 hours.
(https://serverfault.com/questions/108898/restart-iis-app-pool-automatically)
try this for some restart script
http://forums.iis.net/t/955382.aspx
托管您网站的进程已进入未知状态。异常 C0000005 是访问冲突。
恢复这种情况的唯一方法是结束该进程,在 IIS 中,这意味着回收应用程序运行的应用程序池。
The process hosting your site has entered into an unknown state. The exception C0000005 is an access violation.
The only way to recover this situation is to end the process which in IIS speak means to recycle the application pool that your app runs in.