您的位置:首页 > 运维架构 > 网站架构

网站错误处理、运行时间、文件大小、接受和发送编码设定

2016-02-19 18:16 375 查看
自定义错误网页

<!--//自定义错误页面-->
<customErrors defaultRedirect ="~/Error.html" mode="On">
<error statusCode ="404" redirect ="~NotFind.html"/>
</customErrors>


</pre><pre name="code" class="html">    <!--运行时间和文件上传的大小-->
<httpRuntime enable ="true" executionTimeout ="90" maxQueryStringLength ="4096"/>
<!--接受和发送编码-->
<globalization requestEncoding ="utf-8" responseEncoding ="utf-8"/>
<pages controlRenderingCompatibilityVersion="4.0">


exception错误信息处理

[HandleError(ExceptionType=typeof(System.Exception),View="Error")]
public ActionResult  AdminLogin()
{
return View();
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: