Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6752535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:03:22+00:00 2026-05-26T13:03:22+00:00

I’ve got this bit of code: Response.AddHeader(Content-type, application/vnd.openxmlformats-officedocument.wordprocessingml.document); Response.AppendHeader(Content-disposition, attachment; filename=Bio.docx); Response.BinaryWrite(lawyerBio.MakeDoc()); It works

  • 0

I’ve got this bit of code:

Response.AddHeader("Content-type", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
Response.AppendHeader("Content-disposition", "attachment; filename=Bio.docx");
Response.BinaryWrite(lawyerBio.MakeDoc());

It works just fine in all major browsers, but is failing in IE8.

What IE8 is doing is the first time I hit the page, it gives a popup error that says:

Internet Explorer cannot download ‘John-Smith’ from ‘site domain’.

Internet Explorer was not able to open this Internet site. The
requested site is either unavailable or cannot be found. Please try
again later.

If I hit OK, and then refresh the page, it downloads the file just fine, with the filename Bio.docx. It fails the first time, everytime and it works the second time, every time. John-Smith is the filename of the page this is taking place on, so it appears as if the first time through, it’s not picking up on the content-disposition.

Are there any known issues with IE8, or anything you guys can see that I’m doing wrong?

Cheers


Update

Below are the headers sent with this file:

        Array
(
    [0] => HTTP/1.1 200 OK
    [1] => Cache-Control: no-cache, no-store
    [2] => Pragma: no-cache
    [3] => Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
    [4] => Expires: -1
    [5] => Server: Microsoft-IIS/7.5
    [6] => Set-Cookie: website#sc_wede=1; path=/
    [7] => Set-Cookie: website#lang=en; path=/
    [8] => Set-Cookie: ASP.NET_SessionId=zabhwz55brq0ebfyjqn1c3bm; path=/; HttpOnly
    [9] => Content-Disposition: attachment; filename=Bio.docx
    [10] => X-AspNet-Version: 2.0.50727
    [11] => Set-Cookie: SC_ANALYTICS_GLOBAL_COOKIE=323F079A90B545F39F8A6A9EB9B919DB; expires=Fri, 26-Oct-2012 17:44:57 GMT; path=/
    [12] => Set-Cookie: SC_ANALYTICS_SESSION_COOKIE=118B88825A054BA1BAF327B0561C3EBB,1; path=/
    [13] => X-Powered-By: ASP.NET
    [14] => Date: Thu, 27 Oct 2011 17:44:57 GMT
    [15] => Connection: close
    [16] => Content-Length: 169581
)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:03:23+00:00Added an answer on May 26, 2026 at 1:03 pm

    I think the issue is the Cache-Control headers. See MSKB #323308. Despite its title, I have found a number of posts online that suggest that not caching downloading files might cause non-SSL websites to fail in Internet Explorer as well. I would try adding the registry value BypassHTTPNoCacheCheck that the KB article suggests – if it works then, you will need to remove the caching headers from your response.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
this is what i have right now Drawing an RSS feed into the php,
i got an object with contents of html markup in it, for example: string
Does anyone know how can I replace this 2 symbol below from the string
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have some data like this: 1 2 3 4 5 9 2 6

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.