Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADSI General > ADsGetObject() ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 5332 of 5423
Post > Topic >>

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

by Chuck Chopp <ChuckChopp@[EMAIL PROTECTED] > Jul 17, 2008 at 07:10 PM

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
tan12V112 Tue Dec 2 7:57:10 CST 2008.