Talk About Network

Google





Software > ADSI General > Re: ADsGetObjec...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 5332 of 5437
Post > Topic >>

Re: ADsGetObject() fails with HR = 0x800401e4 (Invalid Syntax)

by "Joe Kaplan" <joseph.e.kaplan@[EMAIL PROTECTED] > Jul 17, 2008 at 06:47 PM

This error code is pretty low level and isn't something coming out of the 
LDAP level (those are all 8005xxxx HRs), so I'm guessing you have a
problem 
in the guts of COM with something like a missing include or library.  I
have 
no idea what it is that you are missing though.

Good luck finding it!

Joe K.
-- 
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
"Chuck Chopp" <ChuckChopp@[EMAIL PROTECTED]
> wrote in message 
news:OKUnOJG6IHA.1204@[EMAIL PROTECTED]
>I have some C++ code that has been working just fine for looking up group

>type & group member****p information for the past 3 years.  It calls 
>ADsGetObject() to bind to the group object using an LDAP URL as follows:
>
> "LDAP://CN=NSMAdmins,CN=Users,DC=w2k3ee,DC=local"
>
> The interface being requested is IID_IDirectoryObject.
>
> This was working fine when the code was built using the WinXP Platform
SDK 
> on a WinXP Pro SP2 system running MS Visual Studio 2003 .NET.
>
> Recently, I had to recompile the application on Vista Ultimate x64 SP1 
> [targeting a 32-bit x86 platform] using Visual Studio 2008 with the
latest 
> Microsoft Platform SDK v6.1.  After doing a "clean" and then a "build", 
> with no errors and only a few harmless warnings about usage of a 
> deprecated strcpy() function, I ran the code to test it.  Without having

> made any actual changes to the code, it no longer runs properly and 
> ADsGetObject() is failing with an HRESULT value of 0x800401e4, which is 
> do***ented as meaning "Invalid Syntax", but for which no other reference

> material seems to exist.
>
> I'm running the code on a Win2K3 EE R2 x64 SP2 system.  Previous builds
of 
> the application still run OK on this system, it's only the newer build 
> that fails in this way.
>
> Has anybody else run across this problem before?  Is there an online 
> reference that provides info for diagnosing this problem?
 




 3 Posts in Topic:
ADsGetObject() fails with HR = 0x800401e4 (Invalid Syntax)
Chuck Chopp <ChuckChop  2008-07-17 19:10:23 
Re: ADsGetObject() fails with HR = 0x800401e4 (Invalid Syntax)
"Joe Kaplan" &l  2008-07-17 18:47:30 
Re: ADsGetObject() fails with HR = 0x800401e4 (Invalid Syntax)
Chuck Chopp <ChuckChop  2008-07-17 20:48:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 20:03:12 PST 2009.