• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 515
  • Last Modified:

VB-Client/Server(DCOM)

Sir,
  I have developed a DCOM application in Vb6.0 to get the
machine time of the machine.
Client connects to server ,gets the time and display's the time.Server gives the machine time to client.
   Problem is if client and server are in the same machine
it works correctly.Please help in seperating client and server.
Regs
Subramanya
0
Subramanya
Asked:
Subramanya
  • 4
  • 3
  • 2
  • +4
1 Solution
 
marconovaroCommented:

I can't understand your question:

"Problem is if client and server are in the same machine
it works correctly"

Where is the problem ? :-)
Anyhow, separating the client and the server using DCOM is straightforward.

1. Install the server application on the server machine, and register it as a normal COM application (regsvr32)
2. Install the client application on the client
3. Now, you have to "tell" the client where he can find the server. You can do that with:

clireg32 -s <Name of the server PC> -d myDCOMProject.vbr

Hope this helps.
M.
0
 
ClivenCommented:
You must set the dcomconfig first
key in DCOMCNFG.EXE at run and press ok to config your server program

0
 
CimperialiCommented:
Remember: when making the server, choose "Remote Server"
Then you will have a "vbr" file.
When building setup for client, remove the server file (.dll or .exe) and include the "vbr" file...
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
SubramanyaAuthor Commented:
 When i run the client in the same machine it works fine but when run on different machine it gives error429 server object can not be instantiated.
  My server machine is win98,I have done the normal setting requirements. tell if you can helpout.
regs
Hegde
0
 
marconovaroCommented:

1. the server has to be an ActiveX EXE to run across DCOM. If the server is an ActiveX DLL, it cannot be used with DCOM (or, better, it needs an EXE to use it)

2. If you use Win98, you'll have to launch the server, then go to the client and activate that. DCOM will not run your ActiveX EXE on a 98 server (it could do on NT or 2000).

Hope this helps
M.
0
 
SubramanyaAuthor Commented:
I made some setting changes using DCOM config
then it give the error70 permission denaied.
  I tryed running the server in WinNT.then also it give the
error 70.give some answer.
hegde
0
 
marconovaroCommented:

Hi,

that's quite a "normal" problem ... :-) It means that DCOM does not recognize your logged in user name as one of the users that have the rights to access your server.

Some questions about your network:

1- are you using an NT domain?
2- are you using a workgroup?

In case 1, you shall use DCOMCNFG on the server to allow access to the user name that is logged in on the client machine. If your application is generating events, you shall also do this on the client, allowing access to the server's user name.

In case 2, there is no way of using DCOM authentication. This means that you shall disable all authentications made by DCOM. To do this, choose your applcation and set "Authentication level" to "none" on both the client and the server.

Hope this helps
M

 
0
 
CimperialiCommented:
Be sure RPC protocol is running on client and server machines. It is a service (or a protocol, like Tcp/Ip).
0
 
SubramanyaAuthor Commented:
Myne is workgroup.
   I changed athentication level to none after running
dcomcnfg at server exe,but couldn't do at client side
because it doesn't appear at client side.
   the problem exists.
hegde
0
 
marconovaroCommented:

If your client is running Windows 98, you have to download and install this:

"Error Message: Cannot Find the File 'Dcomcnfg'"
http://support.microsoft.com/?kbid=253311

Verify, with dcomcnfg:

1. "Enable DCOM on this computer" is set
2. That the first protocol on the list is TCP/IP

Have a look to the following article:

"HOWTO: Troubleshoot Run-time Error '70' in DCOM Applications"
http://support.microsoft.com/default.aspx?scid=kb;en-us;180384

and

"HOWTO: Configure DCOM for Visual Basic Using DCOMCNFG.EXE"
http://support.microsoft.com/default.aspx?scid=kb;en-us;183607


Hope this helps
Let me know
M
0
 
CleanupPingCommented:
Subramanya:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
 
DanRollinsCommented:
Subramanya, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Save as PAQ -- No Refund.

DanRollins -- EE database cleanup volunteer
0
 
YensidModCommented:
Question is PAQ'd and no points refunded.

YensidMod
Community Support Moderator @Experts Exchange
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 3
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now