Click here to Skip to main content
15,892,737 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProblem adding source to sitemap. Pin
larsp77721-Jun-16 3:11
larsp77721-Jun-16 3:11 
QuestionHow to Change Password in ASP.NET connect to Ldap authentication Pin
Yosua Michael20-Jun-16 14:09
Yosua Michael20-Jun-16 14:09 
AnswerRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Richard Deeming21-Jun-16 2:04
mveRichard Deeming21-Jun-16 2:04 
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Yosua Michael21-Jun-16 14:33
Yosua Michael21-Jun-16 14:33 
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Richard Deeming22-Jun-16 3:20
mveRichard Deeming22-Jun-16 3:20 
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Yosua Michael22-Jun-16 21:34
Yosua Michael22-Jun-16 21:34 
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Richard Deeming23-Jun-16 1:56
mveRichard Deeming23-Jun-16 1:56 
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Yosua Michael23-Jun-16 16:23
Yosua Michael23-Jun-16 16:23 
ok sorry for that,
i tried to use same ID, but i can't get the value also

now, i change the method,
i use hmtl form in my webapp

but i found some error again in invoke.
the error says:
Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
in line 31(red code):

Line 29: if (result != null)
Line 30: {
Line 31: user.Invoke("ChangeUserPassword", new object[] { OldPassword, NewUPassword });
Line 32: user.Properties["LockOutTime"].Value = 0; //unlock account
Line 33: user.CommitChanges();

Stack Trace:


[COMException (0x80020006): Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))]
System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args) +119
FormsAuthAd.ChangePasswordPSI.ChangePass(HttpSessionState Session, String OldPassword, String NewUPassword) in C:\Users\Desktop\Documents\Visual Studio 2010\Projects\FormsAuthAd12\FormsAuthAd\ChangePasswordPSI.cs:31

[Exception]
FormsAuthAd.ChangePasswordPSI.ChangePass(HttpSessionState Session, String OldPassword, String NewUPassword) in C:\Users\Desktop\Documents\Visual Studio 2010\Projects\FormsAuthAd12\FormsAuthAd\ChangePasswordPSI.cs:44
ASP.webform2_aspx.ChangeMe_Click(Object sender, EventArgs e) in c:\Users\Desktop\Documents\Visual Studio 2010\Projects\FormsAuthAd12\FormsAuthAd\WebForm2.aspx:56
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9692746
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3562


Now, i still confuse with throw ex;
why i can't use it?Confused | :confused:
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Richard Deeming27-Jun-16 3:05
mveRichard Deeming27-Jun-16 3:05 
QuestionHow to implement MULTIPLE.OPERATIONS functionality in .net Pin
Raghavendra.Kodimala18-Jun-16 22:03
professionalRaghavendra.Kodimala18-Jun-16 22:03 
QuestionRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
ZurdoDev20-Jun-16 2:18
professionalZurdoDev20-Jun-16 2:18 
AnswerRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
Raghavendra.Kodimala20-Jun-16 3:43
professionalRaghavendra.Kodimala20-Jun-16 3:43 
GeneralRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
ZurdoDev20-Jun-16 3:48
professionalZurdoDev20-Jun-16 3:48 
AnswerRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
Richard MacCutchan20-Jun-16 4:03
mveRichard MacCutchan20-Jun-16 4:03 
GeneralRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
Raghavendra.Kodimala20-Jun-16 23:59
professionalRaghavendra.Kodimala20-Jun-16 23:59 
GeneralRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
Richard MacCutchan21-Jun-16 0:20
mveRichard MacCutchan21-Jun-16 0:20 
GeneralRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
Raghavendra.Kodimala21-Jun-16 22:01
professionalRaghavendra.Kodimala21-Jun-16 22:01 
GeneralRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
Richard MacCutchan21-Jun-16 22:51
mveRichard MacCutchan21-Jun-16 22:51 
GeneralRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
Raghavendra.Kodimala22-Jun-16 1:54
professionalRaghavendra.Kodimala22-Jun-16 1:54 
QuestionIE version problem Pin
parthi_src17-Jun-16 21:44
parthi_src17-Jun-16 21:44 
AnswerRe: IE version problem Pin
Nathan Minier20-Jun-16 1:27
professionalNathan Minier20-Jun-16 1:27 
GeneralRe: IE version problem Pin
parthi_src21-Jun-16 7:05
parthi_src21-Jun-16 7:05 
AnswerRe: IE version problem Pin
John C Rayan20-Jun-16 1:48
professionalJohn C Rayan20-Jun-16 1:48 
GeneralRe: IE version problem Pin
parthi_src21-Jun-16 7:06
parthi_src21-Jun-16 7:06 
GeneralRe: IE version problem Pin
John C Rayan22-Jun-16 1:33
professionalJohn C Rayan22-Jun-16 1:33 

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.