无法从 mywebsite.com 生成 ie8 的 ical 事件:"无法下载文件.aspx。无法打开此网站...'



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

我该如何解决此问题?

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

以下是来自我的网络服务器的原始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:test1ntest2
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:nn       https://www3.gotomeeting.com/ojoin/nnn2. Choose one of the following audio options:nn   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.nnn   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.nnn   Toll-free: 1 877 568 4108n   Toll: +1 (951) 266-6130nAccess Code: 70n   Audio PIN: Shown after joining the meetingnnnGoToWebinar®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

我一直在通过电子邮件直接向用户发送该日历请求的链接。我很难弄清楚,所以我把它改为链接到一个登录页,用户可以在那里点击链接来生成日历邀请。它解决了问题。欢迎其他解决方案!

最新更新