jezi55 Posted June 18, 2018 Posted June 18, 2018 Hello all, i am really struggling to get HAP working. I have installed the files, installed the SSL certificate, made the HTTPS bindings and setup HAP by mapping the active directory group to students. When i login with my domain user account everything works perfectly i can access my user share but whenever any student or staff tries to login i get the following ASP error: Server Error in '/HAP' Application.While trying to retrieve the authorization groups, an error (5) 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.AccountManagement.PrincipalOperationException: While trying to retrieve the authorization groups, an error (5) 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: [PrincipalOperationException: While trying to retrieve the authorization groups, an error (5) occurred.] System.DirectoryServices.AccountManagement.AuthZSet..ctor(Byte[] userSid, NetCred credentials, ContextOptions contextOptions, String flatUserAuthority, StoreCtx userStoreCtx, Object userCtxBase) +1527 System.DirectoryServices.AccountManagement.ADStoreCtx.GetGroupsMemberOfAZ(Principal p) +271 System.DirectoryServices.AccountManagement.UserPrincipal.GetAuthorizationGroupsHelper() +68 HAP.AD.RoleProvider.GetRolesForUser(String username) +578 System.Web.Security.RolePrincipal.IsInRole(String role) +243 HAP.Web.Default.Page_Load(Object sender, EventArgs e) +678 System.Web.UI.Control.OnLoad(EventArgs e) +106 System.Web.UI.Control.LoadRecursive() +68 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3062.0 Does anyone have any idea what could be causing it. It looks to me that it is permissions based, i have made an application pool called HAP. On the HAP site the following permissions are set: System - Full control, administrators - full control, IIS AppPool\HAP - Read & Execute, List folders, Read. Anonymous Authentication is set to Application pool identity. Many thanks, Dex
nickbro Posted June 18, 2018 Posted June 18, 2018 Can you try this HAP.AD dll and see if makes a difference.HAP.AD Debug.rar
jezi55 Posted June 19, 2018 Author Posted June 19, 2018 Hi Nick, unfortunately i get exactly the same error when pasting both files into my hap\bin folder.
jezi55 Posted June 19, 2018 Author Posted June 19, 2018 (edited) All sorted, installed HAP 10.5 and students can log in now! Really weird thing is it now works internal on the server but no on any other computer and when trying to access it from outside of school via https i get the following error: [h=1]Server Error in '/hap' Application.[/h][h=2]The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL.[/h]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.Web.HttpException: The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL. Source Error: [TABLE=width: 100%] [TR] [TD]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.[/TD] [/TR] [/TABLE] Stack Trace: [TABLE=width: 100%] [TR] [TD][HttpException (0x80004005): The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL.] System.Web.Security.FormsAuthentication.SetAuthCookie(String userName, Boolean createPersistentCookie, String strCookiePath) +11746054 HAP.Web.Login.login_Click(Object sender, EventArgs e) +3787 System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +137 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +148 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5028 [/TD] [/TR] [/TABLE] Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3062.0 Why is nothing ever straight forward Edited June 19, 2018 by jezi55
jezi55 Posted June 27, 2018 Author Posted June 27, 2018 Hi Nick, i dont think we offload https. We use cloudflare for our Https and have made a request on the iis server and installed and binded the certificate. On cloudflare i have forced https on all urls..
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