File is Damaged and could not be repaired

File is Damaged and could not be repaired

Forum member · Aug 22, 2006
I am trying to run "HELLO WORLD" and I am getting an error from Adobe Reader saying "The file is damaged and could not be repaired". I am using ASP.NET 2003. Thanks in advance, Gustavo

Re: File is Damaged and could not be repaired

Support · Aug 22, 2006
Gustavo, try adding a Response.End directly after the DrawToWeb method in your code. This will prevent anything from being output after the PDF document itself. Thanks, ceTe Software Support Team

Re: File is Damaged and could not be repaired

Forum member · Aug 24, 2006
It worked! Thanks a lot! Gustavo

Re: File is Damaged and could not be repaired

Forum member · Aug 25, 2006
This message can also be caused by not adding any pages to your document.

Re: File is Damaged and could not be repaired

Support · Aug 29, 2006
Typically you will get an exception stating "Document has no pages" when no Pages are added to the Document. Thanks, ceTe Software Support Team

Re: File is Damaged and could not be repaired

Forum member · Feb 4, 2007
I am having the same problem and I also getting the error: aspnet_merger exited with code 1. I tried the Response.end but I get the error: ONLY ASSIGNMENT, CALL, INCREMENT, DECREMENT, AND OBJECTS EXPRESION CAN BE USED AS A STATEMENT. Any idea of what is happening. Until yesterday I was able to view my reports without problems. I did upgraded Adobe to version 7.5 and then 7.7, but still doesn't make sense. Do you haave any idea? Thanks!

Re: File is Damaged and could not be repaired

Support · Feb 5, 2007
Hello, What error are you getting? Can you please send over the full stack trace of the error, the code, and any existing PDF documents you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can take a look at it. Can you please try adding Visible = false; right after the DrawToWeb method of the document object and see if it solves. Thanks, ceTe Software Support Team.