1
Vote

Export iCal error

description

Hi nsergiu, I know you have this in your TODO list but do you think it might be better to just remove it from the WSP download until it's functional?
 
I've taken a look at the error thrown and also the vCalendar.cs code but can't seem to find the cause. I think it's more than the undeclared variables on lines 381 and 436. :)

comments

nsergiu wrote Nov 28, 2010 at 2:41 PM

What is the error you get when you export the iCal?

panoone wrote Feb 7, 2012 at 12:50 AM

Hi nsergiu,

Apologies for the delay in replying. I've just been making some modifications to the solution to allow filtering and some additional error checking if the list is deleted or renamed. I still haven't managed to resolve all the undeclared variables in VCalendar.cs.

The error is simply:

The XML page cannot be displayed

Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.

Invalid at the top level of the document. Error processing resource 'http://devintranet/Pages/Home.aspx...

BEGIN:VCALENDAR
^

8<---

The VCalendar XML source is provided below. Should there be an XML header declaration and/or XSLT reference?

BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:Test-Events
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:tz
LAST-MODIFIED:20120207T012323Z
BEGIN:STANDARD
DTSTART:20110403T030000
TZOFFSETTO:10+00
TZOFFSETFROM:+0000
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20121007T020000
TZOFFSETTO:10+00+00
TZOFFSETFROM:10+00
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
SUMMARY:AllDayEvent1
DTSTAMP:20120130T104152Z
UID:6EEA5EDD-0D55-402D-962A-37B9922D6CE9
SEQUENCE:10
URL;VALUE=URI:http://devintranet/Lists/test-events/DispForm.aspx?ID=1
DURATION:P4D
DTSTART;VALUE=DATE:20120209
END:VEVENT
BEGIN:VEVENT
SUMMARY:AllDayEvent2
DESCRIPTION:Grrrr
DTSTAMP:20120130T104237Z
UID:41DB1AF7-1A78-4474-AAF4-3FDEDDF42DD9
SEQUENCE:10
URL;VALUE=URI:http://devintranet/Lists/test-events/DispForm.aspx?ID=2
DURATION:P2D
DTSTART;VALUE=DATE:20120214
END:VEVENT
BEGIN:VEVENT
SUMMARY:Event1
DTSTAMP:20120130T104308Z
UID:8189F5B9-34D3-4F53-84BD-95105F308B4B
SEQUENCE:10
URL;VALUE=URI:http://devintranet/Lists/test-events/DispForm.aspx?ID=3
DTSTART;TZID=tz:20120203T140000
DTEND;TZID=tz:20120204T180000
END:VEVENT
BEGIN:VEVENT
SUMMARY:Event3
DTSTAMP:20120130T104404Z
UID:803C5DBB-D8B7-42C9-B99D-51338C202C13
SEQUENCE:10
URL;VALUE=URI:http://devintranet/Lists/test-events/DispForm.aspx?ID=5
DTSTART;TZID=tz:20120222T000000
DTEND;TZID=tz:20120222T110000
END:VEVENT
BEGIN:VEVENT
SUMMARY:Event2
DTSTAMP:20120130T104454Z
UID:139EBE44-4730-4937-9F1E-E3839023336C
SEQUENCE:10
URL;VALUE=URI:http://devintranet/Lists/test-events/DispForm.aspx?ID=6
DTSTART;TZID=tz:20120218T110000
DTEND;TZID=tz:20120222T110000
END:VEVENT
END:VCALENDAR

panoone wrote Feb 7, 2012 at 2:52 AM

[UPDATE] This looks like a client issue. Have tested on other systems with same Windows and Office versions and the calendar is properly imported into Outlook.

wrote Feb 14, 2013 at 8:14 PM