开发者

Where should I set generatePublisherEvidence to false in an asp.net app?

To reduce the loading time this blog suggests we set generatePublisherEvidence to false in the app.config for executables.

<configuration> 
   <runtime> 
      <generatePublisherEvidence enabled="false"/> 
   </runtime> 
</configuration>

Where do开发者_如何学C I set it for web apps? The blog suggests that this does not go to the web.config. Where else should I put it?


The comments on the same blog entry mentions to put it in aspnet.config in C:\windows\Microsoft.NET\Framework\vxxxxx. That's where I put it. Could not find setting specific to one app.


Technically it should go in the machine.config of the IIS server. However it can be put in the web.config, in the <configuration> section - but not as the first element. It must go after <configSections>.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜