C# 为什么设置shadowCopyBinAssemblies=";假;没有效果?
我正在尝试关闭IIS中的卷影复制,以提高生产中的性能 但是在我的web.config中添加它没有效果。这是我的web.configC# 为什么设置shadowCopyBinAssemblies=";假;没有效果?,c#,asp.net,iis,C#,Asp.net,Iis,我正在尝试关闭IIS中的卷影复制,以提高生产中的性能 但是在我的web.config中添加它没有效果。这是我的web.config <?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" />
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<hostingEnvironment shadowCopyBinAssemblies="false" />
</system.web>
</configuration>
当我第一次点击URL时,它会花费同样长的时间
文件仍显示在中
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\临时ASP.NET文件
因此,它似乎没有任何效果
IIS 7.5和Windows 7。我正在用一个小小的Hello World ASPX页面进行测试。
你知道为什么这样不行吗?是否在某个地方覆盖了此设置?该目录中的结果是什么?根据您使用的项目类型,它可能仍然需要编译实际的
.aspx
文件并将该程序集放在某个地方。请记住,此设置会影响bin
文件夹中的程序集,而不是强制创建的任何其他程序集。你说得对,Damien。在那里结束的文件不包括web app bin目录中的DLL,但那里还有许多其他文件。