G
Guest
Hi. I'm just trying to connect to Outlook 2003 from my C#-Application on
Vista. I added "Microsoft Outlook 11.0 Object Library" to the references of
my object, and then I'm calling:
using Outlook = Microsoft.Office.Interop.Outlook;
....
[STAThread]
static void Main(string[] args)
{
Outlook.Application application = new Outlook.Application();
}
Thats all. It works, when Outlook has not been started, but with Outlook
running, I get the error: Retrieving the COM class factory for component with
CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following
error: 80080005.
I installed the PIAs, and I checked that my references point to
\Windows\Assembly\GAC\.
Any ideas about that?
Vista. I added "Microsoft Outlook 11.0 Object Library" to the references of
my object, and then I'm calling:
using Outlook = Microsoft.Office.Interop.Outlook;
....
[STAThread]
static void Main(string[] args)
{
Outlook.Application application = new Outlook.Application();
}
Thats all. It works, when Outlook has not been started, but with Outlook
running, I get the error: Retrieving the COM class factory for component with
CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following
error: 80080005.
I installed the PIAs, and I checked that my references point to
\Windows\Assembly\GAC\.
Any ideas about that?