使用LiteDB的项目发布到服务器上(iis6)就报错了

wingahi 发布于 2015/06/18 11:18
阅读 404
收藏 0
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.

Stack Trace:  

[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


Version Information:  Microsoft .NET Framework Version:4.0.30128; ASP.NET Version:4.0.30128.1
加载中
0
nevergiveup
nevergiveup
我也有遇到这个问题,目前还没有找到问题所在,只是会在部分电脑上出现。而且调试的时候没问题,运行的时候才会出现。
0
nevergiveup
nevergiveup
找到问题所在了,你在VS的编译选项中去掉对“优化代码”的勾选,再编译生成即可正常。希望能对你有用。
返回顶部
顶部