Hi
When trying to authenticate a user towards AD I get an error.
This works fine in my local environment where I work towards ADAM.
When running it on the AD I get the following error message:
****************************************************************************************************
Unknown error (0x80005000)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Patrik
Member
90 Points
18 Posts
BIND problems (works with ADAM not AD)
Oct 28, 2006 09:44 AM|LINK
Hi
When trying to authenticate a user towards AD I get an error.
This works fine in my local environment where I work towards ADAM.
When running it on the AD I get the following error message:
****************************************************************************************************
Unknown error (0x80005000)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Unknown
error (0x80005000)
Stack Trace:
[COMException (0x80005000): Unknown error (0x80005000)]
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +610
System.DirectoryServices.DirectoryEntry.Bind() +36
System.DirectoryServices.DirectoryEntry.get_NativeObject() +31
Default3.IsAuthenticated() in D:\NCSD Directory\ADEdit.aspx.vb:160
Default3.CheckUser() in D:\NCSD Directory\ADEdit.aspx.vb:137
Default3.btnLogin_Click(Object sender, EventArgs e) in D:\NCSD
Directory\ADEdit.aspx.vb:256
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
********************************************************************************************************************************************
I get it when it runs this line:
Line 160: Dim obj As Object = entry.NativeObject
Any ideas ?
Regards
Patrik