【发布时间】:2008-11-11 15:08:43
【问题描述】:
今天我偶然发现了 hostingEnvironment 标签中的 shadowCopyBinAssemblies 选项。
显然这个属性是一个 web.config (system.web) 配置布尔选项,指示 Bin 目录中应用程序的程序集是否被影子复制到应用程序的 ASP.NET 临时文件目录.
<hostingEnvironment shadowCopyBinAssemblies="false" />
一位同事 had to enable this setting 因为(仅)在他的开发机器上,他经常在 Web 浏览器中遇到 ASP.NET 错误:
Cannot create shadow copy assembly file dll when that file already exists.
在 Visual Studio 2008 中编译特定的 Web 项目并打开一个页面。
所以现在我的问题是:我可以在生产环境中保留此设置还是会损害性能和/或产生其他问题?
谢谢!
【问题讨论】:
标签: asp.net assemblies web-config