ActiveDirectoryMembershipProvider problem

  • Thread starter Thread starter Gonza
  • Start date Start date
G

Gonza

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 that if I put a
wrong username or password in the connection string the login control
tells me this, and doesn't throw the other exception. Any ideas?

Thanks in advance
 
Very dificuklt to diagnose without some code. "Object reference not set to
an instance of an object" often means that the object has been declared but
not yet instantiated.
 
There's no code! everything has been configured on the web.config, the
only "code" i have is the webform with the login control. I can send my
web.config, maybe it helps:

<connectionStrings>
<add name="ADConnectionString"
connectionString="LDAP://aconcagua/CN=Users,DC=smart,DC=com,DC=ar"/>
</connectionStrings>
<system.web>
<authorization>
<allow users="*"/>
</authorization>
<membership defaultProvider="MyADMembershipProvider">
<providers>
<clear/>
<add name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider"
connectionProtection="None" connectionUsername="membershipprovideruser"
connectionPassword="1234" connectionStringName="ADConnectionString"/>
</providers>
</membership>



clickon ha escrito:
 
Hello Gonza,
I am also getting the same error. Could you pls let me know the solution if
this error is solved.
 
I got this issue resolved.

Thanks
--
Vaishnavi


Vaishnavi KR said:
Hello Gonza,
I am also getting the same error. Could you pls let me know the solution if
this error is solved.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top