Error message File Corrupted

Error message File Corrupted

Forum member · Jun 19, 2009
We just launched a new app that uses Generator and Merger and several of our customers have called in and said that they are not able to view the documents and are getting an error message that says the file may be corrupt. This is not with ever customer and we are not able to reproduce this in house, but several customers have called in. From a couple that I gathered, they are using Adobe Acrobat 6. We use 6 in house and have no problems. We also have not seen any problems on 9 yet either (but that is not to say that it isn't happening). For the people who do get the error message, it is a constant error for them. Any ideas? Thanks, Brad

Re: Error message File Corrupted

Support · Jun 19, 2009
One reason that your users could be seeing this behavior could have to do with some stray HTML or other content getting streamed out with the PDF document. This stray HTML content is handled differently by different versions of Acrobat (even different minor versions within the same major versions we have seen treat this content differently). Some versions actually will ignore the stray content (they just look for the actual end or beginning of the PDF and ignore anything else) while other versions will just error out (like the handful of users it seems like this is happening to). Now that is likely the issue but here is the remedy. Either remove the stray HTML (usually this is some from unneeded tags in the ASPX page) or you could just add this line of code directly after the DrawToWeb method in your code: Visible = False This will prevent anything from being visible after the PDF is streamed out. Try that and let us know if that works for you. Thanks, ceTe Software Support Team

Re: Error message File Corrupted

Forum member · Jun 22, 2009
I tried adding the code and the customers are still seeing the errors. One customer is stating that Adobe is not able to open DA017241.FDF because it is not a recognizable format. Any additional advice?

Re: Error message File Corrupted

Support · Jun 22, 2009
Hello, Can you please check the version of Acrobat Reader installed on machines that are having this problem? Also what version of IE is installed? Thanks, ceTe Software Support Team

Re: Error message File Corrupted

Forum member · Jun 23, 2009
They were using IE 6 and Adobe 6.0.2 5/18/2004

Re: Error message File Corrupted

Support · Jun 23, 2009
Hello, Does the systems having this problem have the .NET framework v2.0 installed? If yes, that’s the reason you are seeing a blank window. Keep in mind however that we did discover, report, and get fixed a bug that was in Visual Studio 2005. This bug was related to streaming any PDFs to the browser. You can take a look at the bug report here . And notice that this has been fixed in Beta 2 of Visual Studio 2005. But a new bug was reintroduced when they fixed this one which is unresolved by Microsoft in Visual Studio 2005 and Acrobat 6.0.x in combination. Works fine when using Acrobat 7.0. You can see the bug report that was submitted to Microsoft. Remember that even if you are running VS2005, that this bug will only affect PDFs draw to the browser (this will not affect PDFs saved to disk) and this will only affect machines that actually have VS2005 installed on them. So please try updating to Adobe Reader 7 or above and see if it works for you. If you are still having the p problem then we will need to take a look at the headers from the page calling the PDF. I would recommend using ieHTTPHearders tool which allows you to capture all IE headers. Run your example once again and send over the headers it returns to our [^a|mailto:support@cete.com|Support Team^]. It's free to download. Thanks, ceTe Software Support Team.

Re: Error message File Corrupted

Forum member · Jun 23, 2009
In talking to our customers, I would strongly believe that they are not doing any development with Visual Studio. We also do not have much control over their computers so our only recourse will be to ask them to upgrade to another version of Adobe. Not ideal, but I guess this is our only option.

Re: Error message File Corrupted

Support · Jun 23, 2009
Hello, If the customer can make sure that they have the necessary updates for Acrobat Reader installed on their machine then it should work fine. We have tested our product and it works fine with Acrobat Reader 6.0. It is possible that the Acrobat Plugin may have got corrupt. Reinstalling Acrobat may also solve the problem. Thanks, ceTe Software Support Team

Re: Error message File Corrupted

Forum member · Jul 2, 2009
Hi, we are currently doing an evaluation (great product by the way) however I am the only one on my team getting the 'file corrupt' message - same as the other user on this thread. I have tried running this on my work PC and on my home Apple Mac and I get the same error. Both machines have full adobe acrobat on them (not just reader) 7.0. I did try forcing my machine to open pdf's in reader (also 7.0 standard company issue which is working for other people) but no joy there either. Are there certain settings in adobe reader/acrobat that could cause this to fail - I am assuming it is something in the code telling the application to fire up (since adobe never actually fires up). It is a bit frustrating since I am the project manager for this evaluation and the only one that can't get it to work (the option to create and send an email version of the pdf works fine), but if I am going to roll this out to over 10,000 customers I would like to be sure I can trouble shoot any issues like this for them. Any thoughts/tips would be appreciated.... Sam

Re: Error message File Corrupted

Support · Jul 2, 2009
Hello Sam, The error you are getting might be causing because of some stray HTML getting outputted along with the PDF stream. Different versions of Adobe behaves differently for this. Please refer to the Tech Article from our website which addresses this issue. You can also try adding the below line of code right after the DrawToWeb method of the document object. Visible = false; If this does not solve your problem, then please let us know the version of .NET framework you are using and please send over the saved PDF document, using the Draw method, to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it. Thanks, ceTe Software Support Team.