Developer forum

Forum » CMS - Standard features » Server Error in '/' Application. [solved]

Server Error in '/' Application. [solved]

Daniel Linder
Reply

Hi,

We are getting an error on one of the items that we have, but this only appears in a test environment and not production, do you have any clue on what this error means?

It appears when we try and open the item in management centre, and we have checked that it has a table in the database:

Index and count must refer to a location within the string.
Parameter name: count

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.ArgumentOutOfRangeException: Index and count must refer to a location within the string.
Parameter name: count

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: 
 

[ArgumentOutOfRangeException: Index and count must refer to a location within the string.
Parameter name: count]
   System.String.Remove(Int32 startIndex, Int32 count) +5253145
   Dynamicweb.Admin.ItemTypeEdit._Lambda$__71(String path) +80
   Dynamicweb.Admin.ItemTypeEdit.FillIconSelectorControls(String selectedSmall, String selectedLarge) +784
   Dynamicweb.Admin.ItemTypeEdit.LoadData() +1009
   Dynamicweb.Admin.ItemTypeEdit.Page_Load(Object sender, EventArgs e) +112
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678

 


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


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

It looks like a partly old /admin folder - it is related to rendering the icon selector in item edit.

Is the solution live and EXACT copy? Application and all?

Votes for this answer: 1
 
Daniel Linder
Reply

yeah I tried to replace the admin folder with a freshly downloaded one and now the problem is gone. Thank you so much!

 

 

You must be logged in to post in the forum