I have aspose.pdf in my project and it is opening in ie 9 in some computers while in other machines pdf is opening
Although it is working well on crome
On IE 10 it is working fine
I am getting following error on IE9
DETAILS
ABOUT THE ERROR: Message: The remote host closed the connection. The
error code is 0x80070040. Stack Trace: at
System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32
result, Boolean throwOnDisconnect) at
System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush() at
System.Web.HttpResponse.Flush(Boolean finalFlush)
code:
Dim tmpDoc As New Document(filepath,“password”)
Dim saveDocMS As New MemoryStream()
tmpDoc.Decrypt() tmpDoc.Save(saveDocMS)
Response.Expires = 0 Response.BufferOutput = True
Response.ClearContent() Response.ContentType = “application/pdf”
Response.BinaryWrite(saveDocMS.GetBuffer()) saveDocMS.Close()
Response.Flush()
Response.SuppressContent = True
I have aspose.pdf in my project and it is opening in ie 9 in some computers while in other machines pdf is opening
Although it is working well on crome
On IE 10 it is working fine
I am getting following error on IE9
DETAILS ABOUT THE ERROR: Message: The remote host closed the connection. The error code is 0x80070040. Stack Trace: at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect) at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush() at System.Web.HttpResponse.Flush(Boolean finalFlush) a
Do you mean the PDF document is not being written to Response object when using IE9 as default web browser when using Aspose.Pdf for .NET in Web based application. If possible, please share some sample project so that we can test the scenario at our end.
No it is not about default. It is giving response in some machine and pdf is loading while in some other machines it is not opening pdf, my project is already live and some users are able to view pdf on IE 9 while others not, I can not share my project due to security reason. can you give me some hint regarding this problem its urgent
I used following code for aspose.pdf
Dim tmpDoc As New Document(filepath,“password”)
Dim saveDocMS As New MemoryStream() tmpDoc.Decrypt() tmpDoc.Save(saveDocMS) Response.Expires = 0 Response.BufferOutput = True Response.ClearContent() Response.ContentType = "application/pdf" Response.BinaryWrite(saveDocMS.GetBuffer()) saveDocMS.Close() Response.Flush() Response.SuppressContent = True
I have tested the scenario where I have tried loading and rendering a sample PDF document in web application based on Aspose.Pdf for .NET 8.6.0 and I am unable to notice any problem. During my testing, I have used one of my sample PDF files. Also from your above stated post, you have indicated that problem occurs for some customers only whereas others are able to view files without any issue. Can you please share the product version which you are using.
Also please note that until or unless we are able to reproduce this problem, we might not be able to rectify and figure out the actual reasons of this issue. We are sorry for this inconvenience.
I tested it on different version of IE and found that it is not working on IE 9.0.15 version only so can you look on this browser, I really want to give you sample project but we are not allowed for that so can you check on 9.0.15 version of IE
I have again tested the scenario using Aspose.Pdf for .NET 8.6.0 where I have used the following code snippet to test the scenario and as per my observations, the PDF file is properly being displayed in IE 9.0.8. For your reference, I have also attached an image file showing this behavior.
Thanks for your feedback. We are truly sorry for the inconvenience caused. I am afraid we are unable to find the IE 9.0.15 version. Can you please share or point us to the IE version? So we will try to replicate the issue and provide you more information accordingly.