【问题标题】:.ics files not opening in Chrome Mobile for Apple Devices.ics 文件无法在适用于 Apple 设备的 Chrome 移动设备中打开
【发布时间】:2013-05-14 14:57:02
【问题描述】:

我收到错误 102 ():未知文件类型。尝试从 ASP.Net 应用程序下载 .ics 文件时。该文件如下所示:

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

我在 C# 中的响应代码是这样的:

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();

有什么建议吗?

【问题讨论】:

  • 你找到解决办法了吗?
  • 我不记得了,我已经不在这家公司了,忘记了发生了什么,对不起!

标签: c# google-chrome mobile icalendar


【解决方案1】:

我所读到的所有内容都表明无法通过 Chrome 移动版实现。如果你找到答案,我也会感兴趣。

如果有任何帮助,我知道可以通过 Safari Mobile。答案就在这里:

How do you add a link that will add an event to your iPhone calendar from safari?

使用 Safari Mobile,解决方案只是链接到 .ics 文件,但在 iOS 5 之前,Safari Mobile 甚至无法做到这一点。

对不起,祝你好运!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-10-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-13
    • 2015-09-09
    • 2018-01-29
    • 2016-10-03
    相关资源
    最近更新 更多