Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > LDAP with ASP.NET 2.0

Reply
Thread Tools

LDAP with ASP.NET 2.0

 
 
jfer
Guest
Posts: n/a
 
      09-22-2005
I recently ported an ASP.NET 1.1 web application to ASP.NET 2.0 Beta 2.
This is a VERY basic application that utilized the DirectoryServices
namespace. However I cannot get it to work in asp.net 2.0. When I
launch the web application I receive the following error:

"Exception Details: System.Runtime.InteropServices.COMException: The
parameter is incorrect."

Anyone know if there is an issue with ASP.NET 2.0 and
DirectoryServices/LDAP?

Thanks

 
Reply With Quote
 
 
 
 
jfer
Guest
Posts: n/a
 
      09-22-2005
I forgot to mention that it was connecting to an LDAP server (SunONE)
not an Active Directory via syntax like "LDAP:\\"

Thanks

 
Reply With Quote
 
 
 
 
jfer
Guest
Posts: n/a
 
      09-23-2005
I just wanted to add I was able to get it working using Novell's C#
LDAP library.

However I am still interested if anyone has sucessfully got the
System.DirectoryServices library working in ASP.NET 2.0.

Thanks

 
Reply With Quote
 
=?Utf-8?B?Sm9obm55TycnQ2xvY2tAY29tbXVuaXR5Lm5vc3BhbQ==?=
Guest
Posts: n/a
 
      10-19-2005
I've been working on a similar with asp.net 2.0. I'm trying to build an
iPlanet/Sun One provider for authentication. Would you be willing to share
your solution that uses the Novell C#?

Thanks.

"jfer" wrote:

> I just wanted to add I was able to get it working using Novell's C#
> LDAP library.
>
> However I am still interested if anyone has sucessfully got the
> System.DirectoryServices library working in ASP.NET 2.0.
>
> Thanks
>
>

 
Reply With Quote
 
=?Utf-8?B?S2VuIENhcnRlcg==?=
Guest
Posts: n/a
 
      12-07-2005
You're seeing the same thing many others of us dealing with 3rd party LDAP
hosts are. Evenyone is focusing on LDAP as it pertains to AD.

In the mean time most of our methods developed and proven under 1.1
framework are totally broken under 2.0.

I've got some fractured code working on my 3rd party LDAP host but still am
trying to fix problems with it.

This looks like a huge hole left in VS2005 most likely on purpose. As
beautiful as the data connector is on SQL stuff to leave the LDAP world
hanging like this says very little good. Very much "back of the bus" approch
to a core part of the majority of enterprises.

Will be happy to share when I get something worked out but I'm NOT a
application coder, I'm a web dev so it is a slow process.

"jfer" wrote:

> I recently ported an ASP.NET 1.1 web application to ASP.NET 2.0 Beta 2.
> This is a VERY basic application that utilized the DirectoryServices
> namespace. However I cannot get it to work in asp.net 2.0. When I
> launch the web application I receive the following error:
>
> "Exception Details: System.Runtime.InteropServices.COMException: The
> parameter is incorrect."
>
> Anyone know if there is an issue with ASP.NET 2.0 and
> DirectoryServices/LDAP?
>
> Thanks
>
>

 
Reply With Quote
 
Brian.ONeil@MCDean.com
Guest
Posts: n/a
 
      12-20-2005
I have a similar problem. 1.1 -> 2.0. Now the code is broke and I look
like a fool to my customer(boss). Any help appreciated. Should I just
reference the prior version of System.DirectoryServices?

TIA,

Out -

 
Reply With Quote
 
briano@avanade.com
Guest
Posts: n/a
 
      01-04-2006
Found something more on this; using LDP.EXE I can perform a "Simple
Bind" but not a "Bind With Credentials". I guess this confirms the
proper LDAP path is being used, but not much more.


http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> I have a similar problem. 1.1 -> 2.0. Now the code is broke and I look
> like a fool to my customer(boss). Any help appreciated. Should I just
> reference the prior version of System.DirectoryServices?
>
> TIA,
>
> Out -


 
Reply With Quote
 
brian.f.oneil@gmail.com
Guest
Posts: n/a
 
      01-12-2006
Solved!
Credit goes to a coworker who told me about "AuthenticationTypes.None".

HTH
-Brian

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python-ldap/win32 or python/ldap/win32 rcmn Python 1 11-06-2006 11:47 PM
Need to wrtie LDAP class to *answer* LDAP queries. junk1@davidbevan.co.uk Java 1 02-21-2006 09:59 PM
ruby-ldap: uninitialized constant LDAP::LDAP_CONTROL_PAGEDRESULTS James Hughes Ruby 4 12-13-2005 11:46 PM
[ANN] Ruby/LDAP 0.9.1: LDAP API (RFC1823) library. Ian Macdonald Ruby 0 03-15-2005 11:23 PM
using LDAP Controls in ruby-ldap Jason Wold Ruby 5 11-07-2004 03:35 AM



Advertisments