locked
Response.TransmitFile not working with Internet Explorer 11 RRS feed

  • Question

  • My website works fine with FireFox, and it worked fine with Internet Explorer too up until a few weeks ago (at least).  Now, with Internet Explorer 11 (running on Windows 8 Pro 64 bit), when I click the button to download the file (a Word document), nothing happens.  In FireFox, a dialog is presented asking the user to save or open the file.

    What is going on???  I have been having nothing but problems with IE11.  Extremely poor performance all around.

    HELP!!!!

    Here is the C# code in question:

    Response.TransmitFile(filename_goes_here)
    Response.Flush();
    HttpContext.Current.ApplicationInstance.CompleteRequest();

    The three lines above are wrapped in a try/catch, and no exception is thrown.

    • Moved by Mike Danes Saturday, March 22, 2014 7:08 AM IE related
    Friday, March 21, 2014 6:38 PM

Answers

  • I rolled back my machine three weeks and everything works fine now. I then applied all the Windows updates again, and it is still working fine. I have no idea what caused my installation of IE 11 to stop being able to download files.
    Saturday, March 22, 2014 3:10 PM

All replies

  •  I just tried using my laptop, which is also running Windows 8.1 and IE-11, and it works fine! BUT, the laptop has a different version of IE-11!  On my desktop I am running 11.0.9600.16521 and on my laptop it is 11.0.9600.16518.
    Friday, March 21, 2014 8:11 PM
  • This is a web-related question. THose are best asked in the ASP.Net forum:

    http://forums.asp.net/


    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

    Friday, March 21, 2014 10:11 PM
  • Turns out that it's an IE11 problem. I can't download files ANYWHERE....
    Friday, March 21, 2014 10:39 PM
  • I rolled back my machine three weeks and everything works fine now. I then applied all the Windows updates again, and it is still working fine. I have no idea what caused my installation of IE 11 to stop being able to download files.
    Saturday, March 22, 2014 3:10 PM
  • Please just remove Response.Flush(); from your code!

    Hope this works!

    ;)

    • Proposed as answer by jbelisle Wednesday, July 17, 2019 7:53 PM
    Monday, December 29, 2014 2:24 PM
  • This worked!...Thank you!
    Wednesday, July 17, 2019 7:52 PM