Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM/DCOM (Remote Automation)
Message
 
To
19/10/2000 16:22:26
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00431523
Message ID:
00431830
Views:
17
>That does not work!
>I try on another server. The COM is registered and AutMgr32 is running.
>But this time at the first command line:
>obj=createobject("GetServerDateTime.cSQLDT")
>I got the message "RPC server is unavailable".
>
>Someone knows the meaning...?

You are using the syntax for COM.
If it is DCOM, you are supposed to call it with CREATEOBJECTEX() function
with server name, using ClassId or ProgID:

obj = createobjectEX("{2E341S03-11FC-4760-8E9D-CFCBE1655F13}", ,"\\MYSERVERNAME")

obj=createobjectEX("GetServerDateTime.cSQLDT", ,"\\MYSERVERNAME")

or name your server by IP Address:

obj = createobjectEX("GetServerDateTime.cSQLDT", "192.168.0.3")

Also probable reason of "RPC server is unavailable" message is wrong server name specified.
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