自动生成的 PrecompiledApp.config 让我有些头疼。我自动部署旧网站,50% 的时间在部署时收到此错误:
System.IO.IOException: The process cannot access the file '\\web.prod.local\c$\Sites\Website\PrecompiledApp.config' because it is being used by another process.
内容:
<precompiledApp version="2" updatable="true"/>
据我所知,网站使用一些卷影复制功能来允许更新网站“运行时”,例如 app.config 等。但是这个 1 文件似乎是一个例外。
除了在部署时停止网站之外,任何人都可以提出解决方法吗?
亲切的问候