2
Vote

StartIndex cannot be less than zero. Parameter name: startIndex

description

I have this error when i host my APP, in develop mode work fine, but in the host i hav this error.
 
StartIndex cannot be less than zero.
Parameter name: startIndex
 
 
Stack Trace:
 
[ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex]
System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +7495151
System.String.Substring(Int32 startIndex) +17
NotesFor.Gallery.AddFileRecursively(List`1 fileNames, DirectoryInfo directory, Boolean recursive) +224
NotesFor.Gallery.get_Files() +132
 
[TargetInvocationException: Property accessor 'Files' on object 'NotesFor.Gallery' threw the following exception:'StartIndex cannot be less than zero.
Parameter name: startIndex']
System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) +390
NotesFor.ScriptDescriptorHelper.GetScriptDescriptors(Control control) +195
NotesFor.Gallery.System.Web.UI.IScriptControl.GetScriptDescriptors() +32
System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl) +98
System.Web.UI.ScriptManager.RegisterScriptDescriptors(IScriptControl scriptControl) +21
NotesFor.Gallery.OnPreRender(EventArgs e) +90
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

comments

durgeshRani wrote Nov 4, 2010 at 7:29 PM

Did you find Solution to this? I have the same problem.

wrote Aug 29, 2011 at 10:18 PM

Icculus05505 wrote Aug 29, 2011 at 10:24 PM

same issue here. Not sure why...

bnmawroh wrote May 16, 2012 at 11:04 AM

Please help me find a solution for this. As soon as i switched over from .net 2.0 to 3.5 and iis7 ,this error is displayed. I have a backup in iis6 and 2.0 framework and it runs smoothly.

wrote Feb 14, 2013 at 2:35 AM