ASP.Net cannot create/shadow copy in PRODUCTION

穿精又带淫゛_ 提交于 2019-12-03 05:17:34

We've finally solved our 'Cannot create/shadow copy' problems. The problem turned out to be due to the timing of our AppPool recycle & our directory copies. It worked something like this:

  1. copy main website to: server\directory
  2. recycle app pool for website
  3. copy small admin site to server\otherdirectory

The problem was that our admin site was a virtual directory of the main site and used the same AppPool. This worked fine under .NET 2.0, but I think we can pinpoint the failures to when we upgraded to .NET 4.0. Seems to run just fine if we do it this way instead:

  1. copy main website to: server\directory
  2. copy small admin site to server\otherdirectory
  3. recycle app pool for website
Jeff

We found that excluding the temporary asp.net folders from indexing (and virus scanning) eliminated our shadow copy errors.

Example PowerShell script for the indexing service on Windows Server 2003:

Set-ItemProperty –path

HKLM:\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs\Web\Scopes -name “C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files” -value ",,4"

Restart-Service cisvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!