user2064189
user2064189

Reputation: 81

An exception occurred when instantiating a COM object

I have upgraded from ColdFusion 6 to ColdFusion 10 and I'm encountering the following error:

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.

My call to the COM object:

<cfobject 
  type="COM" 
  action="create" 
  context="INPROC" 
  class="ASIUtil.Ccrypting" 
  name="crypting"
>

My ColdFusion runs on 32 bit and I know that ColdFusion 64 bit does not support COM interoperability. But Even though my ColdFusion is 32 bit I am encountering this problem.

Please help me find a way to make this work.

Upvotes: 3

Views: 1448

Answers (1)

Sanjeev
Sanjeev

Reputation: 1866

This is nothing to do with ColdFusion. All you have to do is to register the DLL. I have faced this problem too and after registering them, the object creation worked.

regsvr32 asiutil.dll

Important

Before you do the registration, make sure you back up any conflicting DLL and also, sometimes the DLL are locked because they are in use, so you may need to restart the server.

Upvotes: 1

Related Questions