Default path for Image Manager problem

6 posts, 0 answers
  1. zachar
    zachar avatar
    5 posts
    Member since:
    Aug 2007

    Posted 16 Oct 2007 Link to this post

    Hello,

    I am doing a large project in MOSS and we are going to buy your RadEditor Control (and maybe more controls).

    I found out that if I set default libraries for RadEditor's Image Manager
    (e.g. ListConfigFile.xml file:
      <property name="ImagesPaths">
        <item>AAAA</item>
        <item>ResizedPictures</item>
        <item>Pictures</item>   
      </property>
    )
    it works fine.
    But when specifiec library does not exists for certain site I get an ugly error:

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Invalid path. Could not get SPFolder.
    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.ArgumentException: Invalid path. Could not get SPFolder.

    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:


    [ArgumentException: Invalid path. Could not get SPFolder.]
       Telerik.SharePoint.Editor.SPContentProvider.GetSPFolderFromPath(String path) +339
       Telerik.SharePoint.Editor.SPContentProvider.ResolveDirectory(String path) +10
       Telerik.SharePoint.Editor.SPContentProvider.ResolveRootDirectoryAsTree(String path) +4
       Telerik.WebControls.RadEditorUtils.FileBrowserContentProvider.ResolveViewPaths() +83
       Telerik.WebControls.EditorControls.FileBrowser.SerializeViewPaths() +104
       Telerik.WebControls.EditorControls.FileBrowser.OnPreRender(EventArgs e) +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +77
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832


    In my project I have about 300 sites and some does not have certain libraries. Could you fix that issue and make Image Manager omit non-existing libraries instead of throwing an exception?

    I am using 4.4 (the newest - I suppose version of RadEditor Control)

    Greetings,
    Maciej
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 18 Oct 2007 Link to this post

    Hello Maciej,


    In your case we can suggest to use different ConfigFiles for the sites that has missing libraries in them. More information on the subject is available in the following documentation topic: Different configuration files for different webs.

    Generally speaking, this behavior is by design - the idea behind it is the users to be notified that there is something wrong with the settings. For example the user can set a library name with typo in it and he wouldn't know why the manager doesn't work as expected. If you can suggest a different approach for handling such situation, please share it with us - your feedback will be highly appreciated.  




    Regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  3. Knox Cameron
    Knox Cameron avatar
    1 posts
    Member since:
    Oct 2005

    Posted 31 Jan 2008 Link to this post

    Hello Georgi

    We have found this to be a limitation as well.

    For example, I thought that some site owners might want to put their Flash or Media files into a different document library rather than mixing them in with their Word and PDF files in the normal site Documents library. However, I can't edit the configuration to look for a "Flash" document library unless there is one in every site, and I don't want to edit configuration files on a site by site basis. It would be much easier if you could specify a library name, and the file browser just ignored the problem if the library isn't present.

    Thanks
  4. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 01 Feb 2008 Link to this post

    Hello,

    Try updating to the latest RadEditor for MOSS (version 4.50). We have updated the SharePoint file browser provider code and it will no longer throw a "Could not get SPFolder" exception. You can also specify full paths from the site collection (e.g. /My Site/My Library/).

    Greetings,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Roger Brown
    Roger Brown avatar
    29 posts
    Member since:
    Sep 2012

    Posted 10 Feb 2008 Link to this post

    I am not seeing this behavior - the new ability to link to /My Site/Document Library

    Can you please elaborate on how you are getting this to work? You are referring to users Personal Sites (My Site) right?
  6. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 10 Mar 2008 Link to this post

    Hello,

    "My site" refers to any Sharepoint web and not particularly to the personal site of the currently logged in user. I think that each personal site is in a different site collection, so it will not be possible to access the libraries from one personal site to another.

    We are currently working on making the editor recognize relative paths (e.g. "My Library") and absolute paths ("/My Site/My Library/"). The current version (4.51) can reliably understand only absolute paths.

    Regards,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top