Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 为什么设置shadowCopyBinAssemblies=";假;没有效果?_C#_Asp.net_Iis - Fatal编程技术网

C# 为什么设置shadowCopyBinAssemblies=";假;没有效果?

C# 为什么设置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" />

我正在尝试关闭IIS中的卷影复制,以提高生产中的性能

但是在我的web.config中添加它没有效果。这是我的web.config

<?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,但那里还有许多其他文件。