Re: Server cannot access client
- From: "Atiz" <fleetfoot18@xxxxxxxxx>
- Date: 19 Nov 2006 19:04:42 -0800
Hi, I have tried using DCOM error logging but after I run my client and
server, (getting the usual access denied message), I can't find any
DCOM error logs on it except the ones created by Network Service which
I think is created even before I start my program. In any case it says
that
"The machine wide limit settings do not grant Local Access permission
for COM Server applications to the user NT AUTHORITY\NETWORK SERVICE
SID (S-1-5-20). "
But I've already granted local access to NETWORK in "My Computer"
properties.
Does this means that the DCOM permissions I've set is correct? I have
been following this:
http://support.microsoft.com/default.aspx?scid=kb;en-us;892500
If it is not the dcom settings, then what can be giving the problem?
Atiz
Atiz wrote:
Hi all,
I managed to get my OPC client and server working in a domain, but am
having problems in no domain scenarios.
Now trying no domain scenarios, I have created same user account on
both pcs.
It seems I am able not able to DAdvise.
Result = PIDataObject->DAdvise(&formatetc, 0, pSink,
&dwUpdateConnection);
if(FAILED(Result)){
LogUtil::showError(Result,"Failed to get perform
PIDataObject->DAdvise");
throw OPCException("Failed to get perform PIDataObject->DAdvise");
return 1;
}
in DCOM config, I've set the COM Security of "My Computer" access
permissions to include admin , system and user, launch permission to
just include admin and system for the client side. I've also added TCP
ports 135 and 443 too.
Both sides the Firewall is down.
I read an article that if Advise fails, it means the server process
lacks access permissions in the clietn process. But how can it be when
I've set the same user accts, given access permissions to the admin,
system and user? Maybe I miss out something? Please suggestion
something so I can get a move on on this, thanks.
Atiz
ps: good article is here:
http://www.codeguru.com/cpp/com-tech/activex/security/article.php/c5555/
.
- References:
- Server cannot access client
- From: Atiz
- Server cannot access client
- Prev by Date: Re: passing array fcreated in c++ dll to vb
- Next by Date: Re: passing array fcreated in c++ dll to vb
- Previous by thread: Server cannot access client
- Next by thread: Re: What type of string can I store in a Vector?
- Index(es):
Relevant Pages
|