Creating Security Label Policy Modules

It seems that every so often I will see a request come in for assistance with creating a Security Label Policy.  Apparently the documentation on MSDN is not sufficient.  You can find the article here: http://msdn.microsoft.com/en-us/library/aa140148.aspx.  A couple of years ago the product team wrote a sample to augment the existing documentation.  The sample was…

0

COM Interop Advances in .NET 4.0

Misha has some great content about the advances in COM Interop in .NET 4.0.  Check it out: http://blogs.msdn.com/mshneer/archive/2008/10/28/better-eventing-support-in-clr-4-0-using-nopia-support.aspx  Also, 4 videos that describe how it all works: http://blogs.msdn.com/mshneer/archive/2008/10/29/face-made-for-emails.aspx

1

Troubleshooting Outlook COM Addins – Using Instrumentation

At this point, you should have done the following: Confirmed that COM can create your Addin using VBScript Confirmed that Outlook is finding your Addin’s registration and that the Addin is properly registered with COM Confirmed that Outlook is loading your DLL into it’s process Since you are confident that Office is at least loading…

1

Who disconnected my RPC!?

Ryan Gregg has a post out there that is worth a read for anyone who is automating Outlook out of process. Here is the post : http://blogs.msdn.com/rgregg/archive/2008/10/27/application-shutdown-changes-in-outlook-2007-service-pack-2-beta.aspx  

0

Desktop Heap (To Outlook): I am exhausted!

I recently worked on an issue where the customer was getting this error message when attempting to export items from his Calendar to a PST: “The add-in ‘<DLL Path>’ could not be installed or loaded.  This problem may be resolved by using Detect and Repair on the Help menu.”  We were able to narrow the…

1

Troubleshooting Outlook COM Addins – Using Process Explorer

Process Explorer is another tool in my arsenal when troubleshooting a COM Addin loading problem.  Often times developers will think that their Addin is not loading, when in fact it is.  The problem is that the Addin is not behaving as expected (e.g. “It’s not adding my toolbar button, when it should”).  To confirm that…

0

Troubleshooting Outlook COM Addins – Using ProcMon

As I explained in my first post, Office uses the ProgId found in the office specific Addin registry (\Software\Microsoft\Office\Outlook\Addins\) to activate the COM component.  Calling CoCreateInstance kicks off a series of COM calls which you can see the results of using Process Monitor (ProcMon).  ProcMon can be downloaded here http://technet.microsoft.com/en-us/sysinternals/default.aspx or if you have Windows…

0

Troubleshooting Outlook COM Addins – Using VBScript

Since Office uses COM to create Addins and _IDTExtensibility2 inherits from IDispatch it is available to scripting clients, a common technique I use to troubleshoot COM Addins are to see if I can create the component manually via a vbscript.  Use the following code to check whether or not COM can create your component:<code> Option Explicit…

0

Troubleshooting Outlook COM Addins – Introduction

I have decided to start a series called ‘Troubleshooting Outlook COM Addins’.  I want to outline tips and tricks to finding the root cause of COM Addin issues. Mainly, why the Addin doesn’t load.  I would say that this is the biggest call generator for our team at Microsoft so I thought having a series…

1

DevMsgTeam: New Team Aggregate Blog Feed

There are several members of my team at Microsoft that have active blogs with interesting content.  We’ve often thought about creating a team blog, much like the Exchange team or Outlook team or even the Exchange Developer team .  However, those seemed like time consuming solutions that would create yet another place to get our…

0