Local Registration of Remote COM Server

System:
An Active Form Application embbeded in a simple html page. The Application interacts with an Automation server residing on a remote machine. The Active Form will Auto Connect to the Automation server on a predefined machine.

The html page resides on a web server.

Problem:
When a client pc loads the page the embedded ActiveX application tries to connect to the Remote Automation Server,but fails.

Question: Does the client PC have to have entries in its registry describing the remote automation server?
bfjvrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rwilson032697Commented:
Listening
0
ellessarCommented:
No it does not require that the remote automation server be registered, but only if your application can connect to the remote server on it's own. For instance, the Midas TDCOMConnection object can connect to a remote server, as can the TSocketConnection. If you are not using internal mechanisms to connect, then you will need to register the server so that the object can be found (using Distributed COM). For windows 95 this means a downloaded application (search for DCOM95), WinNT and Win98 come with a dcom configuration tool.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bfjvrAuthor Commented:
The component in the client was imported from the automation object's type library and installed as a component in Delphi5.

This component has machine name and connect kind properties - therefor I take it that it knows how to connect to the remote server on its own.

However, it still gives trouble on client machines
0
bfjvrAuthor Commented:
I have reworked things somewhat and now have the following situation:

The Client PC has no registry entries describing the server. (WHAT I WANT)

When a client pc loads the html page, I can see that the embedded ActiveX control (ActiveForm)makes a connection to the server - I know this because if I try to close the server, it tells me that the server is in use and cannot be shut down.If the server is not in use, one can normally just exit it without any warnings.

However, when I try and execute one of the server methods from the client, the client reports the following error -Interface not Supported.

If I run the Server.exe once on the client PC it adds entries to the client pc registry which describe the server (WHICH I DONT WANT). After this, the whole thing work correctly.

Any comments would be appreciated.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.