> Having trouble using CFOBJECT to create an object on a box
> other than where the CF page itself is running. I've got two
> servers set up for testing this - one is 4.0.1, the other an
> eval of 4.5. I've got an example object, installed on both
> machines, that works just fine when the CFOBJECT tag doesn't
> try to specify the server - i.e. it creates the object locally.
> When trying to point the CFOBJECT tag from one box to the other,
> no go. I've tried it both directions, just in case there's an
> issue between CF Server versions (i.e. perhaps 4.0.1 wouldn't
> do it but 4.5 would).
>
> In both instances, I get:
>
> Error trying to create object specified in the tag.
>
> COM error 0x80040154. Class not registered
>
> Is there a way to, on one box, register an object on another
> box, so that CFOBJECT can call it correctly? Or is it perhaps
> an issue with the com object I'm using to test with (which is
> the "NTAccess" stuff from a UK group - Forta mentions it in
> his advanced book, in the COM section)?
There are two problems here.
1. NTAccess isn't a DCOM object, I don't think. That is, you won't be able
to install it on one machine and call it from another; objects that can be
instantiated remotely are Distributed COM objects, not just COM objects.
2. If it was a DCOM object, you'd still need to make sure that it can be
instantiated from the client (which is, in this case, your CF server). You
can use the OLEView tool to do this. You may have to register the object or
some related files on the client to make this happen. For example, if your
DCOM object uses ATL, you might have to register ATL.DLL on the client.
In addition, you might have to set up security and access controls on both
machines using DCOMCNFG.EXE.
In general, CF isn't the best environment from which to test COM/DCOM
connectivity problems. I generally use either ASP or WSH to test this stuff
first, then once I know it's working I'll try it from CFOBJECT.
Finally, if you're really trying to use the NTAccess stuff, there's a newer
version with lots more features, although it's no longer free:
http://www.softartisans.com/
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.