A Local Error Has Occurred. Directoryservicescomexception
Contents |
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/Advanced ASP.NET/Active Directory and directoryservicescomexception an operations error occurred LDAP/DirectoryServicesCOMException (0x8007203b): A local error has occurre... DirectoryServicesCOMException (0x8007203b): a directory service error has occurred 8341 A local error has occurred on IIS7/Windows Server 2008 [Answered]RSS 8 replies Last post the namespace cannot be queried a directory service error has occurred Oct 16, 2013 11:13 PM by windump ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved ldap bind failed with error 8341 a directory service error has occurred Threads Support Options Advanced Search Reply muellech Member 2 Points 12 Posts DirectoryServicesCOMException (0x8007203b): A local error has occurred on IIS7/Windows Server 200... Jan 24, 2010 12:27 PM|muellech|LINK I have a problem running my ASP.NET application that accesses our local AD on a W2k8 server.
A Local Error Has Occurred Active Directory C#
The error I get is A local error has occurred. 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.DirectoryServices.DirectoryServicesCOMException: A local error has occurred. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [DirectoryServicesCOMException (0x8007203b): A local error has occurred.] System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +557 System.DirectoryServices.DirectoryEntry.Bind() +44 System.DirectoryServices.DirectoryEntry.get_AdsObject() +42 System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) +98 Visus.Clearing.Core.ClearingUserList.AddUsersFromDirectoryGroup(String directoryPath, String user, String password, String groupName) in D:\Programmcode\visusclearing\Visus.Clearing.Core\ClearingUserList.cs:47 Visus.Clearing.Web.AddReceivable.Page_Load(Object sender, EventArgs e) in D:\Programmcode\visusclearing\visus-clearing\AddReceivable.aspx.cs:35 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42 System.Web.UI.Control.OnLoad(EventArgs e) +132 System.Web.UI.Control.LoadRecursiv
here for a quick overview of the site Help Center Detailed answers to any questions you might
Active Directory Error 0x8007203b
have Meta Discuss the workings and policies of this site About directoryservicescomexception error codes Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads the following domain controller cannot be contacted a local error has occurred with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million http://forums.asp.net/t/1517772.aspx?DirectoryServicesCOMException+0x8007203b+A+local+error+has+occurred+on+IIS7+Windows+Server+2008 programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Can't query AD (get a DirectoryServicesCOMException) up vote 3 down vote favorite 1 I'm attempting to query AD in an ASP.Net (4.0) application that is running on Windows Server 2008 R2 (IIS7 installed). (It also fails when running as http://stackoverflow.com/questions/3469883/cant-query-ad-get-a-directoryservicescomexception a 2.0 application as well) This is nothing new for me, as I've done this many times before. I wrote a small ASP.Net program that runs fine on my own machine (Windows XP with IIS6), but fails when run on the 2008 box. (The result is that you see a list of groups the user is a member of in a textbox) (on button_click) var userName = txtUserName.Text; if (userName.Trim().Length == 0) { txtResults.Text = "-- MISSING USER NAME --"; return; } var entry = new DirectoryEntry("LDAP://blah.blah/DC=blah,DC=blah", "cn=acct, dc=blah, dc=blah", "pass"); var search = new DirectorySearcher(entry); search.Filter = "(SAMAccountName=" + userName + ")"; search.PropertiesToLoad.Add("memberOf"); var groupsList = new StringBuilder(); var result = search.FindOne(); if (result != null) { int groupCount = result.Properties["memberOf"].Count; for (int counter = 0; counter < groupCount; counter++) { groupsList.Append((string)result.Properties["memberOf"][counter]); groupsList.Append("\r\n"); } } txtResults.Text = groupsList.ToString(); When I run this code I get the following error on search.FindOne(): System.DirectoryServices.DirectoryServicesCOMException (0x8007203B): A local error has occurred. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at
for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://sharepoint.stackexchange.com/questions/16953/directory-services-error-in-a-trusted-domain-scenario Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us SharePoint Questions Tags Users Badges Unanswered Ask Question _ SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers error has are voted up and rise to the top Directory services error in a trusted domain scenario up vote 1 down vote favorite There are two forests in my setup and there is a two way trust between the forests. I can add users from the trusted domain to SharePoint site but they can't login to the site. Here is an exception info from the error has occurred logs when the user tries to login: Error in searching user 'domain\user' : System.DirectoryServices.DirectoryServicesCOMException (0x8007203B): A local error has occurred. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at Microsoft.SharePoint.WebControls.PeopleEditor.SearchFromGC(SPActiveDirectoryDomain domain, String strFilter, String[] rgstrProp, Int32 nTimeout, Int32 nSizeLimit, SPUserCollection spUsers, ArrayList& rgResults) at Microsoft.SharePoint.Utilities.SPUserUtility.SearchAgainstAD(String input, SPActiveDirectoryDomain domainController, SPPrincipalType scopes, SPUserCol... 13951f9a-d7c5-4a5d-b2e6-54833f2dc17a Any help is greatly appreciated. Thanks! authentication share|improve this question asked Jul 28 '11 at 14:26 Élodie Petit 68721433 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote Successfully, "seeing" users does not mean you can authenticate them. Is the trust utilized for local logon as well (i.e. client workstations)? This is a quick way to verify the trust authentication is working. If user from Domain A can log on locally to an asset in Domain B or vice versa you can generally rule out the trust as the issue. Verify your ports on your server are open (389/636, 88, 139 and 445). You can use a tool like NetMon or WireShark to watch your authentication traffic and see if have any issues sending / receiving to the domain (assuming the