Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
[NullReferenceException: Object reference not set to an instance of an object.] LiteDB.IndexNode.IsHeadTail(CollectionIndex index) +95 LiteDB.<FindAll>d__2.MoveNext() +212 LiteDB.<Find>d__9.MoveNext() +265 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +327 System.Linq.Enumerable.ToList(IEnumerable`1 source) +58 MidOperator.LiteDB.OP.LiteDBOP.FindAll() +173 MidOperator.Filter.Filters.GrabArtilceFilter.ArticleFilter(String contents, String newstr) +44 syzjbg.NewAdmin.ArticleManage.EditGrabArticle.GetSingleArticleInfo() +89 syzjbg.NewAdmin.ArticleManage.EditGrabArticle.OnLoad(EventArgs e) +91 System.Web.UI.Control.LoadRecursive() +61 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1966 |
我也有遇到这个问题,目前还没有找到问题所在,只是会在部分电脑上出现。而且调试的时候没问题,运行的时候才会出现。找到问题所在了,你在VS的编译选项中去掉对“优化代码”的勾选,再编译生成即可正常。希望能对你有用。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。