PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri May 03, 2024 7:50 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Apr 30, 2010 12:05 pm 
Offline

Joined: Thu Apr 29, 2010 9:34 am
Posts: 1
Hi,

I am quite new at Migradoc and I have now been working on a problem for quite some time. My problem is now solved - but I would like to share the solution to other MigraDoc users.

My problem was that on my test-server, every pdf-file I was streaming worked perfectly. On the production server it did not work! Chrome/Firefox gave a message like "The file is corrupted and could not be repaired". IE just gave a blank page.

I searched this forum and everytime I found anything about streaming, the solution was something like:

...
Response.Close();
Response.End();

Suddenly in a thread someone wrote
...
Response.End();
Response.Close();

(as you see - End() before Close() ).

Voila - this removed all of my pdf-problems! Suddenly all my pdf-files would show up perfectly!

Hope someone could save 4-6 hours by this solution :D


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 76 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group