This is the code used to load a pdf file into pdfviewer;
PdfViewer1.ViewerType = PdfViewerType.Auto
Dim str As Stream = files(0).InputStream
PdfViewer1.PdfStream = str
I noticed that if the file is less than 100 KB, it is loaded else it give an error about loading
Where is files(0).InputStream coming from? If the stream is disposed or closed by the owner then you get an error, probably after the buffered data is read.
Please login first to submit.