我創建了一個名爲404.aspx的404錯誤頁面,當我手動調用它時,它非常棒。 但在web.config和IIS 6.0中設置「自定義錯誤」後。它不能正常工作。IIS 6.0和ASPX 404自定義錯誤不起作用
例如,如果我以錯誤的方式鍵入URL,它將不起作用,並出現如下所示的消息。
XML Parsing Error: not well-formed
Location: **http://domain/anything** (without an extension)
Line Number 1, Column 2:<%@ page language="C#" masterpagefile="~/Public.master" autoeventwireup="true" inherits="_404, App_We
而且,如果我輸入網址這樣的:HTTP:年底//domain/anything.ASPX(添加在.aspx),它會重定向到自定義錯誤404.aspx正確工作正常。
我該怎麼做才能做到這一點?
莫非與此有關:HTTP://計算器。 com/questions/3704561/custom-error-pages-in-iis-6-0-using-aspx-pages – Castrohenge 2010-10-05 21:25:00
同樣的作者也是。 – mxmissile 2010-10-05 21:39:31