I have been scratching my head trying to fiigure out what is going on here. Any help would be appreciated.
I have an ASP.NET application, written in VS 2008 and running on Server 2008, that allows a user to upload PDF files which are then displayed in a list and can be viewed/downloaded. The files are stored in a SQL table as a binary field.
Problem: Two recently uploaded PDF files cannot be retrieved for viewing or download. I get the following error in Acrobat Reader: "There was an error opening this document. The file is damaged and could not be repaired".
Here is the strange part:
I am leaning toward blaming a weird sequence of bytes in the PDF file that may be triggering a security violation on IIS7/Server 2008 that causes it to interrupt the response. But I can't exactly pinpoint it.
I have an ASP.NET application, written in VS 2008 and running on Server 2008, that allows a user to upload PDF files which are then displayed in a list and can be viewed/downloaded. The files are stored in a SQL table as a binary field.
Problem: Two recently uploaded PDF files cannot be retrieved for viewing or download. I get the following error in Acrobat Reader: "There was an error opening this document. The file is damaged and could not be repaired".
Here is the strange part:
- Previously uploaded files work fine
- An identical copy of the web application running on a Windows Server 2003 box does NOT have this problem
I am leaning toward blaming a weird sequence of bytes in the PDF file that may be triggering a security violation on IIS7/Server 2008 that causes it to interrupt the response. But I can't exactly pinpoint it.
Last edited: