Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DCOM: Connection failed Error 70: Permission Denied

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am using win2000 to run the dcom server appz and win95 to run the dcom client appz. Everytime, I tried to run the client appz (like a hellow world appz) to retrieve the time from the server, I get this message "Connection Failed Error 70, Permission Denied". I already tried changing the win2000 dcom properties "default authentication level" to
"connect" or "none" and it is still giving me this error message. I also changed the server appz property such as "authentication level" to none (on win2000). Nothing seems to work. I just cannot connect to the server.
I already spent 3 or 4 hours on it. This is giving me a headache. Can someone please tell me what I am doing wrong?

:-(

Thanks.
Sam
 
i have been getting the same "Run-time error '70': Permission Denied" i went through the msdn and set the
dcomcnfg settings in almost every way possible and still the same error. i thought it was also interesting to note that i was still receiving the same error when i unchecked "Enable Distributed COM On This Computer" so i
figured that the settings in dcomcnfg had nothing to do with it so i proceeded to make sure there was no barriers between the two comps and shutdown the firewall, but still the same error.. if anyone has any info, please help.
 
Are you passing objects references between the computers? ByVal or ByRef Objects I have seen wher ethat can cause permission denied errors due to the callbacks that happen behind the scenes dur to the fact that you are actually passing pointers.If not this, then I would recheck your configurations. - Jeff Marler B-)
 
I am not passing by value or by reference.
I am just retrieving the server time.
I just want the two PCs to communicate. This is pretty much like a Hello World appz. It keeps on giving me the Permission Denied error. Is there something wrong with my settings? I 've tried almost every possible setting combinations and nothing seems to help. What is wrong with Win2000???

This is the only function I am calling from the server.

Public Function ServerTime() As String
ServerTime = Time
End Function
 
Sam,

I recieve the same error. The only way I can get it to work is to grant the user who is logged in on the client machine rights to access the machine you have ActiveX exe server on with permissions to access across the network.

Goto Start\settings\control panel\Security settings and setup the user rights to the appropriate user.

I'll post back when I find a better solution.

Kevin
 
I had the same thing and followed Microsoft's Q183607. Both machines basically either need all of the security lowered as the article specifies or call CoInitializeSecurity in the server app.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top