A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Error while creating Outlook-Application-Object on OL2003/Vista?



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old July 20th 07, 11:30 AM posted to microsoft.public.outlook.program_vba
wuschba
external usenet poster
 
Posts: 5
Default Error while creating Outlook-Application-Object on OL2003/Vista?

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?
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Access with Vista Windows Calendar DENNIS BROWN Outlook and VBA 0 March 31st 07 09:41 PM
Outlook Application ActiveWindow() always return Explorer object AtulSureka Outlook - Using Forms 3 October 10th 06 02:31 PM
Where is MS Forms 2.0 Object Library in OL2003 References? John E. Outlook - Using Forms 7 October 4th 06 05:25 PM
Runtime error 80004005 Creating Outlook.Application Dave Add-ins for Outlook 6 July 18th 06 10:18 PM
OL2003: Convert an Object JPL Outlook and VBA 2 June 6th 06 06:58 PM


All times are GMT +1. The time now is 12:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.