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

ImageManager from RadEditor 4_5_0 not working on WSS 3.0 SP1

15 Answers 360 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Tokatlian
Top achievements
Rank 1
Tokatlian asked on 19 Feb 2008, 07:16 PM
Hello

We are working on a WSS 3.0 SP1 env (version 12.0.0.6219), not MOSS.  We have installed RadEditor 4_5_0. 
The ImageBrowser is not working, when we click on the image icone, the  following error message appears:

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

    Invalid URL: /. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace  .......

When I modify the ListConfigFile.xml to add the following :
  <property name="ImagesPaths">
    <item></item>
  </property>
The ImageManager loads well but there are no picture library in the list so it is not very useful (See post from Ivar).

If I add :
  <property name="ImagesPaths">
    <item>SiteCollectionImages</item>
  </property>
or any existing Picture Library on the current site I get te same error as before ("Invalid URL: /.")

On another Enviroment where we did not install WSS 3.0 SP1 (version 12.0.0.4518), the ImageManager works well: the issue is really with SP1.

Any idea anyone?
Thanks

RĂ©mi

15 Answers, 1 is accepted

Sort by
0
Bart Adriaanse
Top achievements
Rank 1
answered on 26 Feb 2008, 08:43 PM
Yes, Help !? I have the exact same problem.

In my case the image manager does work on the site collection in the root of the web application. But i have a second site collection underneath in /sites/... and i get the exact same error there.

Reading some other posts here it seems the image manager is trying to load from the root of the site, which seems to fail if this is not part of the current site collection.

I am really stuck on this, maybe i should open a support ticket out on this...?
0
Lini
Telerik team
answered on 29 Feb 2008, 12:43 PM
Hello,

We are currently working on resolving this issue. It will be fixed in the next RadEditor for MOSS release. There are two possible workarounds - choose the libraries in the image manager manually (by editing the editor configuration file) or use the original asset picker dialog (if using MOSS 2007). The release is scheduled for the end of next week. I apologize for the inconvenience.
 
Regards, Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sary
Top achievements
Rank 1
answered on 03 Mar 2008, 04:39 PM
We have the same problem in MOSS.
I try your solution to give a path to the root library.
The results:
In the root "Site collection" it worked good and and I could open the image manager.
But.... in the "Sub Site collection" ex. ../sites/ no luck, I couldn't open it and get the same error as before.
I tried absolute path and relative path, but nothing work (I even tried to use UID forthe config.xml{...}).
For now we are stuck in our project, with a solution that is very bad for MOSS. I open a ticket suppot.
0
Ben
Top achievements
Rank 1
answered on 06 Mar 2008, 10:33 AM
Hi Lini,

Thank you for your contribution of the radeditor. In your reply, you say that we can choose the libraries in the image manager manually (by editing the editor configuration file). Can you explain more how to do it?

Thanks,
Ben
0
Lini
Telerik team
answered on 06 Mar 2008, 04:04 PM
Hello Ben,

You need to open the editor configuration file and add the "ImagesPaths" property. Here is a link from the editor help, which explains how to do that - http://www.telerik.com/help/radeditormoss/SetPropertiesViaConfigFile.html

For example:
<property name="ImagesPaths">
<item>/MySite/MyLibrary/</item>
</property>

Kind regards,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
viex
Top achievements
Rank 1
answered on 07 Mar 2008, 04:32 PM
Hi,

If I look into the code (via reflector) :
in the assembly : RadEditorSharepoint.dll
int the class : Telerik.Sharepoint.Editor.SPContentProvider
int the method  : GetSPFolderFromPath :

I see the following code :
string strUrl = "/"
SPWeb web = site.OpenWeb(strUrl); 

which means :
If your site collection is not a "root" site collection (ie the server relative url is not "/"), Then, it will always throw an exception.

=> If your site collection is something like http://blabla/sites/Site then you have the following options :
1. Remove the 4.5.0.0 version and reinstall an older version
2. Or in the ToolsFile.xml, change the ImageManager by MOSSImageManager, and don't use the flash manager or media manager..
3. Or Wait until the next release.

Anyway, this is what I think...

Regards,

Sylvain
0
Lini
Telerik team
answered on 10 Mar 2008, 01:14 PM
Hello Sylvain,

Thank you sharing this information. This is exactly what we changed in the 4.51 version. The code you mentioned is now changed to:

SPWeb web = site.OpenWeb();  
string webPath = web.ServerRelativeUrl; 

It will no longer cause an exception when your site collection is not situated at the root of the Sharepoint web application.

All the best,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Christopher
Top achievements
Rank 1
answered on 10 Mar 2008, 02:53 PM
Greetings,

I am looking very forward to this update, as its an issue I've been having. I looked to download the update but still only see 4.5. Where am I able to download 4.51?

I saw this message in another forum..

"We have updated the RadEditor for MOSS build on the site to version 4.51. The "Invalid URL: /" exception should be fixed in this release."

Thanks!
- Chris
0
Bart Adriaanse
Top achievements
Rank 1
answered on 10 Mar 2008, 03:06 PM
I just found the 4.51 update on my client.net pages, it's under the detailed downloads listing for Radeditor. I would have expected some kind of announcement for this update, anyway thanks for this bugfix !
0
Christopher
Top achievements
Rank 1
answered on 10 Mar 2008, 03:36 PM
I must be completely missing it, still not seeing anywhere to download the update from the client.net pages. I see other people have downloaded it also. Please assist with my poor site navigation skills :)

*this update applies to the trial version correct?
0
Lini
Telerik team
answered on 10 Mar 2008, 04:03 PM
Hi,

Here is how to find the latest download:

For the lite version - go to http://www.telerik.com/products/sharepoint/radeditor.aspx, click the "download lite edition" button and accept the license agreement. You will be taken to the "My Purchases" page. From there, expand the RadEditor Lite panel and go to the downloads tab to see the files. I have attached a screenshot of the last steps.

For the full version - go to the "My Purchases" page. From there go to the RadEditor downloads page and you will see the MOSS version link. I have a screenshot of that page as well.

Regards,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Christopher
Top achievements
Rank 1
answered on 10 Mar 2008, 04:09 PM
Wow I really was blind,

Thanks Lini, great service as usual!
0
Tokatlian
Top achievements
Rank 1
answered on 10 Mar 2008, 05:06 PM
Thanks for this new release which should solve my initial issue.
However, we are still in an evaluation mode of RadEditor, so the only release I had was the free trial of the 4.5.0.
Do you plan to offer the free trial for 4.5.1 anytime soon?
0
Sary
Top achievements
Rank 1
answered on 11 Mar 2008, 08:36 AM
The new version work good, but I want to use only one main library with my sites and sub sites.
I put this code:
<property name="ImagesPaths">
    <item>SiteCollectionImages</item>
</property>
and I can get to the main "SiteCollectionImages" library from any site or sub site.
My problem is when I try to upload image or open folder under the sub sites, it gives me an error:
Server Error in '/' Application.  
--------------------------------------------------------------------------------  
 
Value does not fall within the expected range.   
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: Value does not fall within the expected range.  
 
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: Value does not fall within the expected range.]  
   Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl) +381  
   Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl) +33  
   Microsoft.SharePoint.SPWeb.GetFolder(String strUrl) +33  
   Telerik.SharePoint.Editor.SPContentProvider.GetSPFolderFromPath(String path) +442  
   Telerik.SharePoint.Editor.SPContentProvider.StoreFile(HttpPostedFile file, String path, String name, String[] arguments) +133  
   Telerik.WebControls.EditorControls.FileUploader.StoreFile(HttpPostedFile temporaryFile, String targetFolder, String fileName) +55  
   Telerik.WebControls.EditorControls.FileUploader.PerformUpload() +249  
   Telerik.WebControls.EditorControls.FileUploader.btnUpload_Click(Object sender, EventArgs e) +448  
   System.Web.UI.HtmlControls.HtmlButton.OnServerClick(EventArgs e) +105  
   System.Web.UI.HtmlControls.HtmlButton.RaisePostBackEvent(String eventArgument) +106  
   System.Web.UI.HtmlControls.HtmlButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7  
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11  
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174  
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102  
 
   
 
 
--------------------------------------------------------------------------------  
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210  
0
Georgi Tunev
Telerik team
answered on 11 Mar 2008, 12:36 PM
Hi Tokatlian,

Please accept our apologies for the inconvenience. It seems that for some reason v4.5.1 was not available for trial users in the Client.Net. We fixed the problem and now you can download it from your Client.net account.


Your points were updated for bringing this problem to our attention.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
WebParts for SharePoint
Asked by
Tokatlian
Top achievements
Rank 1
Answers by
Bart Adriaanse
Top achievements
Rank 1
Lini
Telerik team
Sary
Top achievements
Rank 1
Ben
Top achievements
Rank 1
viex
Top achievements
Rank 1
Christopher
Top achievements
Rank 1
Tokatlian
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or