Je reçois une erreur 102(): Type de fichier inconnu. lorsque vous essayez de télécharger un fichier .ics à partir d'une application ASP.Net. Le fichier ressemble à ceci:Les fichiers .ics ne s'ouvrent pas dans Chrome Mobile pour les périphériques Apple
BEGIN:VCALENDAR
PRODID:-//Test
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
UID:uid
CLASS:PUBLIC
DTSTART:20130506T173000
DTEND:20130506T190000
DESCRIPTION;ENCODING=QUOTED-PRINTABLE: What would you do with an extra $2500?
SUMMARY:Smoking Cessation May
PRIORITY:0
LOCATION:ARMC Theater
END:VEVENT
END:VCALENDAR
Mon code de réponse en C# est la suivante:
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.AddHeader("Content-Disposition", String.Format("attachment;filename={0}.ics", "example"));
HttpContext.Current.Response.ContentType = "text/calendar";
HttpContext.Current.Response.Write(calendarData.ToString());
HttpContext.Current.Response.End();
Toutes les suggestions?