Search my blog

Some of my readers



I was dealing with a MAPI application in C# and when I tried to call the following code I got a nasty error message:

MAPI.Session session = new MAPI.Session();

The actual error message I received was

Error: Retrieving the COM class factory for component with CLSID {3FA7DEB3-6438-101B-ACC1-00AA00423326} failed due to the following error: 80040154.

My development environment is:

  • Windows Vista Ultimate x64
  • Microsoft Visual Studio 2005

I found that my application Platform Target was set to Any CPU, changing this to X86 resolved the error.

image

posted on Monday, September 17, 2007 9:59 AM |