joo*_*oop 5 web-config asp.net-4.0 iis-7.5
每当我将此行添加到system.webServer部分中的web.config时:
<serverRuntime />
Run Code Online (Sandbox Code Playgroud)
使用我们没有属性,IIS 7.5只提供空白页面而不是网站.我使用IIS创建了一个新的空Web应用程序,并将该行添加到web.config; 空白页.
我究竟做错了什么?
Han*_*ney 21
我有这个确切的问题并通过解锁serverRuntimeapplicationHost配置的部分解决了它.在控制台上运行的命令:
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/serverRuntime
Run Code Online (Sandbox Code Playgroud)
所以你实际上是将它添加到你的web配置?
<location path="Default Web Site">
<system.webServer>
<serverRuntime enabled="true"
frequentHitThreshold="1"
frequentHitTimePeriod="00:00:20" />
</system.webServer>
</location>
Run Code Online (Sandbox Code Playgroud)
要记住几件重要的事情......
进一步阅读MSDN
http://msdn.microsoft.com/en-us/library/aa347568%28VS.90%29.aspx
| 归档时间: |
|
| 查看次数: |
6961 次 |
| 最近记录: |