Click here to Skip to main content
15,922,696 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Decimal type Pin
Christian Graus2-Jan-08 10:19
protectorChristian Graus2-Jan-08 10:19 
Questionhow to get the value of the textbox which was in the grid view through javascript Pin
jagan1232-Jan-08 0:18
jagan1232-Jan-08 0:18 
AnswerRe: how to get the value of the textbox which was in the grid view through javascript Pin
Abhijit Jana2-Jan-08 2:29
professionalAbhijit Jana2-Jan-08 2:29 
QuestionHow to do paging in Repeater Pin
Krishna Varadharajan2-Jan-08 0:13
Krishna Varadharajan2-Jan-08 0:13 
AnswerRe: How to do paging in Repeater Pin
Venkatesh Mookkan2-Jan-08 0:16
Venkatesh Mookkan2-Jan-08 0:16 
GeneralRe: How to do paging in Repeater Pin
Krishna Varadharajan2-Jan-08 0:27
Krishna Varadharajan2-Jan-08 0:27 
AnswerRe: How to do paging in Repeater Pin
Sun Rays2-Jan-08 0:32
Sun Rays2-Jan-08 0:32 
GeneralADMembershipProvider & Windows 2000 Server Pin
cseven2-Jan-08 0:07
cseven2-Jan-08 0:07 
Hi,

I'm having a problem connecting my web application to an Active Directory running on Windows 2000 Server (SP4).

It works fine if I connect to an AD on Windows Server 2003, but if I try to use the AD on Windows 2000 Server I get this error message: Object reference not set to an instance of an object

And shows is red the ActiveDirectoryMembershipProvider section on the web.config.

I think the connection string and credentials are ok, because I used them on a LDAP Browser and succeed to connect to the AD. But on the web application I'm getting this error when I try to login.

If I remove the Membership.ValidateUser method from my login page I can enter in the application.

What could be wrong? The Provider connection? Incompatibility with Windows 2000 Server AD?


Here is the Stack Trace:

System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
em System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
em System.Web.Security.Membership.Initialize()
em System.Web.Security.Membership.ValidateUser(String username, String password)
em Login.btnLogin_click(Object sender, EventArgs e) em C:\Users\[USER]\Desktop\[AppFolder]\Login.aspx.vb:line 40
em System.Web.UI.WebControls.Button.OnClick(EventArgs e)
em System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
em System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
em System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
em System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
em System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
em System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
em System.Web.UI.Page.ProcessRequest()
em System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
em System.Web.UI.Page.ProcessRequest(HttpContext context)
em ASP.login_aspx.ProcessRequest(HttpContext context)
em System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
em System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


And here is my web.config:


<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="Sql2000Server" connectionString="Server=SQLSERVER\SQLINSTANCE;uid=USER;pwd=PASS;database=SQLDB"/>
<add name="ADConnectionString" connectionString="LDAP://aaa.bbb.ccc.dd.pt:389/DC=bbb,DC=ccc,DC=dd,DC=pt"/>
</connectionStrings>


<membership defaultProvider="AspNetActiveDirectoryMembershipProvider">
<providers>
<remove name="AspNetSqlMembershipProvider"/>
<add name="AspNetActiveDirectoryMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" applicationName="/" connectionStringName="ADConnectionString" connectionUsername="xxxxx" connectionPassword="*****" connectionProtection="None" attributeMapUsername="sAMAccountName" />
</providers>
</membership>



I would appreciate any help because I don't know what to do anymore. I've tried so many things with no success Frown | :(
Thanks!
Generalhelp me Pin
Basheer1-Jan-08 23:58
Basheer1-Jan-08 23:58 
QuestionExplain it... Pin
Sun Rays2-Jan-08 0:05
Sun Rays2-Jan-08 0:05 
GeneralRe: help me Pin
Guffa2-Jan-08 0:09
Guffa2-Jan-08 0:09 
QuestionASP.NET Pin
senthilsstil1-Jan-08 23:39
senthilsstil1-Jan-08 23:39 
GeneralRe: ASP.NET Pin
Sun Rays2-Jan-08 0:03
Sun Rays2-Jan-08 0:03 
GeneralRe: ASP.NET Pin
Sonia Gupta2-Jan-08 0:19
Sonia Gupta2-Jan-08 0:19 
GeneralRe: ASP.NET Pin
rahul.net112-Jan-08 1:03
rahul.net112-Jan-08 1:03 
QuestionAjax calender extender overlapping Other Controls Pin
Niya1-Jan-08 23:37
Niya1-Jan-08 23:37 
Questionhow to change the backcolor and fore color of a textbox in a grid view using javascript Pin
jagan1231-Jan-08 22:20
jagan1231-Jan-08 22:20 
AnswerRe: how to change the backcolor and fore color of a textbox in a grid view using javascript Pin
N a v a n e e t h1-Jan-08 22:27
N a v a n e e t h1-Jan-08 22:27 
GeneralRe: how to change the backcolor and fore color of a textbox in a grid view using javascript Pin
jagan1231-Jan-08 22:32
jagan1231-Jan-08 22:32 
GeneralRe: how to change the backcolor and fore color of a textbox in a grid view using javascript Pin
Michael Sync1-Jan-08 22:36
Michael Sync1-Jan-08 22:36 
Questionright trim Pin
Sonia Gupta1-Jan-08 22:16
Sonia Gupta1-Jan-08 22:16 
GeneralRe: right trim Pin
N a v a n e e t h1-Jan-08 22:26
N a v a n e e t h1-Jan-08 22:26 
GeneralRe: right trim Pin
Sonia Gupta1-Jan-08 22:42
Sonia Gupta1-Jan-08 22:42 
GeneralRe: right trim Pin
Michael Sync1-Jan-08 22:34
Michael Sync1-Jan-08 22:34 
GeneralRe: right trim Pin
Sonia Gupta1-Jan-08 22:47
Sonia Gupta1-Jan-08 22:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.