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
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...?
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
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.
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
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
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
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
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
*this update applies to the trial version correct?
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
Thanks Lini, great service as usual!
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?
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 |
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