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

Last post 10-23-2007, 11:49 AM by jhammond_1999. 4 replies.
Sort Posts: Previous Next
  •  10-22-2007, 4:25 PM 34503

    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
     
  •  10-22-2007, 4:43 PM 34504 in reply to 34503

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

  •  10-22-2007, 5:46 PM 34507 in reply to 34504

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

    yes
  •  10-23-2007, 10:17 AM 34520 in reply to 34507

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

    >>3. Map the directory in IIS as a virtual directory only (not application).
     
    Can you check this step?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-23-2007, 11:49 AM 34531 in reply to 34520

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

    Yes, it is a Virtual Directory.  I'm sure of this.  I am using IIS7.  Has this been tested with IIS7?
     
    Joel
View as RSS news feed in XML