我们最近更新了一个相当大的ASP.NET网站(~1500th alexa流量排名),以使用在Windows Server 2008 R2上运行的VS2010和.NET 4.0
从那时起,当我们部署新版本的网站时,我们偶尔会注意到这篇文章中的相同错误: ASP.Net无法创建/卷影副本 错误消息是:无法创建/卷影复制'xxxx,版本= 4.0.4301.26898,Culture =当该文件已存在时,中性,PublicKeyToken = null'
但是,与该帖子不同,错误仅在我们的生产环境中发生,并且仅在某些服务器上发生.
在我们发布新版本的代码之后,我们回收所有AppPools并且错误开始发生.
另一个AppPool回收似乎解决了这个问题,但我真的想知道如何才能首先避免这个问题?
我使用mercurial和命名分支,并注意到当我创建一个新的默认分支时,default被标记为非活动分支.例如:
C:\data\solutions\test-repo>hg branches
default 0:aeec280e6310
C:\data\solutions\test-repo>hg branch feature-branch
marked working directory as branch feature-branch
C:\data\solutions\test-repo>hg com -m "created new branch"
C:\data\solutions\test-repo>hg branches
feature-branch 1:1cb18d7fa554
default 0:aeec280e6310 (inactive)
Run Code Online (Sandbox Code Playgroud)
这是一个问题,因为我们的部署系统显示了活动的命名分支,可以从中部署.
如何保持默认分支"活动"?