473,320 Members | 1,872 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,320 software developers and data experts.

ActiveDirectoryMembershipProvider Object Reference not set ...

I have been following several threads between David Thielen and Luke Zhang
[MSFT] regarding the ActiveDirectoryMembershipProvider as used for ASP.NET
2.0 Forms authentication, but I receive a slighly different error. I
consistently receive the following message after submitting credentials from
the login page:

Parser Error Message: Object reference not set to an instance of an object.

Source Error:

Line 30: <providers>
Line 31: <add name="ActiveDirectoryProvider"
Line 32: type="System.Web.Security.ActiveDirectoryMembershi pProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
Line 33: connectionStringName="ADService"
Line 34: attributeMapUsername="samAccountName"
This is not the "The specified connection
string does not represent a valid LDAP adspath." issue. I can solve that
with a valid ADSI path as follows:

<connectionStrings>
<add name="ADService" connectionString="LDAP://my.domain.com"/>
</connectionStrings>

From IIS 5 on XP SP2, I initially had trouble with invalid username or
password errors. These coule be solved by supplying the connectionUsername
and connectionPassword settings. On IIS6 from Windows 2003, the application
pool uses a Network Service account in the same domain in the LDAP setting so
I have no problems on that platform.

I can't help but think there is a simple solution to this, but so far I
missing something. I have already looked through several Microsoft articles
including the following:

Explained: Forms Authentication in ASP.NET 2.0
http://msdn.microsoft.com/library/de...lained0001.asp

How To: Use Forms Authentication with Active Directory in ASP.NET 2.0
http://msdn.microsoft.com/library/de...aght000026.asp

ActiveDirectoryMembershipProvider Class
http://msdn2.microsoft.com/en-us/lib...pprovider.aspx

ScottGu's Blog: ASP.NET 2.0 Membership, Roles, Forms Authentication, and
Security Resources
http://weblogs.asp.net/scottgu/archi...24/438953.aspx

Any ideas or suggestions will be appreciated.
Apr 21 '06 #1
2 4850
After submitting this question, I realized the
...dotnet.framework.aspnet.security group was more appropriate. Please see
the thread that started there

"ActiveDirectoryMembershipProvider Object Reference not set ..."- 4/21/2006

-JD Qixcle

"JD Qixcle" wrote:
I have been following several threads between David Thielen and Luke Zhang
[MSFT] regarding the ActiveDirectoryMembershipProvider as used for ASP.NET
2.0 Forms authentication, but I receive a slighly different error. I
consistently receive the following message after submitting credentials from
the login page:

Parser Error Message: Object reference not set to an instance of an object.

Source Error:

Line 30: <providers>
Line 31: <add name="ActiveDirectoryProvider"
Line 32: type="System.Web.Security.ActiveDirectoryMembershi pProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
Line 33: connectionStringName="ADService"
Line 34: attributeMapUsername="samAccountName"
This is not the "The specified connection
string does not represent a valid LDAP adspath." issue. I can solve that
with a valid ADSI path as follows:

<connectionStrings>
<add name="ADService" connectionString="LDAP://my.domain.com"/>
</connectionStrings>

From IIS 5 on XP SP2, I initially had trouble with invalid username or
password errors. These coule be solved by supplying the connectionUsername
and connectionPassword settings. On IIS6 from Windows 2003, the application
pool uses a Network Service account in the same domain in the LDAP setting so
I have no problems on that platform.

I can't help but think there is a simple solution to this, but so far I
missing something. I have already looked through several Microsoft articles
including the following:

Explained: Forms Authentication in ASP.NET 2.0
http://msdn.microsoft.com/library/de...lained0001.asp

How To: Use Forms Authentication with Active Directory in ASP.NET 2.0
http://msdn.microsoft.com/library/de...aght000026.asp

ActiveDirectoryMembershipProvider Class
http://msdn2.microsoft.com/en-us/lib...pprovider.aspx

ScottGu's Blog: ASP.NET 2.0 Membership, Roles, Forms Authentication, and
Security Resources
http://weblogs.asp.net/scottgu/archi...24/438953.aspx

Any ideas or suggestions will be appreciated.

Apr 21 '06 #2
As it turns out, the LDAP connection string needed to specify the port number
:389 for a Windows 2000 AD connection.

LDAP://domain.com:389/dc=domain,dc=com

Here is a reference to the post that fixed the problem:
http://forums.asp.net/thread/1137608.aspx
"JD Qixcle" wrote:
After submitting this question, I realized the
..dotnet.framework.aspnet.security group was more appropriate. Please see
the thread that started there

"ActiveDirectoryMembershipProvider Object Reference not set ..."- 4/21/2006

-JD Qixcle

"JD Qixcle" wrote:
I have been following several threads between David Thielen and Luke Zhang
[MSFT] regarding the ActiveDirectoryMembershipProvider as used for ASP.NET
2.0 Forms authentication, but I receive a slighly different error. I
consistently receive the following message after submitting credentials from
the login page:

Parser Error Message: Object reference not set to an instance of an object.

Source Error:

Line 30: <providers>
Line 31: <add name="ActiveDirectoryProvider"
Line 32: type="System.Web.Security.ActiveDirectoryMembershi pProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
Line 33: connectionStringName="ADService"
Line 34: attributeMapUsername="samAccountName"
This is not the "The specified connection
string does not represent a valid LDAP adspath." issue. I can solve that
with a valid ADSI path as follows:

<connectionStrings>
<add name="ADService" connectionString="LDAP://my.domain.com"/>
</connectionStrings>

From IIS 5 on XP SP2, I initially had trouble with invalid username or
password errors. These coule be solved by supplying the connectionUsername
and connectionPassword settings. On IIS6 from Windows 2003, the application
pool uses a Network Service account in the same domain in the LDAP setting so
I have no problems on that platform.

I can't help but think there is a simple solution to this, but so far I
missing something. I have already looked through several Microsoft articles
including the following:

Explained: Forms Authentication in ASP.NET 2.0
http://msdn.microsoft.com/library/de...lained0001.asp

How To: Use Forms Authentication with Active Directory in ASP.NET 2.0
http://msdn.microsoft.com/library/de...aght000026.asp

ActiveDirectoryMembershipProvider Class
http://msdn2.microsoft.com/en-us/lib...pprovider.aspx

ScottGu's Blog: ASP.NET 2.0 Membership, Roles, Forms Authentication, and
Security Resources
http://weblogs.asp.net/scottgu/archi...24/438953.aspx

Any ideas or suggestions will be appreciated.

Jun 8 '06 #3

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

Similar topics

0
by: Rik Brooks | last post by:
I am trying to write a change password routine using the new ActiveDirectoryMembershipProvider. My code is below. I'm getting an exception saying that my ActiveDirectoryMembershipProvider has not...
0
by: Parag Mahajan | last post by:
Hi, I am using the membership provider class, "System.Web.Security.ActiveDirectoryMembershipProvider". I am using Login Server control and attaching the already configured...
18
by: Glenn Eastlack | last post by:
I have been trying to use ASP.NET 2.0 built-in Membership Providers. Particularly the ActiveDirectoryMembershipProvider. My web.config looks like this: <connectionStrings> <clear/> <add ...
0
by: Nehpets | last post by:
I'm trying to setup a web site that uses active directory for user authentication under asp.net 2.0. For testing, I have separately installed two virtual servers. The first is a domain...
5
by: Gonza | last post by:
Hi all, i'm getting an "object reference not set to an instance of an object" exception when trying to login using the asp:login control and ActiveDirectoryMembershipProvider. What's strange is...
0
by: mannyl | last post by:
Hopefully one of you have worked with the .net 2.0 ActiveDirectoryMembershipProvider or some varient they of. please reply to rnbergren@dmacc.edu What I want to reference is the resetpassword...
0
by: zeplynne | last post by:
Having trouble using ActiveDirectoryMembershipProvider with one specific website. When attempting to login to the site, after a long period of time (about 2 - 3 minutes), "Server Application...
3
by: rroden | last post by:
C:\WINDOWS\assembly \WindowsSystem.Web.Security.ActiveDirectoryMembershipProvider isn't being installed with .net 2.0 or 3.0 on any of my systems. What am I doing wrong?
4
by: Max2006 | last post by:
Hi, I am using ActiveDirectoryMembershipProvider for authentication. In my development environment I don't have any Active Directory available for development and test. Basically my development...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.