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

未将对象引用设置到对象的实例。

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

异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。

源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[NullReferenceException: 未将对象引用设置到对象的实例。]
   lambda_method(Closure ) +117
   Remotion.Linq.Parsing.ExpressionTreeVisitors.PartialEvaluatingExpressionTreeVisitor.EvaluateSubtree(Expression subtree) +293
   Remotion.Linq.Parsing.ExpressionTreeVisitors.PartialEvaluatingExpressionTreeVisitor.VisitExpression(Expression expression) +72
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression) +85
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression) +85
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitLambdaExpression(LambdaExpression expression) +113
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitUnaryExpression(UnaryExpression expression) +60
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitAndConvert(T expression, String methodName) +107
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitList(ReadOnlyCollection`1 list, Func`2 visitMethod) +186
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitMethodCallExpression(MethodCallExpression expression) +141
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitAndConvert(T expression, String methodName) +107
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitList(ReadOnlyCollection`1 list, Func`2 visitMethod) +186
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitMethodCallExpression(MethodCallExpression expression) +141
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitAndConvert(T expression, String methodName) +107
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitList(ReadOnlyCollection`1 list, Func`2 visitMethod) +186
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitMethodCallExpression(MethodCallExpression expression) +141
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitAndConvert(T expression, String methodName) +107
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitList(ReadOnlyCollection`1 list, Func`2 visitMethod) +186
   Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitMethodCallExpression(MethodCallExpression expression) +141
   NHibernate.Linq.NhLinqExpression..ctor(Expression expression) +18
   NHibernate.Linq.DefaultQueryProvider.PrepareQuery(Expression expression, IQuery& query, NhLinqExpression& nhQuery) +50
   NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression) +37
   NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression) +25
   Remotion.Linq.QueryableBase`1.GetEnumerator() +86
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +572
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +68
   _dynamic_WonderManager.Business.HomeSite.Service.Implement.SiteNewsBLO.GetSiteNewsListByContaion_topNum(Object , Object[] ) +331
   Spring.Reflection.Dynamic.SafeMethod.Invoke(Object target, Object[] arguments) +496
   Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint() +216
   Spring.Aop.Framework.AbstractMethodInvocation.Proceed() +192
   Spring.Aop.Framework.Adapter.AfterReturningAdviceInterceptor.Invoke(IMethodInvocation invocation) +81
   Spring.Aop.Framework.AbstractMethodInvocation.Proceed() +625
   Spring.Aop.Framework.DynamicProxy.AdvisedProxy.Invoke(Object proxy, Object target, Type targetType, MethodInfo targetMethod, MethodInfo proxyMethod, Object[] args, IList interceptors) +295
   CompositionAopProxy_97224dee7eae4ee699cf1f1cd710c277.GetSiteNewsListByContaion_topNum(Int32 newsGroupId, Int32 newsId, Int32 topNum) +319
   Spring.Reflection.Dynamic.SafeMethod.Invoke(Object target, Object[] arguments) +496
   Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint() +216
   Spring.Aop.Framework.AbstractMethodInvocation.Proceed() +192
   Spring.Transaction.Interceptor.TransactionInterceptor.Invoke(IMethodInvocation invocation) +372
   Spring.Aop.Framework.AbstractMethodInvocation.Proceed() +626
   Spring.Aop.Framework.DynamicProxy.AdvisedProxy.Invoke(Object proxy, Object target, Type targetType, MethodInfo targetMethod, MethodInfo proxyMethod, Object[] args, IList interceptors) +296
   CompositionAopProxy_2b3c30dc9b5542e48472b956f5f6434b.GetSiteNewsListByContaion_topNum(Int32 newsGroupId, Int32 newsId, Int32 topNum) +320
   WonderManager.Business.HomeSiteCtrl.Views.Implement.SiteNewsGroupPLO.GetRelationContentStr(Int32 newsGroupId, Int32 newsId, Int32 topNum) +140
   WonderManager.Business.HomeSiteCtrl.Controllers.SiteController.Question(Int32 newsId) +2646
   lambda_method(Closure , ControllerBase , Object[] ) +141
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +280
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +80
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +453
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +663
   System.Web.Mvc.Controller.ExecuteCore() +144
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +92
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +58
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +22
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +36
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +657
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +146


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