0

我正在尝试向我的用户发送一个 ical 约会作为 http 响应。它在 Chrome 和 IE9 中运行良好,但在 IE8 上(至少使用 windows xp)会引发弹出错误消息“无法从 mywebsite.com 下载 file.aspx。无法打开此 Internet 站点。请求的站点不可用或找不到。请稍后再试。'

我该如何解决这个问题?

我尝试过使用缓存控制标头和 MIME 类型,但还没有找到解决方案。

这是来自我的 Web 服务器的原始 HTTP 响应:

HTTP/1.1 200 OK
Cache-Control:  no-cache, no-store, must-revalidate
Pragma: no-cache
Content-Type:   text/calendar; charset=UTF-8
Content-Language:   en-US
Expires:    -1
Server: Microsoft-IIS/7.5
Set-Cookie: ASP.NET_SessionId=yndoq4voisfn03nkt1o3zluk; path=/; HttpOnly
Set-Cookie: VisitorStatus=11058043496; expires=Tue, 07-Sep-2032 15:16:44 GMT; path=/; HttpOnly
Content-Disposition:    attachment; filename=Webinar.ics
X-AspNet-Version:   4.0.30319
X-Powered-By: ASP.NET
Date:   Fri, 07 Sep 2012 15:16:44 GMT
Connection: close
Content-Length: 1409

BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
PRODID:-//ddaysoftware.com//NONSGML DDay.iCal 1.0//EN
BEGIN:VEVENT
DESCRIPTION:test1\ntest2
DTEND:20120914T160000
DTSTAMP:20120907T151644Z
DTSTART:20120914T150000
LOCATION:Webinar - See information below for the link and dial in informati
on
ORGANIZER:mailto:CommunityManager@mysite.net
SEQUENCE:0
SUMMARY:Charting Your Career Path Amidst Healthcare Reform.
UID:00000000-0000-0000-0000-000000000000
BEGIN:VALARM
ACTION:Display
DESCRIPTION:Reminder
DURATION:PT15M
TRIGGER:PT15M
END:VALARM
END:VEVENT
END:VCALENDAR

我发现这在其他人的网站上确实有效......所以如果有帮助的话,这是他们的原始回复。

HTTP/1.0 200 OK
Date:   Fri, 07 Sep 2012 15:06:08 GMT
Server: Apache
Content-Language: en-US
Content-Disposition: attachment; filename=webinar.ics
Connection: close
Content-Type: text/calendar; charset=UTF-8

BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:Pacific Time (US & Canada)
BEGIN:STANDARD
DTSTART:20061105T020000
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20070311T020000
RRULE:FREQ=YEARLY;BYDAY=2SU;BYMONTH=3
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
TZNAME:Daylight Savings Time
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=”Pacific Time (US & Canada)”:20120912T090000
DTEND;TZID=”Pacific Time (US & Canada)”:20120912T100000
LOCATION;ENCODING=QUOTED-PRINTABLE:Webinar - See conference call information below
UID:200000000013097050
DTSTAMP:20120907T150608Z
DESCRIPTION:1. Click this link to start or to join the Webinar:\n\n       https://www3.gotomeeting.com/ojoin/\n\n\n2. Choose one of the following audio options:\n\n   TO USE YOUR COMPUTER’S AUDIO:\n   When the Webinar begins, you will be connected to audio using your computer’s microphone and speakers (VoIP). A headset is recommended.\n\n\n   TO USE YOUR TELEPHONE:\n   If you prefer to use your phone, you must select “Use Telephone” after joining the Webinar and call in using the numbers below.\n\n\n   Toll-free: 1 877 568 4108\n   Toll: +1 (951) 266-6130\nAccess Code: 70\n   Audio PIN: Shown after joining the meeting\n\n\nGoToWebinar®\nWebinars Made Easy™\n
SUMMARY;ENCODING=QUOTED-PRINTABLE:Charting Your Healthcare Career
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
4

1 回答 1

0

我一直在电子邮件中直接向用户发送此日历请求的链接。我无法弄清楚,所以我将其更改为链接到登录页面,然后用户可以单击链接以生成日历邀请。它解决了这个问题。欢迎其他解决方案!

于 2012-09-10T19:40:13.483 回答