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

时间:2012-09-07 15:38:22

标签: c# c#-4.0 internet-explorer-8 iis-7.5 icalendar

我正在尝试将一个appointment约会作为http响应发送给我的用户。它在Chrome和IE9中运行良好,但在IE8上(至少使用Windows XP)会弹出一条弹出错误消息“无法从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: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

1 个答案:

答案 0 :(得分:0)

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