RAD Image Editor page crashes

2 posts, 0 answers
  1. Brijen
    Brijen avatar
    4 posts
    Member since:
    Sep 2012

    Posted 31 Aug 2012 Link to this post

    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.
  2. Vessy
    Admin
    Vessy avatar
    1388 posts

    Posted 05 Sep 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top