VCS File Downloading Issue with IE
Posted
by Sachin Gaur
on Stack Overflow
See other posts from Stack Overflow
or by Sachin Gaur
Published on 2010-02-01T10:36:08Z
Indexed on
2010/03/29
1:53 UTC
Read the original article
Hit count: 538
I am working on a http based (NOT Secure) Web Application. In this, I have provided a provision to add some appointment to the Client's outlook calendar. I am creating the .vcs file dynamically when clicked on a hyperlink. The code of generating .VCS file is:
string calendarFormat = GetVCSFormat();
Response.ContentType = "text/calendar";
Response.AppendHeader("content-disposition", "attachment; filename=MyCalendar.vcs");
Response.Write(calendarFormat);
Response.End();
It is working fine in all browsers except IE. It is giving me following error:
Internet Explorer cannot download GenerateAppointment.aspx from server.
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
Can anyone focus some light on it?
© Stack Overflow or respective owner