YanoRyuichi.com/
Wiki
Blog
GitHub
Sandbox
開始行:
* customErrors設定 [#he1039df]
** customErrors設定とは? [#t2cd993d]
Web.configでcustomErrorsを有効にする事で、例外発生時(コ...
** customErrors設定例 [#p2f75bb2]
<configuration>
<system.web>
<customErrors defaultRedirect="~/Error/" mode="Remot...
<error statusCode="404" redirect="~/Error/NotFound...
</customErrors>
</system.web>
</configuration>
上の場合、ErrorクラスとNotFoundメソッドを自作する必要があ...
*** 参考 [#vd0ae1b0]
http://msdn.microsoft.com/ja-jp/library/h0hfz6fc(v=vs.100...
** customErrorsより優先されるエラー [#lac5db3a]
- コントローラー内でエラーが発生した場合、OnException()メ...
- デフォルトでは、return View("Error")されて、Views\Share...
- また、全てのエラーを一括でキャッチするには、Gobal.asax...
- customErrorsは、上のようなOnException()やApplication_Er...
** customErrorsとhttpErrors [#f4e61f93]
http://stackoverflow.com/questions/2480006/what-is-the-di...
終了行:
* customErrors設定 [#he1039df]
** customErrors設定とは? [#t2cd993d]
Web.configでcustomErrorsを有効にする事で、例外発生時(コ...
** customErrors設定例 [#p2f75bb2]
<configuration>
<system.web>
<customErrors defaultRedirect="~/Error/" mode="Remot...
<error statusCode="404" redirect="~/Error/NotFound...
</customErrors>
</system.web>
</configuration>
上の場合、ErrorクラスとNotFoundメソッドを自作する必要があ...
*** 参考 [#vd0ae1b0]
http://msdn.microsoft.com/ja-jp/library/h0hfz6fc(v=vs.100...
** customErrorsより優先されるエラー [#lac5db3a]
- コントローラー内でエラーが発生した場合、OnException()メ...
- デフォルトでは、return View("Error")されて、Views\Share...
- また、全てのエラーを一括でキャッチするには、Gobal.asax...
- customErrorsは、上のようなOnException()やApplication_Er...
** customErrorsとhttpErrors [#f4e61f93]
http://stackoverflow.com/questions/2480006/what-is-the-di...
ページ名: