none
IE11 throwing error - .xls couldnt be downloaded. Error is only with IE11. Working in other browsers.Its ASP.NET application. RRS feed

  • Question

  • Hi,

    In my ASP.NET application (VS2013), excel file dowload function is written as below.

     Response.Clear()
     Response.AddHeader("content-disposition","attachment;filename=xyz.xls")
     Response.ContentType = "application/vnd.xls"
    ....
    ....
     Response.Flush()
     HttpContext.Current.ApplicationInstance.CompleteRequest()

    It is working fine in IE8, Mozilla and chrome

    but in IE11 its not working properly.Giving error "xyz.xls couldnt be downloaded"

    Strange thing is that, on very few client systems it works in IE11 too.

    Please help on this.

    Thanks in advance for your help !

    Friday, July 31, 2015 7:11 AM

All replies