markdowndeep icon indicating copy to clipboard operation
markdowndeep copied to clipboard

First call fails

Open albertbori opened this issue 10 years ago • 1 comments

When I push our website to the live server, or when the app pool restarts, I get the following error once. If the server restarts, and then comes up again, I get this error until I bounce the app pools again.

Server Error in '/' Application.

Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:

Line 24:

@Html.ActionLink(discussion.Title.Display(), "Discussion", "Forums", new { id = discussion.ID }, null)

Line 25:
by @discussion.Author.DisplayName
Line 26: @Html.Raw(discussion.Text.DisplayMarkdown()) Line 27: Line 28:

Source File: c:\inetpub\wwwroot\MyWeb\Views\Home\Index.cshtml Line: 26

Stack Trace:

IndexOutOfRangeException: Index was outside the bounds of the array.] MarkdownDeep.Markdown.CreateBlock() +197 MarkdownDeep.BlockProcessor.EvaluateLine() +21 MarkdownDeep.BlockProcessor.ScanLines() +105 MarkdownDeep.Markdown.ProcessBlocks(String str) +171 MarkdownDeep.Markdown.Transform(String str, Dictionary'2& definitions) +30 NPCPortal.Utilities.StringHelpers.TransformMarkdown(String markdownText) +113 ASP._Page_Views_Home_Index_cshtml.Execute() in c:\inetpub\wwwroot\MyWeb\Views\Home\Index.cshtml:26 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125 System.Web.WebPages.StartPage.ExecutePageHierarchy() +143 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +110 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList'1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +109 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList'1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList'1 filters, ActionResult actionResult) +97 System.Web.Mvc.Async.<>c__DisplayClass1e.<BeginInvokeAction>b__1b(IAsyncResult asyncResult) +241 System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29 System.Web.Mvc.Async.WrappedAsyncVoid'1.CallEndDelegate(IAsyncResult asyncResult) +111 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53 System.Web.Mvc.Async.WrappedAsyncVoid'1.CallEndDelegate(IAsyncResult asyncResult) +19 System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__4(IAsyncResult asyncResult, ProcessRequestState innerState) +51 System.Web.Mvc.Async.WrappedAsyncVoid'1.CallEndDelegate(IAsyncResult asyncResult) +111 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408

albertbori avatar Apr 01 '14 19:04 albertbori

I'm seeing the same issue sometimes. Any luck tracking it down?

programcsharp avatar Oct 17 '15 14:10 programcsharp