Note that there are some explanatory texts on larger screens.

plurals
  1. POWhere is the official documentation for programming an Outlook "internet calendar subscription"?
    primarykey
    data
    text
    <p>Are there any official sources for programming an Outlook "<a href="http://office.microsoft.com/en-us/outlook-help/view-and-subscribe-to-internet-calendars-HA010167325.aspx#BM2">internet calendar subscription </a>", described in the link as </p> <blockquote> <p>An Internet Calendar Subscription is a calendar that you download and view in Outlook. However, unlike a Calendar Snapshot, Internet Calendar Subscriptions are updated automatically.</p> </blockquote> <p>I'm using ASP.NET MVC and the <a href="http://www.ddaysoftware.com/Pages/Projects/DDay.iCal/">DDay.iCal library</a>. I have been unsuccessful creating such a calendar. I need answers to specific questions. I'm tired of guessing. And I won't accept random code, links to out-of-date codeproject articles, or anything else non-authoritative.</p> <p>The only concrete information I have is that the URL must </p> <ul> <li>begin with <code>webcal://</code></li> <li>end with a <code>.ics</code> filename</li> </ul> <p>I have to generate a unique and up-to-date calendar per user, preferably every time Outlook polls the address. I want to avoid hooking the calendar updates into the CRUD parts of the site. So, I need to know some specifics about what Outlook accepts.</p> <ul> <li><p>Can I use a controller/action that returns a <code>FileResult</code> (or derivative: stream, content, path) to dynamically generate the calendar when Outlook hits the address? </p></li> <li><p>Can I "fake" the ICS file/filename part of the URL by decorating the action, like <code>[ActionName("iCalFeed.ics")]</code>?</p></li> <li><p>Can I use an <code>ActionLink</code> to create the <code>webcal</code> link for the action, like <code>&lt;%= Html.ActionLink("Connect to Outlook", "iCalFeed.ics", "Schedule", "webcal", null, null, null, null) %&gt;</code>?</p></li> </ul> <p>I've tried some of these things in an ad-hoc fashion and Outlook loves to pop up and handle <code>webcal</code> links, but it shows nothing and displays no error messages. Is there somewhere to dig for Outlook web calendar import errors?</p> <p>If no to the above questions, is there another way to serve fresh contents every time Outlook polls the address? I'd rather not update the calender in sync with the CRUD operations on the site. That seems more complicated than is necessary.</p> <p>Either way, I also need to know what parts of the iCalendar specification Outlook requires to have a properly updating "subscription". I imported a <a href="http://severinghaus.org/projects/icv/">valid</a> ICS file as a regular "snapshot" with as little as a start/end date, summary, and location. But, apparently, there are some tricky parts of the spec, like</p> <ul> <li><p>Do I have to set the <code>METHOD</code> (<a href="http://tools.ietf.org/html/rfc2445">RFC2445</a> 4.7.2 Method)? I can't even find a decent description of this property or the values it accepts (is it client specific?).</p></li> <li><p>Do I have to keep track of event UIDs and change their disposition based on my system's CRUD operations? Or is adding/removing/updating the events from the calendar on subsequent polling good enough for Outlook to figure it out? If I have to keep track, now I have to add a whole layer of persistence and state-awareness to my application.</p></li> <li><p>If I'm keeping track, I've noticed in other SO questions that Outlook is real picky about the <code>ORGANIZER</code> property... does it have to be an email address or not? A <code>mailto:</code> link or just an address?</p></li> </ul> <p>I'm at the end of my rope. I'm willing to read documentation if it answers questions about actually building a website that generates proper calendar subscriptions. I haven't found anything on MSDN except this <a href="http://msdn.microsoft.com/en-us/library/cc463911%28v=exchg.80%29.aspx">strange conversion "algorithm"</a>. And, as far as I can tell, it's useless.</p> <p><hr/> To be clear, I can generate a basic ICS file for any user and launch it in Outlook manually. I cannot get any of my webcal links to work, at all.</p> <p><hr/> Do these other calendar RFCs come into play: <a href="http://tools.ietf.org/html/rfc2446">iTIP</a> and <a href="http://tools.ietf.org/html/rfc2447">iMIP</a>?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload