StackOverflowException 好像是 font awesome 引起的?
StackOverflowException seems to be caused by font awesome?
好吧,这有点奇怪。让我解释一下情况。
我们有一个在 64 位环境中 运行 的网站。客户端的网站一切正常,但是当我们 运行 Visual Studio 中的网站时,它会抛出 WhosebugException。
我们在 Visual Studio 2013 年和 Visual Studio 2015 年尝试过。结果相同。
我们在 Debug 或 Release 模式下尝试,结果相同。
我们的网站没有递归。
我发现导致问题的行是这样的:
<td><i class="fa fa-lock"></td>
如果我评论每一个对 font awesome 的引用,网页都可以正常工作,也不例外。但是,如果我提到 font awesome,我有例外。
这是网页的样子。
@using Isaac.VTWeb.Models.SecurityConfig;
@using Isaac.VTWeb.Views.SecurityConfig;
@model IList<LocalUserModel>
<ul class="breadcrumb">
<li class="active"><a href="@Url.Action("Index", "SecurityConfig")">@SecurityConfigResource.Configuration</a> <span class="divider">/</span></li>
</ul>
<h2>@SecurityConfigResource.ManageUsers</h2>
<div>
<a class="btn btn-primary" href="@Url.Action("AddLocalUser", "SecurityConfig")">@SecurityConfigResource.AddUserTitle</a>
</div>
<div>
<table class="table table-condensed table-hover">
<thead>
<tr>
<th> </th>
<th>@SecurityConfigResource.Username</th>
<th>@SecurityConfigResource.FirstName</th>
<th>@SecurityConfigResource.LastName</th>
<th>@SecurityConfigResource.Actions</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<!--This is the line that cases the WhosebugException. If I comment the line, everything works fine.-->
<td><i class="fa fa-lock"></td>
<td>@item.Username</td>
<td>@item.FirstName</td>
<td>@item.LastName</td>
</tr>
}
</tbody>
</table>
</div>
"Model" 中大约有 340 项,因此 foreach 执行了大约 340 次。
我们使用 jQuery 版本 1.5.5,bootstrap 1.3.2 和 font awesome 4.6.3.
异常发生在System.Web.dll,发生时我没有callStack。
有什么想法吗??
您需要关闭 <i>
标签
<i class="fa fa-exclamation-circle"></i>
好吧,这有点奇怪。让我解释一下情况。
我们有一个在 64 位环境中 运行 的网站。客户端的网站一切正常,但是当我们 运行 Visual Studio 中的网站时,它会抛出 WhosebugException。
我们在 Visual Studio 2013 年和 Visual Studio 2015 年尝试过。结果相同。
我们在 Debug 或 Release 模式下尝试,结果相同。
我们的网站没有递归。
我发现导致问题的行是这样的:
<td><i class="fa fa-lock"></td>
如果我评论每一个对 font awesome 的引用,网页都可以正常工作,也不例外。但是,如果我提到 font awesome,我有例外。
这是网页的样子。
@using Isaac.VTWeb.Models.SecurityConfig;
@using Isaac.VTWeb.Views.SecurityConfig;
@model IList<LocalUserModel>
<ul class="breadcrumb">
<li class="active"><a href="@Url.Action("Index", "SecurityConfig")">@SecurityConfigResource.Configuration</a> <span class="divider">/</span></li>
</ul>
<h2>@SecurityConfigResource.ManageUsers</h2>
<div>
<a class="btn btn-primary" href="@Url.Action("AddLocalUser", "SecurityConfig")">@SecurityConfigResource.AddUserTitle</a>
</div>
<div>
<table class="table table-condensed table-hover">
<thead>
<tr>
<th> </th>
<th>@SecurityConfigResource.Username</th>
<th>@SecurityConfigResource.FirstName</th>
<th>@SecurityConfigResource.LastName</th>
<th>@SecurityConfigResource.Actions</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<!--This is the line that cases the WhosebugException. If I comment the line, everything works fine.-->
<td><i class="fa fa-lock"></td>
<td>@item.Username</td>
<td>@item.FirstName</td>
<td>@item.LastName</td>
</tr>
}
</tbody>
</table>
</div>
"Model" 中大约有 340 项,因此 foreach 执行了大约 340 次。
我们使用 jQuery 版本 1.5.5,bootstrap 1.3.2 和 font awesome 4.6.3.
异常发生在System.Web.dll,发生时我没有callStack。
有什么想法吗??
您需要关闭 <i>
标签
<i class="fa fa-exclamation-circle"></i>