简体   繁体   English

无法为ie8生成ical事件:'无法从mywebsite.com下载file.aspx。 无法打开该网站...'

[英]Can't generate ical event for ie8: 'Unable to download file.aspx from mywebsite.com. Unable to open this internet site…'

I'm trying to send an ical appointment as an http response to my users. 我正在尝试向我的用户发送一次医疗约会作为http响应。 It works great in Chrome and IE9, but on IE8 (using windows xp at least) throws a popup error message 'Unable to download file.aspx from mywebsite.com. 它在Chrome和IE9中效果很好,但在IE8(至少使用Windows XP)上,会弹出一个弹出错误消息“无法从mywebsite.com下载file.aspx。 Unable to open this internet site. 无法打开该网站。 the requested site is either unavailable or cannot be found. 所请求的站点不可用或找不到。 please try again later.' 请稍后再试。'

How can I resolve this? 我该如何解决?

I've tried playing around with the cache control header and MIME type, but haven't found a solution yet. 我已经尝试过使用缓存控制标头和MIME类型,但是还没有找到解决方案。

Here is the raw HTTP response from my web server: 这是来自我的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

I found that this does work on someone else's website... so here's their raw response if it helps any. 我发现这确实可以在其他人的网站上运作...所以这是他们的原始回答(如果有帮助的话)。

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

I had been sending users the link to this calendar request directly in an email. 我一直在通过电子邮件直接向用户发送此日历请求的链接。 I was having trouble figuring it out, so I changed it to link to a landing page where users could then click on a link to generate the calendar invitation. 我在弄清楚它时遇到了麻烦,因此我将其更改为链接到登录页面,然后用户可以单击链接以生成日历邀请。 It solved the problem. 它解决了问题。 Other solutions welcome! 欢迎其他解决方案!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM