Re: IConnectionPoint::Advise failure

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: vt (vt_at_discussions.microsoft.com)
Date: 08/23/04


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
>
>
>



Relevant Pages

  • Re: Connection lost at same time every hour (sometimes)
    ... After making the two following alterations on the server the problem seems ... After analyze your ipconfig on SBS and client, ... Then, other connection is good, ...
    (microsoft.public.windows.server.sbs)
  • Re: server disconnection - very often
    ... Reason of permanent popups is VMware server aplication on clients. ... Run CEICW to configure the network of SBS: ... Two network adapters - manual router connection to broadband ... Uninstall VMware on client. ...
    (microsoft.public.windows.server.sbs)
  • Re: Lan setup 2 nic
    ... The external nic only has TCP/IP enabled. ... Ipconfig of the server is looking good, but the client is still missing the ... > connection so we have a 2 nic with router setup now. ...
    (microsoft.public.windows.server.sbs)
  • Re: Regular disconnections from remote web workplace
    ... I can connect to office server and all office clients from home at all times ... be physically working right up until the connection is lost. ... If I enter http://companyip from a client I receive the login screen for the ... Click Services tab and select Hide All Microsoft Services and Disable ...
    (microsoft.public.windows.server.sbs)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #3]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... kernel socket family. ... presentation side is left to the client. ... Each connection goes to a particular "service". ...
    (Linux-Kernel)