Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM/DCOM (Remote Automation)
Message
 
To
19/10/2000 11:44:50
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00431523
Message ID:
00431576
Views:
17
>GetServerDateTime is a COM developped to get remotely datetime from my server.
>DEFINE class cSQLDT AS CUSTOM OLEPUBLIC
> PROCEDURE GetDateTime
> RETURN datetime()
> ENDPROC
>ENDDEFINE
>
>Instancing is "Multi Use" and I built an executable (EXE).
>I got the following files:
>GetServerDateTime.EXE
>GetServerDateTime.TLB
>GetServerDateTime.VBR
>
>Client Registration:
>The VBR file is load into registry (with CliReg32) on the client workstation,
>and the RacMgr32 shows "Remote Transport: Remote Automation" and a good NetWork
>address and protocol (TCP/IP) in the Server Connection tab.
>
>Server Registration:
>The EXE is also registered on the server with the command tag /regserver, and
>the RacMgr32 shows "Allow Remote Creates By Key" and "Allow Remote Activation" for the Client Access tab.
>
>The AutMgr32 is running on the server. The setting of IP address is ok, because the following command got success: obj=createobject("GetServerDateTime.cSQLDT")
>However, when I try to get the datetime with command ?obj.GetDateTime
>the error message is occurs "OLE error code 0x8002801d: Library Not Registered".
>
>I need some help please...

Marc, what OS you are running on client and server?
I assume the server is NT and the client is Win95/98
I can tell you what works on mine:

Try to run DCOMCNFG.EXE on the client PC instead of RACMGR32
In Default Properties tab check "Enable Distributed COM on this computer"
Set "Default Autentication Level" to "None"
Leave "Default Impersonation Level" as "Identify"
Find your COM in the list and click Properties button
In General tab it should show path to your COM like:

C:\prg\mycom.exe /automation

On Location tab the checkbox "Run application on the following computer" should be checked. The computer name should be specified (like \\MYSERVERCOMPUTER
or IP address)

Security tab stays default.

DCOM setup Default Properties for the server computer are the same as on client.

My DCOM module properties:
General tab: "Autentication level" - Default
Location tab: Run Application on this computer is checked.
Other tabs are default.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform