PictureBox error in TRDX file

2 posts, 0 answers
  1. Peter
    Peter avatar
    72 posts
    Member since:
    Mar 2012

    Posted 22 Mar 2013 Link to this post

    An error has occurred while processing PictureBox 'pictureBox1':
    Invalid image data.
    ------------- InnerException -------------
    Access to the path {Path} is denied.


    I am passing a datafield with the path for the image.  Sometimes the image path will be blank.  I don't want the error to displayed in the browser.  

    For TRDX file, is there anyway to suppress this error.
  2. IvanY
    IvanY avatar
    417 posts

    Posted 27 Mar 2013 Link to this post

    Hello Peter,

    Since you are already using an expression for the PictureBox you might as well check if its value is valid using IIf in the expression and perhaps even provide a default value for the image in such a case.

    However the issue with your image seems to be the fact that your user does not have access to the image as the inner exception informs. In that case you will have to figure out which image is causing this and either move it or provide permissions.

    the Telerik team

    Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

Back to Top