Home > Internet Explorer > Internet Explorer Cannot Download Pdf.aspx

Internet Explorer Cannot Download Pdf.aspx

remove the code with sets cache Comment the following Response.Clear(); Response.Buffer = true; Response.Charset = ""; **//Response.Cache.SetCacheability(HttpCacheability.NoCache);** Response.ContentType = contentType; Response.AppendHeader("Content-Disposition", "attachment; filename=" + fileName); Response.BinaryWrite(bytes); Response.Flush(); Response.End(); share|improve this answer Reply Tomas Hesse says: October 24, 2013 at 12:05 pm Thank you for a very interesting and hopefully useful blog. The code is as shown below,

Response.ClearHeaders() Response.ContentType = corspBean.ContentType Response.AppendHeader("content-disposition", "attachment; filename=""" + fileName + """") Response.BinaryWrite(fileBytes) Response.End() It has fixed the issue. Please try again later. http://pgexch.com/internet-explorer/internet-explorer-cannot-download-code-aspx.html

Apropos banks requesting security features, what about "X-Force-TLS"? I've tried amending my .net code, as suggested above, by adding: Response.AddHeader "Cache-Control", "private, max-age=15" but that hasn't solved it. Naturally it works fine in Firefox. Because It helps others to find the solution.

Was able to get it working via: string attachment = "attachment; filename=" + rptName + ".xls" + ""; HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ClearHeaders(); Please try the request again. I ran in to this issue when I had a script that generates a CSV file. Strangely it only happens to users within our corporate network.

Works on firefox0Why don't I always see IE's “Internet Explorer blocked this site from download files…”?12IE cannot download foo.jsf. share|improve this answer edited Sep 29 '12 at 7:51 NewUser 2,19452356 answered Aug 13 '12 at 5:15 Arun 1 add a comment| Your Answer draft saved draft discarded Sign up Problem solved. What browser are you using, and what are the final set of headers?

What gives? Reply EricLaw [ex-MSFT] says: September 21, 2012 at 10:59 am @Tito: Can you explain what specifically is "corrupt" in the cases you're referring to? If someone decides to access their inbox on a public computer with auto-login, other people shouldn't be able to dig up what they were looking at over SSL. http://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/internet-explorer-9-wont-download-files-via-aspx/de00893f-6d28-4aa0-821f-308474cf8a36 All rights reserved. | | |Community| Site Map|Legal Info SoftArtisans Search Primary Menu Skip to content About Tech Retro Tech Women In Tech Truth in Tech ASP.NET Excel Big Data Events

Does anyone have a clue what would cause this. BTW/OT: I wish I will also find my life's calling where I would be so dedicated that I would reply to blog post comments on Sundays. 🙂 Reply EricLaw [ex-MSFT] says: following code is the reason for the issue. Any help to resolve this issue will be highly appreciated.

Unable to open this internet site15File opens instead of downloading in internet explorer in a href link1IE unable to download CSV files from SharePoint 2010 document library Hot Network Questions Why And on top of that, if that's a ‘security feature' why this misleading error message?! Reply schin says: October 5, 2010 at 11:01 pm I developed a activex. Reply VJ says: April 19, 2011 at 2:03 pm Thanks.

Fiddler shows that in both cases the headers are identical. check over here Iain. Just before the Response.BinaryWrite(bytes); we added Response.ClearHeaders(); Response.ClearContent(); Response.Buffer = true; and it worked. asked 6 years ago viewed 9104 times active 3 years ago Upcoming Events 2016 Community Moderator Election ends Nov 22 Linked 0 Error message comes ON IE when try to download

Any idea why that would be? –Smartie Aug 12 '10 at 12:47 1 I've also found if I remove context.Response.Cache.SetCacheability(HttpCacheability.NoCa‌che) and add back the contenttype it works. –Smartie Aug 12 it doesn't work. (can't download anything) in Win XP, I checked [Do not save encrypted pages to disk] option, so download activex OK from https://something. All rights reserved. his comment is here Anyway, to solve the problem, we changed the mime type of our .deploy files to be text/plain - obviously not ideal, but at the same time, I don't know a scenario

Any ideas? Reply EricLaw [MSFT] says: October 14, 2009 at 9:29 am @Ryan: You shouldn't be sending a Pragma header at all. This didn't work on it's own, we also had to disable the "Do not store encrypted pages to disk" setting.

Generated Thu, 10 Nov 2016 01:40:25 GMT by s_hp90 (squid/3.5.20) | Search MSDN Search all blogs Search this blog Sign in IEInternals IEInternals A look at Internet Explorer from the inside

One of them should correct this issue. This is IE8 on WinXP. In our case the problem was caused by McAfee HBSS/IDS Reply Jon Hargett says: June 25, 2012 at 9:22 am This is for the one other person in the world that What's going on?

As a comment notes below, the behavior is slightly different for direct navigation (e.g. It worked fine when download from http://something in WinXP and windows7 (IE7)client. Alternating Fibonacci Wrong way on a bike lane? weblink It doesn't work if: You've not accessed my site with the current IE open and paste the link in the address bar.

River Crossing Puzzle Photographing Sea Turtles hatching on the beach What does "there lived here then" mean? Response.AppendHeader("Pragma", "no-cache") Response.AppendHeader("Cache-Control", "no-cache") Response.AppendHeader("max-age", "0") Some of the blogs says, to fix this issue, you should do some modification in Windows registry on Webserver and on all client machines(:O), well IE was not able to open this internet site. External visitors can access the files fine either via links or by entering the address directly into the browser.

Fixes: http://support.microsoft.com/kb/815313 http://support.microsoft.com/kb/323308 share|improve this answer edited Sep 14 '11 at 2:23 rymo 1,54821632 answered Jun 1 '11 at 22:40 David 6912 add a comment| up vote 3 down vote What's