Error in opening .ics file in outlook 2003 created using ASP.NET 2.0

B

Bali

I have written code to create an .ics file and send it as an
attachment in mail. Once the attachment is received in mail and I try
to open it, I get the following error.

"This error can appear if you have attempted to save a recurring Lunar
appointment in iCalendar format.
To avoid this error, set the appointment option to Gregorian instead
of Lunar."

Following are the contents of the .ics file

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTART:20080830T080000Z
DTEND:20080904T180000Z
SUMMARY:Task - Test
LOCATION:Office
END:VEVENT
END:VCALENDAR

Could somebody please tell me what is wrong with this?

Your help is greatly appreciated.

Thanks

Sumeet
 
B

Brian Tillman

Bali said:
"This error can appear if you have attempted to save a recurring Lunar
appointment in iCalendar format.
To avoid this error, set the appointment option to Gregorian instead
of Lunar."

Google that error. There's plenty of information on what may be causing it.
One easy thing to try is to specify "VERSION:1.0" instead of "VERSION:2.0".

Apparently Outlook 2003/2007 requires both the DTSTAMP and UID statements
even though the RFC states they're optional.
See http://microformats.org/wiki/icalendar-implementations
 
B

Bali

Google that error.  There's plenty of information on what may be causing it.
One easy thing to try is to specify "VERSION:1.0" instead of "VERSION:2.0".

Apparently Outlook 2003/2007 requires both the DTSTAMP and UID statements
even though the RFC states they're optional.
Seehttp://microformats.org/wiki/icalendar-implementations

Thanks

I got rid of the line version 2.0 and it worked.

Sumeet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top