事件查看器日志,管理事件错误。发生未处理的异常。值不能为空

Event viewer log, administrative event error. An unhandled exception has occurred. Value cannot be null

提问人:Daniel 提问时间:2/18/2021 最后编辑:Connell.O'DonnellDaniel 更新时间:2/19/2021 访问量:103

问:

所以我之前有一个关于 500 内部服务器错误的问题,经过几天的尝试找到问题,我想我在事件日志中找到了它。

但是我现在遇到的问题是我无法真正阅读/理解它所说的内容以及我必须在代码中查看的位置。因为事件数据实在是太大了。

由于我是新手,我真的不想泄露任何东西,所以我不知道我是否应该发布完整的错误,如果有人可以告诉我我可以分享错误的哪一部分,我会这样做,以便有人可以帮助我。以下是错误的一部分 (eventdata):

   3005 
   An unhandled exception has occurred 

   Value cannot be null. Parameter name: source at System.Linq.Enumerable.Where [TSource] (IEnumerable`1 source, Func`2 predicate) at ASP._Page_Views_Shared__LoginPartial_cshtml.Execute () at d: \ inetpub \ wwwmlroot \ TestMap \ Views \ Shared \ _LoginPartial : line 30 at (and it just keeps on going with more at)

当然,还有很多信息,有人可以帮助我并告诉我我可以分享什么吗?这样 somenone 就可以帮助我解决错误。

我认为这可能与execute()有关?

asp.net asp.net-mvc asp.net-core 异常 错误处理

评论

0赞 Karney. 2/19/2021
从错误中,source 参数为 null,source 是可枚举的。这个错误发生在哪里,你能分享这些代码吗?
0赞 Daniel 2/22/2021
@Karney。我在我的个人资料上的另一个问题上分享了它,

答: 暂无答案