长时间运行的进程是否会锁定ASPX页面 [英] Does long running process locks aspx pages

查看:89
本文介绍了长时间运行的进程是否会锁定ASPX页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2010进行开发,并使用ftp 3.10 64位将文件上传到共享服务器,操作系统是Win 8.

I am using VS2010 for development and ftp 3.10 64 bit for Uploading file to shared server, OS is Win 8 .

我已经在dot net 4.0中创建了一个Web应用程序(asp.net Web表单).该应用程序上传了一些文件,发送了电子邮件等.由于要上传大文件,因此我已将执行超时设为1小时.

I have created a web application (asp.net web form) in dot net 4.0. The application uploads some file,sends email etc.As large file will be uploaded I had given executiontimeout as 1 hour.

现在一切正常,但是我使用FTP更新了站点,但是当我这样做时却遇到了错误

Now every thing was running smooth but I updated the site using FTP but when I am doing this I am getting Error

响应:550该进程无法访问文件,因为该文件正在被另一个进程使用. 错误:严重的文件传输错误

Response: 550 The process cannot access the file because it is being used by another process. Error: Critical file transfer error

所以我想知道如果我停止某个站点的运行并使用FTP上载我的文件,那么如果有任何进程在运行,它是否会在网站上停止 和 长时间运行的进程是否会锁定aspx页面

So I want to known that If i stop a site from running and use FTP to upload my file If any process is running does it stop with website or not and Does long running process locks aspx pages

请帮助

推荐答案

有两个问题.我会回答如果有任何进程在运行,它是否会在网站上停止?"

So two questions. I'll answer "If any process is running does it stop with website or not?"

这取决于您如何停止.通常,与您的站点关联的应用程序池将尝试完全关闭. IIS将停止将任何更多请求发送到应用程序池,并允许现有请求完成.完成后,apppool将关闭.如果您可以使用共享主机采取更多实质性措施,我会感到惊讶.

That depends how you stop it. Generally, the application pool associated with your site will try to shut down cleanly. IIS will stop any more requests being sent to the app pool and existing requests will be allowed to finish. Once they've finished, the apppool will shut down. I'd be surprised if you could take more substantial action using a shared host.

您是否真的希望您的代码在任何随机点处终止?听起来对我来说很危险...

Would you really want you code to be terminated at any random point? Sounds dangerous to me...

这篇关于长时间运行的进程是否会锁定ASPX页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆