Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Can';t为ie8生成ical事件:';无法从mywebsite.com下载file.aspx。无法打开此internet站点…';_C#_C# 4.0_Internet Explorer 8_Iis 7.5_Icalendar - Fatal编程技术网

C# Can';t为ie8生成ical事件:';无法从mywebsite.com下载file.aspx。无法打开此internet站点…';

C# Can';t为ie8生成ical事件:';无法从mywebsite.com下载file.aspx。无法打开此internet站点…';,c#,c#-4.0,internet-explorer-8,iis-7.5,icalendar,C#,C# 4.0,Internet Explorer 8,Iis 7.5,Icalendar,我正在尝试将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

我正在尝试将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

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