shaman_nsd Posted November 4, 2013 Posted November 4, 2013 Hi Everyone, I'm re installing HAP+ on CC4 Server 2008 R2 after summer upgrade and while I've had just about every error solved here I've got one last one when I log out of room booking but at no other time Error is: The (&(objectCategory=user)(objectClass=user)(|(userPrincipalName=)(distinguishedName=)(name=))) search filter is invalid. 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.ArgumentException: The (&(objectCategory=user)(objectClass=user)(|(userPrincipalName=)(distinguishedName=)(name=))) search filter is invalid. 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: [ArgumentException: The (&(objectCategory=user)(objectClass=user)(|(userPrincipalName=)(distinguishedName=)(name=))) search filter is invalid.] System.DirectoryServices.ResultsEnumerator.MoveNext() +348941 System.DirectoryServices.SearchResultCollection.get_InnerList() +282 System.DirectoryServices.SearchResultCollection.get_Count() +9 System.DirectoryServices.AccountManagement.ADStoreCtx.FindPrincipalByIdentRefHelper(Type principalType, String urnScheme, String urnValue, DateTime referenceDate, Boolean useSidHistory) +1958 System.DirectoryServices.AccountManagement.ADStoreCtx.FindPrincipalByIdentRef(Type principalType, String urnScheme, String urnValue, DateTime referenceDate) +85 System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate) +216 System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(PrincipalContext context, String identityValue) +81 HAP.AD.User.get_UserPa() +263 [unauthorizedAccessException: Invalid Administrator Credentials, you may need to get your administrator to reset the HAP+ Settings for Active Directory] HAP.AD.User.get_UserPa() +371 HAP.AD.User..ctor(String username) +185 HAP.AD.MembershipProvider.GetUser(String username, Boolean userIsOnline) +165 System.Web.Security.Membership.GetUser(String username, Boolean userIsOnline) +175 HAP.Web.Controls.Page.get_ADUser() +39 HAP.Web.BookingSystem._new.get_isBSAdmin() +155 HAP.Web.BookingSystem._new.Page_Load(Object sender, EventArgs e) +1864 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178 Booking System web.config Booking system part of hapconfig.xml - - - AD section webconfig.xml The systemadmin display name same as account name Any help much appreciated, Thank You Allan
nickbro Posted November 5, 2013 Posted November 5, 2013 Check AD that everyone has a account name and a UPN name
shaman_nsd Posted November 7, 2013 Author Posted November 7, 2013 Thanks Nick, I sorted it now, Turned out to be Anonymous Authentication was enabled on the roombooking folder which was causing the error, all good now
nickbro Posted November 7, 2013 Posted November 7, 2013 Ok, hmm, that should be enabled for the display page but disabled else were, good that you've fixed it though
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now