I\'m generating ics files ( iCalendar or RFC 2445 or however you call them) using a library that serializes the ical contents into a MemoryStream, or actually any type of stream
Just a guess: Do you need to Seek back to the start of the stream before you return it?
fs.Seek(0, 0);