0
我執行刪除所有IIS錯誤信息如下:通過<httpErrors>在web.config中
<httpErrors errorMode="Custom">
<remove statusCode="404" />
<error statusCode="404" path="~/Error" responseMode="ExecuteURL" prefixLanguageFilePath="" />
<remove statusCode="500" />
<error statusCode="500" path="~/Error" responseMode="ExecuteURL" prefixLanguageFilePath="" />
</httpErrors>
不過,我想刪除所有的IIS錯誤頁面,因而沒有我的內部細節上404曝光,403,500等我試過使用:
<remove statusCode="*" />
無濟於事。這裏有沒有標準的解決方案?
嘗試' '作爲''的第一個子節點刪除所有現有的''節點。 –