Re: IConnectionPoint::Advise failure
From: vt (vt_at_discussions.microsoft.com)
Date: 08/23/04
- Next message: Igor Tandetnik: "Re: Converting IStorage word/excel object to native .doc/.xls file"
- Previous message: Alexander Nickolov: "Re: IConnectionPoint::Advise failure"
- In reply to: Alexander Nickolov: "Re: IConnectionPoint::Advise failure"
- Next in thread: Frank Renner: "Re: IConnectionPoint::Advise failure"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Aug 2004 11:49:02 -0700
I receive the E_ACCESSDENIED as well when modify the CoInitializeSecurity on
the client (console app). The client-server communication works fine if the
connection point is missing; the client calls the server successfully and I
can debug the server code remotely. But, of course, it fails when sending
notifications back to the client thru the connection point because the Advise
failed previously (or not called if removed that code on the client, just to
be able to debug it remotely).
Should I set up the security manually on the client (console app) machine?
Thanks,
vt
"Alexander Nickolov" wrote:
> Does your call reach into your DLL? Can you debug it there?
> The usual error would be CONNECT_E_CANNOTCONNECT
> resulting from E_NOINTERFACE or E_ACCESSDENIED within
> the Advise method at the server. This E_OUTOFMEMORY is
> puzzling...
>
> --
> =====================================
> Alexander Nickolov
> Microsoft MVP [VC], MCSD
> email: agnickolov@mvps.org
> MVP VC FAQ: http://www.mvps.org/vcfaq
> =====================================
>
> "vt" <vt@discussions.microsoft.com> wrote in message
> news:63D50EE9-B1A7-43ED-A955-0D01E53ECD5C@microsoft.com...
> > Hi all,
> > I have a DCOM problem that makes a connection point's Advise call to fail:
> >
> > Below are my components that I use:
> > 1. the DCOM remote server is a DLL surogate
> > 2. the client application is a console executable
> > 3. the server should send results to the client (console app) thru the
> > connection points
> >
> > What I've done:
> > 1. the remote (DLL surrogate) server does not have any security set; I
> > think
> > that the standard DllHost is in charge with this and, I suppose, there is
> > not
> > security on it.
> > 2. in the client (console app), I've called CoInitialize( NULL ); and then
> > the CoInitializeSecurity as below:
> >
> > ::CoInitializeSecurity( NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_NONE,
> > RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE, NULL );
> >
> > Having those done, the server calls from the client are OK, but when the
> > IConnectionPoint::Advise() is called from the console app, it fails with
> > E_OUTOFMEMORY; if I change the CoInitializeSecurity with some other
> > parameters, there are some other errors.
> >
> > Could you please help me?
> >
> > Thanks,
> > vt
>
>
>
- Next message: Igor Tandetnik: "Re: Converting IStorage word/excel object to native .doc/.xls file"
- Previous message: Alexander Nickolov: "Re: IConnectionPoint::Advise failure"
- In reply to: Alexander Nickolov: "Re: IConnectionPoint::Advise failure"
- Next in thread: Frank Renner: "Re: IConnectionPoint::Advise failure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|