v10.10.2024.0701 使用IJsonHost改进Json序列化
大石头 编写于 2024-07-01 08:36:34 大石头 提交于 2024-07-01 08:48:33
X
@model System.Web.Mvc.HandleErrorInfo
@{
    Layout = "_Ace_Layout.cshtml";
    ViewBag.Title = "处理你的请求时出错";

    var context = ViewBag.Context as ExceptionContext;
    var error = context.Exception.Message;
    if (NewLife.Log.XTrace.Debug)
    {
        error = context.Exception.ToString();
    }
    error = error.Replace("--->", "--->" + Environment.NewLine);
}
<div class="panel panel-default">
    <div class="panel-body">
        <strong>
            <pre class="alert alert-danger" role="alert">@error</pre>
        </strong>
    </div>
    <div class="panel-footer">
        <a href="javascript: history.go(-1);" class="btn btn-info">返回上一页</a>
    </div>
</div>