ActiveDirectoryMembershipProvider problem

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
 
G

Guest

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.
 
G

Gonza

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:
 
G

Guest

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

Guest

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

Top