<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.officezealot.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Andrew Whitechapel</title><subtitle type="html" /><id>http://blogs.officezealot.com/whitechapel/atom.aspx</id><link rel="alternate" type="text/html" href="http://blogs.officezealot.com/whitechapel/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.officezealot.com/whitechapel/atom.aspx" /><generator uri="http://communityserver.org" version="2.1.61129.2">Community Server</generator><updated>2005-07-10T18:32:00Z</updated><entry><title>Moving Blog (Temporarily?)</title><link rel="alternate" type="text/html" href="http://blogs.officezealot.com/whitechapel/archive/2005/10/04/8161.aspx" /><id>http://blogs.officezealot.com/whitechapel/archive/2005/10/04/8161.aspx</id><published>2005-10-04T20:41:00Z</published><updated>2005-10-04T20:41:00Z</updated><content type="html">&lt;P class=StyleHeading2Before5ptAfter0ptLinespacingsingle style="MARGIN: 12pt 0in 0pt; mso-list: none"&gt;&lt;FONT face=Verdana size=2&gt;The &lt;A href="http://blogs.officezealot.com/chris/"&gt;Indefatigable Chris Kunicki &lt;/A&gt;started me blogging, and I've had my blog on the &lt;A href="http://www.officezealot.com/"&gt;OfficeZealot &lt;/A&gt;site ever since. Of course it goes without saying that the OZ site is the best place to be, and I've been very happy here.&amp;nbsp;However, I believe in trying new things, so I'm having a bash at the MSDN blog site for a while. I'll keep all my old posts on OZ for now, and cross-link.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=StyleHeading2Before5ptAfter0ptLinespacingsingle style="MARGIN: 12pt 0in 0pt; mso-list: none"&gt;&lt;FONT face=Verdana size=2&gt;So, for now at least, my blog is &lt;A href="http://blogs.msdn.com/andreww/default.aspx"&gt;here&lt;/A&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.officezealot.com/aggbug.aspx?PostID=8161" width="1" height="1"&gt;</content><author><name>whitechapel</name><uri>http://blogs.officezealot.com/members/whitechapel.aspx</uri></author></entry><entry><title>Good Misha and Evil Misha</title><link rel="alternate" type="text/html" href="http://blogs.officezealot.com/whitechapel/archive/2005/09/09/7953.aspx" /><id>http://blogs.officezealot.com/whitechapel/archive/2005/09/09/7953.aspx</id><published>2005-09-10T03:21:00Z</published><updated>2005-09-10T03:21:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Arial&gt;We're heading down to LA at the crack of dawn tomorrow morning (well, ok 1pm). PDC this year is going to be a blast. Lots of cool new stuff that's actually close to shipping, plus lots of really exciting newer stuff that's a little further away. A chance to see Microsoft's directions and roadmap. A chance to ask lots of tough questions. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;Now, if I'd taken the blue pill, if I'd been brainwashed by the machine, I'd say things like &amp;#8220;I'm super-excited about &lt;SOME gumph&gt;&amp;#8220;. Fortunately, of course, I took the red pill. I was chatting to a friend at &lt;/FONT&gt;&lt;A href="http://www.avanade.com/"&gt;&lt;FONT face=Arial color=#0000ff&gt;Avanade &lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Arial&gt;last night over a saucy little cab-sav, and he had an interesting observation. We're about to ship Whidbey: you'd think, we're 2 months away from shipping a major product, yet we take out huge swathes of the most critical people to spend a week in LA talking to developers. Not to mention the zillions of person-hours that have gone into prepping for PDC - the decks, the demos, the early builds, just the logistics + scheduling nightmare etc etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;How does this make any sense? Are we insane to do this? So here's the thing. We're pretty confident about the quality of the Whidbey release, so we're locking down now and in the final stages of shipping. Not quite a done-deal, but very nearly. On the other hand, we're well into Orcas planning, and we need input from professional developers. We really &lt;EM&gt;really&lt;/EM&gt; need all PDC attendees to give us feedback, tell us your requirements, tell us what &lt;EM&gt;you're&lt;/EM&gt; &amp;#8220;super-excited&amp;#8220; about, and what you're super-frustrated about. We need as many different perspectives as possible, from SMBs, Enterprise customers, Partners, ISVs and Microsoft field people.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;All Microsoft staffers&amp;nbsp;have to wear school uniform (khaki slacks, blue Microsoft shirt), so you can't miss us. Don't be shy. Don't let us get away with anything. You see any one of us, you come up and talk to us.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;Of course, at the same time as getting input from you (oh, sorry, &amp;#8220;you-all&amp;#8220;), we'll be boasting about the wonderful shiny new stuff we've been working on back at the ranch. There will be some stuff you'll &amp;#8220;ooh&amp;#8220; + &amp;#8220;ah&amp;#8220; about, make no mistake. We're &lt;EM&gt;very&lt;/EM&gt; pleased with our new toys. Developers have never had it so good.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;To make sure we do the best possible job, I'm taking all my best people - well, the ones we can take out and put in front of real people, anyway - not the ones we have to keep chained up in the cellar. The exception to this rule is &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/mshneer/"&gt;&lt;FONT face=Arial color=#0000ff&gt;Misha Shneerson&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Arial&gt;.&amp;nbsp;We decided that as PDC will be chock-full of uber-geeks, we simply had to bring Misha. There is no tough question you can possibly ask that Misha can't answer. Misha knows all the inner workings of our scariest hairiest code. So here's a challenge to PDC attendees: can you ask a question that stumps Misha? I'll bet you a free soda you can't.&amp;nbsp;(Oh, the sodas are free anyway? OK, I'll bet you &lt;EM&gt;two&lt;/EM&gt; free sodas). Bring it.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.officezealot.com/aggbug.aspx?PostID=7953" width="1" height="1"&gt;</content><author><name>whitechapel</name><uri>http://blogs.officezealot.com/members/whitechapel.aspx</uri></author></entry><entry><title>PDC Los Angeles Sep11-18</title><link rel="alternate" type="text/html" href="http://blogs.officezealot.com/whitechapel/archive/2005/09/05/7899.aspx" /><id>http://blogs.officezealot.com/whitechapel/archive/2005/09/05/7899.aspx</id><published>2005-09-05T21:31:00Z</published><updated>2005-09-05T21:31:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana&gt;Blimey, 2 months have gone by since my last post. Apart from shipping Whidbey (a minor detail), I've been coordinating PDC this year for my team (VSTO). We have 8 sessions, an all-day pre-con session, 2 Hands-on-Labs, slots in keynotes, and a bunch of demos. PDC this year is about Vista and about Office 12 - both areas where we have a strong part to play. So, we're sending about a dozen people to LA for the duration. This is a big deal - especially if you remember that we're also still in the final stages of shipping VS Whidbey. Taking a big crew down to PDC at this time is a tough call, but we're very keen to expose our stuff to professional developers, and to get as much feedback as we can. &lt;EM&gt;Make sure you get hold of us and talk to us&lt;/EM&gt;. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;This is especially important as we head into planning for v3. VSTO 2005 (v2) ships with Whidbey in a couple of months. We're already working on v3 (the VS Orcas release). We'll be demo-ing a very early pre-alpha release of our v3 at PDC, targeting Office 12. The focus of this will be my OFF417 session, which is all about v3 + O12:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://commnet.microsoftpdc.com/content/sessionview.aspx?TopicID=25970281-600a-4bc4-8d6c-de41e51b5619"&gt;&lt;FONT face=Verdana&gt;OFF417 - Visual Studio Tools for Office 'v3': Creating Office Application Customizations&lt;BR&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana&gt;September 15, 2:15 PM - 3:30 PM&lt;BR&gt;Room: 409 AB&lt;BR&gt;Andrew Whitechapel&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;See how the next version of the Visual Studio Tools for Office (VSTO) will work with "Office 12" to provide application-level functionality for Visual Studio developers. Learn how the current popular capabilities for VSTO 2005 customizations of Word and Excel documents and add-ins for Outlook are being extended and broadened for "Office 12." This session walks through the development experience and capabilities, and dives into the implementation details that have made these advances possible. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;If you want to get up to speed with our VSTO 2005 (v2) release before the main conference, then you need to go to our all-day pre-con session on the Monday:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://commnet.microsoftpdc.com/content/precons.aspx#PRE10"&gt;&lt;FONT face=Verdana&gt;Visual Studio Tools for Office: Developer Solutions Platform &lt;BR&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana&gt;September 12, 10:00 AM - 5:30 PM&lt;BR&gt;Room: 511 ABC&lt;BR&gt;Eric Carter, Misha Shneerson, Chung Webster, Andrew Whitechapel &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;This session provides comprehensive coverage of the VSTO 2005 architecture, tools and feature set. We'll look at how the underlying VSTO plumbing works and the range of capabilities and power of Office that gets exposed as a result. Armed with this information, you'll be able to build robust managed solutions that extend Office applications to meet your business requirements. VSTO 2005 offers many significant enhancements over VSTO 2003 for document-based solutions for Word and Excel, introduces InfoPath extensibility, and adds capabilities for building application-level solutions through extending Outlook. You can easily build solutions that use managed controls on the document or workbook surface and in the custom Actions Pane. VSTO supports server-side manipulation of documents, simplified smart tag and smart document development, manifest-based deployment and update, and a strict security model. This pre-conference day gets you up to speed with VSTO 2005 - good preparation for the main conference which focuses on VSTO vNext (post-2005). Also learn about Microsoft's Mobile Web Services SMS add-in for Outlook. This talk covers how we built a rich Outlook add-in providing seamless user interface integration using the .NET Framework, VSTO 2005 and the Outlook 2003 Object Model.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;Here's a list of the sessions which have VSTO content (some more, some less), mostly in the Office track:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://commnet.microsoftpdc.com/content/precons.aspx#PRE10"&gt;&lt;FONT face=Verdana&gt;PRE10&amp;nbsp;VSTO 2005 (v2)&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://commnet.microsoftpdc.com/content/sessionview.aspx?TopicID=25970281-600a-4bc4-8d6c-de41e51b5619"&gt;&lt;FONT face=Verdana&gt;OFF417&amp;nbsp;Visual Studio Tools for Office 'v3': Creating Office Application Customizations&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://commnet.microsoftpdc.com/content/sessionview.aspx?TopicID=27cc949f-6850-42f1-9713-809daee8d649"&gt;&lt;FONT face=Verdana&gt;OFF304&amp;nbsp;Assembling, Repurposing and Manipulating Document Content Using the New Office File Format&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;September 13, 4:15 PM - 5:30 PM&lt;BR&gt;406 AB&lt;BR&gt;Brian Jones&amp;nbsp; &lt;BR&gt;The new Microsoft Office Open XML Formats are the default XML file formats for "Office 12". The power and accessibility of these XML file formats are designed for programmability and open up numerous scenarios for manipulating files, creating files from scratch, repurposing content and merging files with business data. This session explains the architecture of the new Open XML Formats, details of the application schemas and walks through how to create a couple of detailed solutions using the WinFX API to control file content. &lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://commnet.microsoftpdc.com/content/sessionview.aspx?TopicID=8aa98d01-880b-4f6b-9dab-4ed1c0ca31c1"&gt;&lt;FONT face=Verdana&gt;OFF312&amp;nbsp;'Outlook 12' extensibility: Building messaging and collaboration solutions&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;September 15, 10:00 AM - 11:15 AM&lt;BR&gt;406 AB&lt;BR&gt;Randy Byrne&amp;nbsp; &lt;BR&gt;This session highlights the more important fundamental changes that will make "Outlook 12" a better development platform-making it easier to build solutions that are immediately more robust, usable and manageable. Learn about significant changes in programming the user interaction, the core object model and performance. &lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://commnet.microsoftpdc.com/content/sessionview.aspx?TopicID=f5e9158c-9ebf-40dd-a29e-3889a2b82cfa"&gt;&lt;FONT face=Verdana&gt;OFF319&amp;nbsp;'InfoPath 12': Developing forms for the smart client and browser&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;September 15, 3:45 PM - 5:00 PM&lt;BR&gt;502 AB&lt;BR&gt;Ned Friend&amp;nbsp; &lt;BR&gt;Rapid development of both client and browser forms is central theme of the next version of InfoPath. This session covers what's changed in forms development for "Office 12." Drill into deeper integration with Visual Studio Tools for the Microsoft Office System and the new all-managed object model. Learn how to reuse your work through form template parts and through migrating your existing forms investments with the importer/exporter framework. Understand how to integrate InfoPath forms into your own application by hosting InfoPath as an ActiveX or WinForm control, and how to extend InfoPath itself through COM add-ins. &lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://commnet.microsoftpdc.com/content/sessionview.aspx?TopicID=3ef70e57-7b1d-4ba6-b926-a17d4fcb9867"&gt;&lt;FONT face=Verdana&gt;OFF302&amp;nbsp;'Office 12': Developing with the new user experience customization model&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;September 13, 2:45 PM - 4:00 PM&lt;BR&gt;402 AB&lt;BR&gt;Andy Himberger&amp;nbsp; &lt;BR&gt;"Office 12" is introducing a new, declarative model for customizing the Office user interface using XML. This session dives into the details of the markup and the resulting behavior, describes how the markup interacts with DLL-based code, and provides guidance for migrating existing solutions and developing new ones. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;A href="http://commnet.microsoftpdc.com/content/sessionview.aspx?TopicID=b5c2c547-0043-4ac2-8865-9d47b98d3656"&gt;&lt;FONT face=Verdana&gt;OFF316&amp;nbsp;XML-based Programmability for Flexible 'Word 12' Document Solutions&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;September 15, 11:30 AM - 12:45 PM&lt;BR&gt;406 AB&lt;BR&gt;Tristan Davis&amp;nbsp; &lt;BR&gt;Word 2003 introduced the concept of structured documents with its support for custom XML. This session will show how Word "12" takes XML document programmability to a new level, offering improved robustness, more intuitive user interaction, and true data/view separation using the new XML file format. A basic overview of the improved out of the box capabilities (incl. integration with Windows SharePoint Services) will be introduced, and then the power behind those will be shown through a more complex scenario leveraging these features. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;Finally, don't forget to try out our Hands-on-labs: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;OFFHOL11 VSTO v3 Hands-on-lab&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.officezealot.com/aggbug.aspx?PostID=7899" width="1" height="1"&gt;</content><author><name>whitechapel</name><uri>http://blogs.officezealot.com/members/whitechapel.aspx</uri></author></entry><entry><title>PDC 05</title><link rel="alternate" type="text/html" href="http://blogs.officezealot.com/whitechapel/archive/2005/07/17/7548.aspx" /><id>http://blogs.officezealot.com/whitechapel/archive/2005/07/17/7548.aspx</id><published>2005-07-18T06:30:00Z</published><updated>2005-07-18T06:30:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana size=2&gt;PDC will be in Los Angeles again this year. For details, start &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/events/pdc/"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;. For anyone who went in 2003, a few points:&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face=Verdana size=2&gt;The event was very crowded last time, so this year there's a (slightly) lower maximum number of attendees. This is good news for the simple logistics of getting from session A to session B, and it means you need to register *early* if you want to be sure of a place. &lt;/FONT&gt;
&lt;LI&gt;&lt;FONT face=Verdana size=2&gt;Yes, we will be talking about Longhorn again - but this time it's a lot closer to real shipping dates (honest, guv). &lt;/FONT&gt;
&lt;LI&gt;&lt;FONT face=Verdana size=2&gt;As always, we're targeting professional developers, so expect very little marketing material and lots of very in-depth technical detail.&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;The sessions are organized into 6 tracks, which are summarized &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/events/pdc/agenda/tracks/default.aspx"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;. You can get a (nearly) complete list of all sessions &lt;/FONT&gt;&lt;A href="http://commnet.microsoftpdc.com/content/sessions.aspx"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;This year there are 2 days of &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/events/pdc/agenda/precon/default.aspx"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;pre-conference sessions&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;, with about 8 different technology tracks on each day. This starts Sunday 11 September. On Monday 12 September, there'll be a full day of VSTO pre-con sessions - this will focus on VSTO 2005 and is designed to get you up to speed on the version we ship with Whidbey. The main conference sessions are more forward-looking, and focus on vNext - the version aimed at Office 12 and Orcas.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;This year's event promises to be a lot of fun, and a lot of work. In addition to the pre-con, keynotes, breakout sessions and lunchtime sessions, we're also putting a lot of stuff into the BAR (that's big-ass room to you) - track lounges, ATE, BOF, HOLs, vendor pavilion, internet alley, and the bean-bag lounge.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Be there, or be square - register &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/events/pdc/registration/default.aspx"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG src="/images/blogs_officezealot_com/whitechapel/195/o_Banner_reg2_resized.jpg"&gt;&lt;/FONT&gt;&lt;img src="http://blogs.officezealot.com/aggbug.aspx?PostID=7548" width="1" height="1"&gt;</content><author><name>whitechapel</name><uri>http://blogs.officezealot.com/members/whitechapel.aspx</uri></author></entry><entry><title>Outlook Shutdown and VSTO Add-ins</title><link rel="alternate" type="text/html" href="http://blogs.officezealot.com/whitechapel/archive/2005/07/10/6747.aspx" /><id>http://blogs.officezealot.com/whitechapel/archive/2005/07/10/6747.aspx</id><published>2005-07-11T01:32:00Z</published><updated>2005-07-11T01:32:00Z</updated><content type="html">&lt;P class=MsoNormal style="MARGIN: 6pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Just back from Amsterdam. My TechEd talk on VSTO Outlook Add-in Support was the usual curate's egg. Some people liked it, and welcomed the technical detail. Others - curiously for a 'technical education' conference, felt that it was _too_ technical and complained that I hadn't cracked enough jokes. Oh well, takes all sorts I suppose &amp;lt;sigh&amp;gt;. Anyway, continuing the theme, some more technical details follow...&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Under some circumstances, when Outlook is hosting COM add-ins, Outlook doesn&amp;#8217;t shut down cleanly - the add-in&amp;#8217;s OnDisconnection method doesn&amp;#8217;t get called if the add-in has outstanding variables that are still holding Outlook objects. This is effectively a deadlock: the add-in will keep holding references until it gets an OnDisconnection call, but Outlook never makes the OnDisconnection call because the add-in is still holding references. This is a problem with traditional IDTExtensibility2 add-ins, and we have addressed the problem with VSTO IStartup add-ins.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;The VSTO AddinLoader.dll and the VSTO runtime itself are very largely host-agnostic. That is, they consist almost entirely of functionality that is generic and can be re-used across multiple host applications. The only application-specific functionality in AddinLoader.dll is a workaround for the Outlook shutdown problem.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;AddinLoader listens to Outlook&amp;#8217;s Explorer.Close, Inspector.Close and Application.Quit events.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;When there are no Explorers/Inspectors open or when Application.Quit is raised, it calls the Shutdown method on the IStartup add-in, and then unloads the AppDomain thereby cleaning up the references that are making Outlook not shut down cleanly. This covers the vast majority of Outlook add-ins.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;However, there is another problem with Outlook&amp;#8217;s shutdown behavior. Outlook is often automated externally without showing any UI. For example, ActiveSync does this. In this situation, the count of Explorers and Inspectors starts at zero, so it may never go above zero, but even if it does, when it returns to zero it is no longer safe to assume that this indicates that Outlook is shutting down. To further complicate the issue, Outlook may start without UI through automation, but then the user may interactively launch Outlook &amp;#8211; which merely makes the current running instance of Outlook show its UI.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;To mitigate (but not completely fix) these problems, we keep track of add-ins that want to load, and support a &amp;#8216;dormant&amp;#8217;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;add-in state where the add-in is not loaded but we are aware that it might need to be loaded. This is the behavior: &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in 6pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="mso-fareast-font-family: Verdana"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Verdana size=2&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;Outlook starts (with or without UI).&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in 6pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="mso-fareast-font-family: Verdana"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Verdana size=2&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;AddinLoader is loaded for each add-in.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in 6pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="mso-fareast-font-family: Verdana"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Verdana size=2&gt;3.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;If (UI is present), we load the add-in, and proceed normally.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in 6pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="mso-fareast-font-family: Verdana"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Verdana size=2&gt;4.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;Else (UI is not present), we don't load the add-in, but we remember that this add-in tried to load. That is, we put the add-in into the &amp;#8216;dormant&amp;#8217; state. The unmanaged AddinLoader component itself remains loaded, but no managed code is loaded yet, and no AppDomain is created yet.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in 6pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="mso-fareast-font-family: Verdana"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Verdana size=2&gt;5.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;Each instance of AddinLoader sinks the NewExplorer and NewInspector events. These will fire when Outlook shows any UI. When we get a NewExplorer/NewInspector event, we load the 'dormant' add-in, and proceed normally.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in 6pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="mso-fareast-font-family: Verdana"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Verdana size=2&gt;6.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;AddinLoader also sinks the ExplorerClose and InspectorClose events. These fire when Outlook windows are closing. When we get one of these events, if the count of Explorers and Inspectors is zero (meaning that there is no UI), we unload the add-in, again returning it to the &amp;#8216;dormant&amp;#8217; state (so that we can load it again later, if required). &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in 6pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="mso-fareast-font-family: Verdana"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Verdana size=2&gt;7.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;When we unload the add-in, we also tear down the AppDomain &amp;#8211; in fact, this is how we unload the add-in assembly itself.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 6pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;This &amp;#8216;dormant state&amp;#8217; functionality extends our shutdown support to cover an additional category of add-ins that cannot function without UI.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.officezealot.com/aggbug.aspx?PostID=6747" width="1" height="1"&gt;</content><author><name>whitechapel</name><uri>http://blogs.officezealot.com/members/whitechapel.aspx</uri></author></entry></feed>