在我的 ASP.NET 应用程序中,我有一个定期自动调用来更新数据库的脚本。由于此代码中的错误,对其的多次调用进入了无限循环。
我在共享主机上,所以我不能只重新启动 IIS。我尝试过从主机管理网站“停止”该网站,但没有效果。
由于它们现在已经运行了几个小时,我假设没有配置超时。所以,我想杀死这些“进程”(我认为它实际上只是线程),有没有办法在不联系我的托管公司的情况下做到这一点?
In my ASP.NET application, I have a script that I periodically automatically call to update the database. Due to a bug in this code, several invocation of it entered an infinite loop.
I am on a shared hosting, so I can't just restart IIS. I have tried “stopping” the website from the hosting's management website, but it had no effect.
Since they are running for seveal hours now, I assume there is no timeout configured. So, I would like to kill those “processes” (I assume it's actually just threads), is there a way to do that without contacting my hosting company?
发布评论
评论(3)
更新 web.config 将停止您的应用程序。假设您可以访问该网站的文件。
Updating the web.config will stop your application. Assuming you can access the files of the website.
您是否尝试过停止网站的应用程序池?
Have you tried stopping the application pool for the website?
我正在将我想要杀死的线程中的一些信息记录到文件中。如果文件不存在,代码能够创建该文件,但同样不适用于它所在的文件夹。
因此,我暂时用日志重命名了该文件夹,线程似乎已停止。
I was logging some information from the threads I wanted to kill to a file. The code is able to create the file if it doesn't exists, but the same does not apply, to the folder it's in.
So I temporarily renamed the folder with the log and the threads seem to have stopped.