locked
Drag & Drop crash when use PDF files

    Question

  • Hi.

    I have application, it use Microsoft Silverlight and IE, the problem is when drag & Drop any PDF file it crashed, but with other files it running good, the MSG is:

    System.ArgumentOutOfRangeException:[Arg_ArgumentOutOfRangeException]
    http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.50907.00&File=mscorlib.dll&Key=Arg_ArgumentOutOfRangeException 
    Parameter Name: pixellHeight
    at System.Windows.Media.Imaging.WriteableBitmap..ctor(Int32 pixelWidth,Int32 pixelHeight)
    at Drag_and_Drop_File_Upload.MainPage.RenderPhoto(Stream stream, String FileName)

    Will you have any comments that help me?

    Regards.


    Tuesday, February 13, 2018 8:07 PM

All replies

  • Does the PDF contains a couple of images?

    RadPdfViewer uses full size 32bit bitmap to store the decoded images. You can refer this issue through this item in the public portal

     

    Regards,

    Fletcher


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    • Edited by Fletch Zhou Thursday, March 1, 2018 9:57 AM
    • Proposed as answer by Fletch Zhou Monday, March 5, 2018 11:51 AM
    Thursday, March 1, 2018 9:56 AM