1

I have used DDay.iCal library in .NET to send event.

Sending event is working fine and event can be added to Google calendar, but for cancelling the event, after sending cancellation email, event is still in Google calendar.

Could you please guide me how to cancel Google Calendar event with iCal?

This is my event file:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ddaysoftware.com//NONSGML DDay.iCal 1.0//EN
BEGIN:VEVENT
DESCRIPTION:a
DTEND:20130820T180000
DTSTAMP:20130820T050748Z
DTSTART:20130820T180000
SEQUENCE:0
SUMMARY:a
UID:c7da09c3-12c3-4e6c-8ab4-4c9bdede2221
END:VEVENT
END:VCALENDAR

This is my Cancellation event file

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ddaysoftware.com//NONSGML DDay.iCal 1.0//EN
METHOD:CANCEL
BEGIN:VEVENT
DESCRIPTION:acancel
DTEND:20130820T180000
DTSTAMP:20130820T050748Z
DTSTART:20130820T180000
SEQUENCE:1
STATUS:CANCELLED
SUMMARY:acancel
UID:c7da09c3-12c3-4e6c-8ab4-4c9bdede2221
END:VEVENT
END:VCALENDAR
Cœur
  • 37,241
  • 25
  • 195
  • 267
paris
  • 19
  • 3
  • I see a bunch of capitalized characters and numbers with dashes in a row. Assumable is that there are line breaks, please edit your post above to make is more readable. – Broxzier Aug 20 '13 at 07:01
  • Okay. Welcome to SO. I edited the post for you, but cannot help you further myself. – Broxzier Aug 20 '13 at 07:10

2 Answers2

2

You are missing some mandatory properties like ORGANIZER and ATTENDEE in both the original event and in the cancellation. See https://www.rfc-editor.org/rfc/rfc5546#section-3.2.5

Then, you dont indicate what the full email looks like. For example, do you have a method=CANCEL in the content-type of your icalendar bodypart ? Should be something like:

Content-Type: text/calendar; method=CANCEL; charset=UTF-8;component=vevent
Community
  • 1
  • 1
Arnaud Quillaud
  • 4,420
  • 1
  • 12
  • 8
  • I have solved it, thanks. When I send the ics file to yahoo, it can not added to calendar and I add it manually through calendar tab, Is there any solution for this? – paris Aug 22 '13 at 06:09
  • @paris how did you solve it? if you solved it by different means then where posted here feel free to answer your own question. – Peter Jun 05 '15 at 11:30
1

I have all the relevant information, but Google Calendar just duplicates the event, instead of removing it.

Matthew Setter
  • 2,397
  • 1
  • 19
  • 18