File content / attachment fails in SSL

  • Thread starter Michael Brennan
  • Start date
M

Michael Brennan

I have the following code in a webpage meant to stream a file to the user
for download. It works perfectly in a non-ssl environment, but when I enable
SSL I get the message:

Internet Explorer cannot download (the url of the page is here) from (the
website is here).

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

Here is the code:

this.CurrentContext.Response.Clear();

this.CurrentContext.Response.ContentType = "application/octet-stream";

this.CurrentContext.Response.AddHeader("Content-Disposition",

"attachment; filename=" + strDisplayFileName);

this.CurrentContext.Response.Flush();

this.CurrentContext.Response.WriteFile(strFullPath);



Any help would be appreciated. Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top