我有这个网络配置:
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<!--maxRequestLength = maximum upload size =- 4096KB = 4MB-->
<httpRuntime maxRequestLength="409600000"/>
</system.web>
<system.webServer>
<rewrite>
<rules>
<!--The following rule will only work when published-->
<rule name="Construction" stopProcessing="true">
<match url="Construction\.aspx" negate="true"/>
<conditions>
<!-- dont ignore my own ip -->
<add input="{REMOTE_ADDR}" pattern="XXX.XXX.XXX.XXX" negate="true"/>
</conditions>
<action type="Redirect" url="Construction.aspx" redirectType="Found"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
它适用于我本地机器上的 IIS,但在其他机器上,我最终遇到以下问题:
rewrite
包含该部分时出现 500 错误。当我删除它时,一切正常。- 我无法将调试输出打印到屏幕上。
它出什么问题了?