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