This is a migrated thread and some comments may be shown as answers.

Default path for Image Manager problem

5 Answers 169 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
zachar
Top achievements
Rank 1
zachar asked on 16 Oct 2007, 01:03 PM
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

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 18 Oct 2007, 11:46 AM
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
0
Knox Cameron
Top achievements
Rank 1
answered on 01 Feb 2008, 02:24 AM
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
0
Lini
Telerik team
answered on 01 Feb 2008, 04:34 PM
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
0
Roger Brown
Top achievements
Rank 1
answered on 10 Feb 2008, 06:40 PM
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?
0
Lini
Telerik team
answered on 10 Mar 2008, 03:05 PM
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
Tags
WebParts for SharePoint
Asked by
zachar
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Knox Cameron
Top achievements
Rank 1
Lini
Telerik team
Roger Brown
Top achievements
Rank 1
Share this question
or