使用堆栈跟踪(MVC)查找问题的来源

时间:2017-03-20 19:43:31

标签: c# asp.net-mvc stack-trace

我有一个堆栈跟踪,我通过电子邮件通过我们的错误电子邮件系统获取。但是我在本地环境中重新创建错误时遇到问题,我知道我有一个空值错误。我知道我可以使用堆栈跟踪来缩小我的搜索范围以及如何重新创建错误,但我不认为我正在读它。

我认为问题是我的客户控制器中的详细信息页面,但我可能错了。任何人都可以帮我翻译一下这样我就可以找到我可以从哪里开始了吗?

2017-03-20 13:13:44,158 FATAL MainProgram.Controllers.CustomerController+<>c__DisplayClass8b - Exception propagated out of controller
System.InvalidOperationException: Nullable object must have a value.
   at MainProgram.Controllers.CustomerController.<>c__DisplayClass8b.<Details>b__50(Report i)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at MainProgram.Controllers.CustomerController.<>c__DisplayClass8b.<Details>b__45(IGrouping`2 k)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at MainProgram.Controllers.CustomerController.Details(String id)
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)

0 个答案:

没有答案