我在Sitefinity項目管理器中創建了新項目,新網站,在Visual Studio中打開它,開始調試。因爲在它提供登錄到後端之前沒有創建頁面。但是,當我點擊登錄,而不是登錄表單它給了我InvalidOperationException: Stack empty
例外當在Visual Studio中打開Sitefinity項目時出現「InvalidOperationException:Stack Empty」
[InvalidOperationException: Stack empty.]
System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +52
System.Collections.Generic.Stack`1.Pop() +6667365
Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter writer, Object renderedObject) +152
System.Web.UI.RenderTraceListenerList.EndRendering(TextWriter writer, Object renderedObject) +58
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +142
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386
如果之前我是能夠成功登錄到後臺時,從Sitefinity項目經理跑項目,我在Visual Studio打開的項目後它一次又一次地給我提供了錯誤,即使我試圖從項目管理器中運行它。登錄到後端的唯一方法是在Visual Studio中關閉該項目。
我發現另一個解決方案試圖解決一個非常類似的問題。它可能是相關的:https://stackoverflow.com/questions/20406497/system-invalidoperationexception-stack-empty/45888866#45888866 – Rolo