I get the following error when trying upload a file
System.ObjectDisposedException: ‘Cannot access a closed file.’
The code is as follows:
Private Sub LoadFile(ByVal files As HttpFileCollection)
If files Is Nothing Then
Return
End If
files(0).SaveAs(Application.StartupPath & “\Resources\UserData\” & data.pdf
The file is in the downloads folder of the client machine. The file size is not exceeded, and the error event does not capture the error. This works perfectly under version 2.5.
I have since tried a few other PDF files and the issue seems to have gone. The irony of this is the file was created by the Adobe site for converting word to PDF. I then printed the word document to a PDF printer, and all was good.
I cannot replicate with Wisej 3.2.4 or 3.2.5.
I’ve attached the test case I used and the pdf that I uploaded.
Can you provide a sample that replicates the behavior that you describe?
Thanks,
Julie
Please login first to submit.