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

RAD Image Editor page crashes

1 Answer 71 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Brijen
Top achievements
Rank 1
Brijen asked on 31 Aug 2012, 05:50 PM
I am using RAD Image editor on Sharepoint 2010 site to edit images from doc library. (intended document library contains Audio, Video, Images, Documents(word, PDF) etc.)

My issue is when I click on image items, page works fine, image gets loaded into page, I can edit it and save it as per requirement.
but when I click on any  media other than image type, page is crashed with error "Parameter is not valid. "

this error occures in (from stack trace)
Telerik.Web.UI.RadImageEditor.GetCurrentEditableImage() +251
Telerik.Web.UI.RadImageEditor.ApplyClientOperations() +35
Telerik.Web.UI.RadImageEditor.ControlPreRender() +27

I wish to handle the selection of media other than image type in my code with appropriate message, 
but it seems that prerender is being called even before page_load.

please suggest me the reason of error and how to handle it.
here is complete stack trace 

[ArgumentException: Parameter is not valid.]
   System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) +430
   System.Drawing.Image.FromStream(Stream stream) +14
   Telerik.Web.UI.ImageEditor.CacheImageProvider.LoadImage(String imageUrl, String physicalPath, HttpContext context) +234
   Telerik.Web.UI.RadImageEditor.GetCurrentEditableImage() +251
   Telerik.Web.UI.RadImageEditor.ApplyClientOperations() +35
   Telerik.Web.UI.RadImageEditor.ControlPreRender() +27
   System.Web.UI.Control.PreRenderRecursiveInternal() +108
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
If you wish I can provide screen shot of error also Looking forward for your suppport.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 05 Sep 2012, 02:43 PM
Hi Brijen,

I am not quite sure if I understand you completely. Could you please elaborate what exactly do you mean by "...it seems that prerender is being called even before page_load"?

I contacted the RadImageEditor developers and they ensured me that the only place where the ControlPreRender() is triggered is the OnPreRender() server-side event.

Could you please explain in more details the specific scenario? It would be of great help if you provide us with the WebPart of your project and/or the code snippets demonstrating the issue.

Regards,
Veselina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ImageEditor
Asked by
Brijen
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or