Skip to main content
Known Participant
July 12, 2010
Question

Register com object

  • July 12, 2010
  • 1 reply
  • 1175 views

I am working on the ColdFusion website that is using the dll object.

For example it instances the com object in every page like this:

<CFSET Processor = CreateObject("COM", "mydll.Processor")>

I have the mydll.dll; I am not sure how I can register this dll in the ColdFusion. I work locally in my compyer (localhost)

Right now that I only copy the dll in the project folder and I get this 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

I really appriciate your help.

Thanks.

    This topic has been closed for replies.

    1 reply

    Inspiring
    July 13, 2010

    Things to try:

    1. Use the Regsvr32.exe utility to register the component in the Windows registry, only do this if it is not already registered. 
    http://support.microsoft.com/kb/249873

    2. The value of the "class" argument of CreateObject should refer to the ProgID of the COM component.  The ProgID can be found in the Windows registry.
    http://support.microsoft.com/kb/183771

    nikoo560Author
    Known Participant
    July 13, 2010

    I tried the regedit before but it gave me an error:

    Dll was loaded, but the DllRegisterServer entry point was not found.

    Inspiring
    July 13, 2010

    I suspect there is a problem with your dll file based on this article: http://support.microsoft.com/kb/249873