Are you running CFMX. If so make sure you have the proper Java stubs for
Outlook.

See Macromedia TechNote 22922, "Accessing Complex COM Objects in
ColdFusion MX using Java Stubs," for more info.

http://www.macromedia.com/support/coldfusion/ts/documents/tn18211.htm

--Nathan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 15, 2003 5:17 AM
To: CF-Talk
Subject: First foray into COM - getting an error

Why am I getting

"An exception occurred when instantiating a Com object.
The cause of this exception was that:
coldfusion.runtime.com.ComObjectInstantiationException: An exception
occurred when instantiating a Com object.. "

>From the following code ?

<cftry>
<!--- try to open a connection--->
<cfobject type="COM"
          name="objOutlook"
          class="Outlook.Application"
          action="">
<cfcatch>
<!--- if it doesn't exist then create a new connection --->
<cfobject type="COM"
          name="objOutlook"
          class="Outlook.Applicaton"
          action=""> </cfcatch>
</cftry>

Any COM folks shed some light onto this ?

Cheers,

Darren
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to