+ Post New Thread
Results 1 to 4 of 4
Home Access Plus+ Thread, Room Booking Log Out Error in Projects:; Hi Everyone, I'm re installing HAP+ on CC4 Server 2008 R2 after summer upgrade and while I've had just about ...
  1. #1

    Join Date
    Jan 2009
    Location
    Didcot
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Post Room Booking Log Out Error

    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)(|(userPr incipalName=)(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)(|(userPr incipalName=)(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)(|(userPr incipalName=)(distinguishedName=)(name=))) search filter is invalid.]
    System.DirectoryServices.ResultsEnumerator.MoveNex t() +348941
    System.DirectoryServices.SearchResultCollection.ge t_InnerList() +282
    System.DirectoryServices.SearchResultCollection.ge t_Count() +9
    System.DirectoryServices.AccountManagement.ADStore Ctx.FindPrincipalByIdentRefHelper(Type principalType, String urnScheme, String urnValue, DateTime referenceDate, Boolean useSidHistory) +1958
    System.DirectoryServices.AccountManagement.ADStore Ctx.FindPrincipalByIdentRef(Type principalType, String urnScheme, String urnValue, DateTime referenceDate) +85
    System.DirectoryServices.AccountManagement.Princip al.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate) +216
    System.DirectoryServices.AccountManagement.UserPri ncipal.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

    <?xml version="1.0"?>
    <configuration>
    <system.web>
    <authorization>
    <allow users="*" />
    <deny users="?" />
    </authorization>
    </system.web>
    <location path="Default.aspx">
    <system.web>
    <authorization>
    <allow roles="CCC Non-Teaching Staff, CCC Teaching Staff, Domain Admins" />
    <deny users="CCC Students" />
    </authorization>
    </system.web>
    </location>
    <location path="New.aspx">
    <system.web>
    <authorization>
    <allow roles="CCC Non-Teaching Staff, CCC Teaching Staff, Domain Users, Domain Admins" />
    <deny users="CCC Students" />
    </authorization>
    </system.web>
    </location>
    </configuration>

    Booking system part of hapconfig.xml

    <bookingsystem maxbookingsperweek="3" maxdays="14" admins="Domain Admins" keepxmlclean="True" twoweektimetable="True" enablemultilesson="false" maxmultilesson="0" archive="False">
    - <resources>
    <resource name="CR1" type="Room" admins="Inherit" enabled="True" emailadmins="False" enablecharging="False" showto="All" hidefrom="" years="Inherit" quantities="" readonlyto="" readwriteto="" disclaimer="" canshare="False" enablenotes="false" />
    <resource name="Conference Room" type="Room" admins="Inherit" enabled="True" emailadmins="False" enablecharging="False" showto="All" hidefrom="" years="Inherit" quantities="" readonlyto="" readwriteto="" disclaimer="" canshare="False" enablenotes="false" />
    <resource name="Drama Studio" type="Room" admins="Inherit" enabled="True" emailadmins="False" enablecharging="False" showto="All" hidefrom="" years="Inherit" quantities="" readonlyto="" readwriteto="" disclaimer="" canshare="False" enablenotes="false" />
    <resource name="Dining Hall" type="Room" admins="Inherit" enabled="True" emailadmins="False" enablecharging="False" showto="All" hidefrom="" years="Inherit" quantities="" readonlyto="" readwriteto="" disclaimer="" canshare="False" enablenotes="false" />
    <resource name="Room21" type="Room" admins="Inherit" enabled="True" emailadmins="False" enablecharging="False" showto="All" hidefrom="" years="Inherit" quantities="" readonlyto="" readwriteto="" disclaimer="" canshare="False" enablenotes="false" />
    </resources>
    - <lessons>
    <lesson name="Registration/Tutor" type="Lesson" starttime="08:30" endtime="08:55" />
    <lesson name="Period 1" type="Lesson" starttime="08:55" endtime="09:55" />
    <lesson name="Period 2" type="Lesson" starttime="09:55" endtime="10:50" />
    <lesson name="Break Time" type="Break" starttime="10:50" endtime="11:10" />
    <lesson name="Period 3" type="Lesson" starttime="11:10" endtime="12:10" />
    <lesson name="Period 4" type="Lesson" starttime="12:11" endtime="13:10" />
    <lesson name="Lunch Time" type="Lunch" starttime="13:10" endtime="13:55" />
    <lesson name="Period 5" type="Lesson" starttime="13:55" endtime="14:55" />
    <lesson name="After School (1500-1700)" type="Lesson" starttime="14:55" endtime="17:00" />
    <lesson name="Evening (1700+)" type="Lesson" starttime="17:00" endtime="00:00" />
    <lesson name="Not Seen" type="Lesson" starttime="00:00" endtime="00:00" />
    </lessons>
    - <subjects>
    <subject name="Timetabled Class" />
    <subject name="Class" />
    <subject name="External Activity" />
    </subjects>
    </bookingsystem>

    AD section webconfig.xml

    <AD username="systemadmin" password="REMOVED" upn="cartertoncc.internal" studentsgroup="CCC Students" usenestedlookups="True" maxlogonattempts="4" maxrecursions="10" secureldap="false" allow1usecodes="false">
    <OUs>
    <OU name="Domain Admins" path="LDAP://OU=System Administrators,OU=CCC,OU=Establishments,DC=cartert oncc,DC=internal" visibility="Both" />
    <OU name="CCC Teaching Staff" path="LDAP://OU=Teaching Staff,OU=CCC,OU=Establishments,DC=cartertoncc,DC=i nternal" visibility="Both" />
    <OU name="CCC Non-Teaching Staff" path="LDAP://OU=Non-Teaching Staff,OU=CCC,OU=Establishments,DC=cartertoncc,DC=i nternal" visibility="Both" />
    </OUs>
    </AD>

    The systemadmin display name same as account name

    Any help much appreciated,

    Thank You
    Allan

  2. #2
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,577
    Thank Post
    39
    Thanked 512 Times in 442 Posts
    Rep Power
    115
    Check AD that everyone has a account name and a UPN name

  3. #3

    Join Date
    Jan 2009
    Location
    Didcot
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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

  4. #4
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,577
    Thank Post
    39
    Thanked 512 Times in 442 Posts
    Rep Power
    115
    Ok, hmm, that should be enabled for the display page but disabled else were, good that you've fixed it though

SHARE:
+ Post New Thread

Similar Threads

  1. Room Booking Software
    By timbo343 in forum Windows
    Replies: 14
    Last Post: 6th June 2009, 10:28 AM
  2. In/Out board & room booking system for outlook?
    By cokecan72 in forum Windows
    Replies: 1
    Last Post: 16th April 2009, 02:07 PM
  3. Room booking application
    By OverWorked in forum How do you do....it?
    Replies: 45
    Last Post: 23rd October 2008, 11:21 AM
  4. Do you use Room Booking Software?
    By jazzy639 in forum Educational Software
    Replies: 30
    Last Post: 23rd October 2008, 11:09 AM
  5. Room Booking Database/Web based (.asp)
    By danIT in forum Downloads
    Replies: 131
    Last Post: 7th November 2007, 10:20 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •