Re: ExecQueryAsync Fails on XPSP2

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Simon Manners (SimonManners_at_discussions.microsoft.com)
Date: 11/16/04


Date: Mon, 15 Nov 2004 16:04:07 -0800

I will also add that I have cut and pasted an MSDN example and it also fails
to return any information.

"Simon Manners" wrote:

> Thanks Peter,
>
> Its bizarre really, my ConnectServer method correctly connects to the remote
> workstation using a domain Administrator account. If I use any other type of
> query call other that ExecQueryAsync it works fine. Is there something
> special about ExecQueryAsync?
>
> Microsoft are determined to make this as difficult as possible.
>
> Before the obvious is asked, yes the firewall is disabled.
>
> Cheers,
>
> Simon
>
> "Peter Falz" wrote:
>
> > Hi Simon Manners,
> > "Simon Manners" <SimonManners@discussions.microsoft.com> schrieb im Newsbeitrag
> > news:A4E0D01A-66F4-4544-A2D9-F53473E965ED@microsoft.com...
> > > I'm hoping someone will be able to help me with this. I use the call:
> > > xxxxx.ExecQueryAsync SinkName, "Select * From " & ClassName
> > > To retrieve information from a remote workstation, in this case a Windows
> > > 2000 Server. My application is running on a Windows XP SP2 system and it
> > > connects to the remote device correctly (firewall disabled) however when I
> > > execute the query it never returns any information. This worked on Windows XP
> > > SP1 of course.
> >
> > i've had a similar phenomenon ;-).
> >
> > Maybe a change of the "ImpersonationLevel" can help.
> > Also be sure, that the setting of the rights for the user
> > you use are alright.
> >
> > Ciao
> > Peter
> >
> >
> >