“/”应用程序中的服务器错误。

引发类型为“System.OutOfMemoryException”的异常。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。

源错误:


行 210:            <%} %>
行 211:        </dd>
行 212:        <dd id="con_sjist_4" style="<%=JcExpressCore.Country.GetContinent(countryName)=="非洲"?"": "display: none" %>">
行 213:            <%foreach (JcExpressCore.Country country in JcExpressCore.Country.GetByContinent("非洲"))
行 214:              {%>

源文件: d:\website\ex.jctrans.com\Views\Shared\SearchControl.ascx    行: 212

堆栈跟踪:


[OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。]
   System.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IRuntimeMethodInfo method) +0
   System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType, Object target) +55
   System.Linq.Expressions.Compiler.LambdaCompiler.Compile(LambdaExpression lambda, DebugInfoGenerator debugInfoGenerator) +152
   System.Data.Linq.SqlClient.Localizer.MakeLocal(Expression e) +367
   System.Data.Linq.SqlClient.ExpressionVisitor.VisitBinary(BinaryExpression b) +53
   System.Data.Linq.SqlClient.ExpressionVisitor.VisitLambda(LambdaExpression lambda) +23
   System.Data.Linq.SqlClient.ExpressionVisitor.VisitUnary(UnaryExpression u) +24
   System.Data.Linq.SqlClient.ExpressionVisitor.VisitExpressionList(ReadOnlyCollection`1 original) +86
   System.Data.Linq.SqlClient.ExpressionVisitor.VisitMethodCall(MethodCallExpression m) +74
   System.Data.Linq.SqlClient.ExpressionVisitor.VisitExpressionList(ReadOnlyCollection`1 original) +86
   System.Data.Linq.SqlClient.ExpressionVisitor.VisitMethodCall(MethodCallExpression m) +74
   System.Data.Linq.SqlClient.Funcletizer.Funcletize(Expression expression) +119
   System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +74
   System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +52
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +416
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +70
   JcExpressCore.Country.GetContinent(String contryName) +1040
   ASP.views_shared_searchcontrol_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\website\ex.jctrans.com\Views\Shared\SearchControl.ascx:212
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +75
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.4076.0