473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

LDAP with ASP.NET 2.0

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

Nov 19 '05 #1
7 1768
I forgot to mention that it was connecting to an LDAP server (SunONE)
not an Active Directory via syntax like "LDAP:\\"

Thanks

Nov 19 '05 #2
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

Nov 19 '05 #3
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

Nov 19 '05 #4
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

Dec 7 '05 #5
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 -

Dec 20 '05 #6
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.
Br*********@MCDean.com 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 -


Jan 4 '06 #7
Solved!
Credit goes to a coworker who told me about "AuthenticationTypes.None".

HTH
-Brian

Jan 12 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Amar | last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap does not have security as it returns only user demographic information. i do not need to bind with a username or...
4
by: m96 | last post by:
hi, i'm trying to make a query to a ldap server (version v2 or v3 doen't matter) with c#. the query works just fine but the problem is that i can't read the custom attributes/fields, since .net...
7
by: Amar | last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap does not have security as it returns only user demographic information. i do not need to bind with a username or...
0
by: rbukkara | last post by:
Hi, I have got the following error while trying to add a user in the LDAP Directory. javax.naming.NameNotFoundException: ; remaining name 'uid=vassila,ou=People,dc=cs,dc=uno,dc=edu' I have...
0
by: Sells, Fred | last post by:
I'm running python 2.5 (or 2.4) in an XP environment. I downloaded and installed the .dll's from OpenLDAP-2.4.8+OpenSSL-0.9.8g-Win32.zip and copied the .dll's in c:/windows/system32 as instructed...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.