[英]Why does ASP.Net locks when I update code with TortoiseSVN
when I update Adobe Flash/Flex code that is not related to ASP.Net with TortoiseSVN (latest) on a Windows Server 2008, the complete website locks and stop responding. 当我在Windows Server 2008上使用TortoiseSVN(最新)更新与ASP.Net不相关的Adobe Flash / Flex代码时,整个网站将锁定并停止响应。
Is it ASP.Net recompiling my code, is it IIS 7 or is it Tortoise locking the file system? 是ASP.Net重新编译我的代码,是IIS 7还是Tortoise锁定文件系统?
How can I prevent or minimize this if I need to do an update when 1000 users are using the ASP.Net website? 如果有1000个用户使用ASP.Net网站时需要进行更新,如何防止或最小化此问题?
UPDATE: Thanks to Aito and Bryan, I learned more about AppDomain. 更新:感谢Aito和Bryan,我进一步了解了AppDomain。 I found these two links where I discover that folder creation/deletion recycle the AppDomain in ASP.Net 2.
我发现了这两个链接,在这些链接中我发现文件夹创建/删除回收了ASP.Net 2中的AppDomain。
-->If TortoiseSVN creates folders in it's hidden .svn folders hierarchy, I guess it will lock the app! ->如果TortoiseSVN在隐藏的.svn文件夹层次结构中创建文件夹,我想它将锁定该应用程序!
ASP.NET v2.0 - AppDomain recycles, more common than before http://weblogs.asp.net/owscott/archive/2006/02/21/ASP.NET-v2.0- 2D00 -AppDomain-recycles_2C00_-more-common-than-before.aspx ASP.NET 2.0 -应用程序域回收,比以前更常见http://weblogs.asp.net/owscott/archive/2006/02/21/ASP.NET-v2.0- 2D00 -AppDomain-recycles_2C00_ -更多-常见的超before.aspx
FIX: ASP.NET 2.0-connected applications on a Web site may appear to stop responding http://support.microsoft.com/kb/911272 FIX:网站上连接ASP.NET 2.0的应用程序可能似乎停止响应http://support.microsoft.com/kb/911272
I'm testing this. 我正在测试。
Carl 卡尔
I suggest you to separate your repository directory from the directory that IIS use. 我建议您将存储库目录与IIS使用的目录分开。 You can pass the files with a deploy script.
您可以使用部署脚本传递文件。 Your problem perhaps is that the files that you updated are in use, and the conflicts come.
您的问题可能是所更新的文件正在使用中,并且发生冲突。
I hope it helps you. 希望对您有帮助。
Aito is correct... You are causing an appdomain reset by updating files in the application directory. Aito是正确的...您正在通过更新应用程序目录中的文件来导致应用程序域重置。 Use svn export to update to your actual working dir.
使用svn export更新到您的实际工作目录。 But just like any deployment, you need to figure out a strategy for handling this on a live site.
但是,就像任何部署一样,您需要找出一种在实际站点上进行处理的策略。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.