i7MEDIA / mojoportal

mojoPortal is an extensible, cross database, mobile friendly, web content management system (CMS) and web application framework written in C# ASP.NET.
https://www.mojoportal.com
Other
197 stars 100 forks source link

StartIndex cannot be less than zero. #210

Open SinaBina opened 1 year ago

SinaBina commented 1 year ago

Under SQLite data-layer in the latest version: 1-Add Superflexi module to a page 2-Setting >Select Accordion 3-Add Item 4-Following error is thrown:

System.ArgumentOutOfRangeException
  HResult=0x80131502
  Message=StartIndex cannot be less than zero.
Parameter name: startIndex
  Source=mscorlib
  StackTrace:
   at System.String.Substring(Int32 startIndex, Int32 length)
   at mojoPortal.Web.Components.RazorBridge.RenderPartialToString(String partialName, Object model, ViewDataDictionary viewData, String controller) in C:\Users\User\Desktop\mojoportal-master\Web\Controllers\RazorBridge.cs:line 95
   at mojoPortal.Web.Components.RazorBridge.RenderPartialToString(String partialName, Object model, String controller) in C:\Users\User\Desktop\mojoportal-master\Web\Controllers\RazorBridge.cs:line 125
   at SuperFlexiUI.WidgetRazor.RenderContents(HtmlTextWriter writer)

Untitled

JosephMDavis commented 1 year ago

This appears to happen only during debug and it works fine after clicking "continue". We'll take a closer look but I don't think it's high priority.