C# error: InvalidOperationException: Stack empty

倖福魔咒の 提交于 2019-12-13 08:51:44

问题


I have been working with a web application. It was running fun until I changed tables which were behind the app. I checked my code, and it looked fine to me. But I am keep getting this error, and not sure why. Can someone help?

[InvalidOperationException: Stack empty.]

System.Collections.Generic.Stack`1.Pop() +8625191

System.Web.UI.RenderTraceListenerList.EndRendering(TextWriter writer, Object renderedObject) +90

System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +12389839

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5363

I think these two lines are causing the problem, but it worked fine before I adjust the typelist.

Context<TypedList> GetProductSearch(IPredicateExpression filter);
Context<TypedList> GetProductSearch(IPredicateExpression filter, ISortExpression sorter);

来源:https://stackoverflow.com/questions/33177942/c-sharp-error-invalidoperationexception-stack-empty

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!