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

  •  10-22-2007, 4:25 PM

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

    I'm trying to get the CuteSoft_Client files out of my project by mapping a virtual folder in the website to the client files.  I have the Sept 4, 2007 build of the cuteeditor.dll and CuteSoft_Client files.
     
    I have added this to the appSettings section of my web.config:
     
    <add key="CuteEditorDefaultFilesPath" value="~/Cute20070904/"

    Then, I've aded a Virtual Directory under my iis application named "Cute20070904", which is mapped to "D:\Cute20070904\Framework 2.0\CuteSoft_Client\CuteEditor".

    I think I have the mapping set up right because I can view the help page successfully with http://localhost/myapp/Cute20070904/Help/
     
    When I view a test page with nothing on it except an editor control, I get this error:
     
    Index and count must refer to a location within the string. Parameter name: count at System.String.Remove(Int32 startIndex, Int32 count) at CuteEditor.CEF.FindFileIndex(String path) at CuteEditor.CEF.FileExists(String path) at CuteEditor.Impl.Resource.LoadIntoNvc(NameValueCollection nvc, String filepath) at CuteEditor.Impl.Resource.a(NameValueCollection A_0, HttpContext A_1, ArrayList A_2) at CuteEditor.Impl.Resource.a(NameValueCollection A_0, HttpContext A_1, String A_2, CultureInfo A_3) at CuteEditor.Impl.Resource.LoadResources(HttpContext context, Editor editor, CultureInfo culture) at CuteEditor.Editor.a.a.g() at CuteEditor.Editor.a.a.g(HtmlTextWriter A_0) at CuteEditor.Editor.a.a.h(HtmlTextWriter A_0) at CuteEditor.Editor.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     
     Please advise...
     
    Joel
     
View Complete Thread