tags:

views:

40

answers:

0

Hi Everyone,

My icalendar is not working in Microsoft Outlook.Its shows the following error.

"The file 'CalendarGlobal' is not a valid Internet Calendar File".The calendar file format is like this.webcal://imanagepm.imanageproject.com/en-US/Feed/CalendarGlobal?Token=6ZaqESzgKNA%3d

The calendar opens properly in 30 boxes and the mozilla sunbird. To open this calendar in Microsoft Outlook please open this link in IE8.

Following the code for rendering calendar contents.

BEGIN:VCALENDAR
PRODID:-//jpalm.se//iCalendar example with ASP.NET MVC//EN
VERSION:2.0
<%if (Model.Events.Count > 1){%>
X-WR-CALNAME:<%=Model.Name%>
X-WR-CALDESC:<%=Model.Description%>
CALSCALE:GREGORIAN
METHOD:PUBLISH<%}%>
<%foreach(var evnt in Model.Events){%>
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
METHOD:REQUEST
BEGIN:VEVENT
DTSTART<%=Model.GetTimeString(evnt.StartTime,evnt.AllDay)%>
DTEND<%=Model.GetTimeString(evnt.EndTime,evnt.AllDay)%>
LOCATION:<%=evnt.Location%>
TRANSP:OPAQUE
SEQUENCE:0
UID:<%=evnt.UID%>
DTSTAMP<%=Model.GetTimeString(evnt.StartTime)%>
CREATED<%=Model.GetTimeString(DateTime.Now)%>
LAST-MODIFIED<%=Model.GetTimeString(DateTime.Now)%>
DESCRIPTION:<%=evnt.Description%>
X-ALT-DESC;FMTTYPE=text/html:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//E
        N">\n<HTML>\n<HEAD>\n<TITLE></TITLE>\n</HEAD>\n<BODY><%=evnt.HtmlDescription%></BODY>\n</HTML>
SUMMARY:<%=evnt.Title%><%if(evnt.Reminder){%>
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
PRIORITY:5
END:VALARM<%}%>
END:VEVENT<%}%>
END:VCALENDAR

Os :Windos Xp. Technology Used: Asp.net mvc.