2015-11-18 84 views

回答

0

對不起,我快速解答:(供參考,這對我來說是什麼在起作用:

在web.config中:

<httpErrors errorMode="Custom" existingResponse="Replace"> 
 
    <remove statusCode="404" subStatusCode="-1" /> 
 
    <error statusCode="404" path="/Home/NotFound" responseMode="ExecuteURL"/> 
 
</httpErrors> 
 

 
ALSO REMOVE THE COLON FROM THE INVALID CHARACTERS LIST, THIS WAS ALSO BOTHERING ME 
 

 
<httpRuntime targetFramework="4.5.1" requestPathInvalidCharacters="&lt;,&gt;,*,%,&amp;,\,?"/>