Bad Url request handle. 404 500 401 etc. in web.config

<customErrors defaultRedirect="url"
              mode="On|Off|RemoteOnly">
     <error. . ./>
</customErrors>
 
 
example
<system.web>
<customErrors  mode="On">
      <error statusCode="404"
             redirect="Registration/EnterPurchaseCode"/>
    </customErrors>
</system.web>
 
 
http://msdn.microsoft.com/zh-cn/library/h0hfz6fc(v=vs.85).aspx

你可能感兴趣的:(Bad Url request handle. 404 500 401 etc. in web.config)