Deploying the CuteSoft Editor files to another location

Last post 05-05-2010, 1:37 PM by Richard Schaefer. 3 replies.
Sort Posts: Previous Next
  •  05-05-2010, 9:49 AM 60728

    Deploying the CuteSoft Editor files to another location

    We had originally deployed the CuteSoft_Editor folder to the root of our web application. We want to move it to a separate location so it can be referenced by multiple apps from one source. We followed the deployment docs:
     
    1. Copy the files under CuteEditor to the target directory.
    2. Map the directory in IIS as a virtual directory only (not application).
    3. Add the following entry into your web.config.
            <add key="CuteEditorDefaultFilesPath" value="~/editor" />
     
    We set up a virtual directory called "CuteSoft_Editor" on our web server that was a copy of the folder deployed in the original web app, and removed the folder from the web app. We tried to add the key noted above but even as:
     
    <add key="CuteEditorDefaultFilesPath" value="~/CuteSoft_Editor" />
     
    It doesn't work. We get a "Path not found" error trying to load the editor.
    1. Your doc doesn't say in what section of web.config this key belongs. Is it AppSettings? If not, where?
    2. The format of the value implies a location relative to the web app loading the editor. If the editor files are in a completely different virtual directory doesn't this reference need to be absolute? (i.e. value="http://servername/CuteSoft_Editor")?
     
  •  05-05-2010, 10:03 AM 60730 in reply to 60728

    Re: Deploying the CuteSoft Editor files to another location

    Further complicating this we change the editor configuration file dynamically in our code:
     
    CuteEditor.ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/None.config"
     
    If I change the "~" to a fully qualified directory I get an error stating that the path must start with a "~". This contradicts
    your documentation that I can move the files to a separate virtual directory since the tilde implies that the
    referenced files reside within the application executing the request.
     
    Please clarify.
  •  05-05-2010, 12:50 PM 60748 in reply to 60728

    Re: Deploying the CuteSoft Editor files to another location

    >>Your doc doesn't say in what section of web.config this key belongs. Is it AppSettings? If not, where?
     
    Yes, it should in AppSettings.
     
    Try use the absolute path instead of application based path.
     
    <add key="CuteEditorDefaultFilesPath" value="/editor" />
     
    Keep me posted
     

    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

  •  05-05-2010, 1:37 PM 60750 in reply to 60748

    Re: Deploying the CuteSoft Editor files to another location

    <add key="CuteEditorDefaultFilesPath" value="/CuteSoft_Editor" />


    System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Exception: CuteEditorFilesPath must start with '~/'

       at CuteEditor.CEF.get_FilesVirtualPath()

       at CuteEditor.CEF.get_FilesAbsolutePath()

       at CuteEditor.CEF.ResolveResource(HttpContext context, String path)

       at CuteEditor.Impl.EditorProvider.GetEditorConfig(Editor editor)

       at CuteEditor.Impl.EditorProvider.GetToolbarItems(Editor editor, String type)

       at CuteEditor.Editor.a.a.u()

       at CuteEditor.Editor.CreateChildControls()

       at System.Web.UI.Control.EnsureChildControls()

       at System.Web.UI.Control.PreRenderRecursiveInternal()

       at System.Web.UI.Control.PreRenderRecursiveInternal()

       at System.Web.UI.Control.PreRenderRecursiveInternal()

       at System.Web.UI.Control.PreRenderRecursiveInternal()

       at System.Web.UI.Control.PreRenderRecursiveInternal()

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     

View as RSS news feed in XML