简体   繁体   English

为什么我用TortoiseSVN更新代码时ASP.Net会锁定

[英]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.

相关问题 为什么我在asp.net到Z78E6221F6393D1356681DB398F14CE2EF2919ZFFEEE708代码中使用Response.Write()方法时页面中的css样式发生变化? - Why does the css style in the page change when I use the Response.Write() method in asp.net to output the javascript code? 在 ASP.NET MVC 4 中重建后视图中的代码不会更新 - Code in view does not update after rebuild in ASP.NET MVC 4 为什么EventHandler不会在以下asp.net代码中触发? - Why does the EventHandler not fire in the following asp.net code? 为什么我的asp.net应用程序在删除文件夹时会回收? - Why does my asp.net application recycle when I delete a folder? 为什么在使用母版页时此JS失败? (ASP.NET) - Why does this JS fail when I use a master page? (ASP.NET) 为什么在我的 ASP.NET 注册表单上按下提交时没有任何反应? - Why does nothing happen when I press submit on my ASP.NET registration form? 当我在运行时实例化ASP.NET用户控件时,为什么它会忽略ASCX文件? - When I instantiate an ASP.NET usercontrol at runtime, why does it ignore the ASCX file? 在ASP.NET中运行时创建动态锁 - Creating Dynamic Locks at Runtime in ASP.NET ASP.Net应用程序锁定 - ASP.Net application locks up 当我更新另一个gridview时,ASP.NET Boundfield发生更改 - ASP.NET Boundfield changes when I update another gridview
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM