Mr_P Posted September 18, 2013 Posted September 18, 2013 Hi. Still having fun setting up HAP+ Completed setup.aspx ok.. everything talks to AD and shows my OU's, groups etc. So.. go to the login screen and tried my first login as admin.. Page logs in.. but I get the message " Error: Unauthorised Access You have attempted to access a restricted resource " At this point any option I click on the screen I am presented with the below error. [ProviderException: Method is only supported if the user name parameter matches the user name in the current Windows Identity.] System.Web.Security.WindowsTokenRoleProvider.GetCurrentWindowsIdentityAndCheckName(String userName) +782 System.Web.Security.WindowsTokenRoleProvider.GetCurrentTokenAndCheckName(String userName) +49 System.Web.Security.WindowsTokenRoleProvider.GetRolesForUser(String username) +99 HAP.AD.RoleProvider.GetRolesForUser(String username) +93 System.Web.Security.RolePrincipal.IsInRole(String role) +322 HAP.Web.Default.Page_Load(Object sender, EventArgs e) +692 System.Web.UI.Control.LoadRecursive() +116 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2910 ------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 Any ideas what is going on here.? In my IIS authentication I have only Anonymous Authentication Enabled and using IIS_AppPool creds, I also have forms authentication enabled.. . the remaining 4 methods are disabled. I have also checked my local policy and domains users are set to login locally. Any pointers would be appreaciated. Rgds Mr_P
nickbro Posted September 18, 2013 Posted September 18, 2013 Hmm, that's an odd one. Check the Admin user you used on the AD tab is the Administrator, or such like. Try deleting ~/app_Data/hapConfig.xml and remake it using the setup page
Mr_P Posted October 1, 2013 Author Posted October 1, 2013 Hmm, that's an odd one. Check the Admin user you used on the AD tab is the Administrator, or such like. Try deleting ~/app_Data/hapConfig.xml and remake it using the setup page Hi.. tried as you said.. this time during setup I now get a message at the point of clicking in the Students Group part of Active Directory Tabs. The error appears in a Message From Webpage alert box. The error is: System.ServiceModel.ServiceActivationException Now cant get any further.. got much further before.
Mr_P Posted October 1, 2013 Author Posted October 1, 2013 event viewer.. shows. Event code: 3005 Event message: An unhandled exception has occurred. Event time: 01/10/2013 12:27:22 Event time (UTC): 01/10/2013 11:27:22 Event ID: 488dd104b4b040fd9dc78aafd9ba6623 Event sequence: 86 Event occurrence: 4 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/hap-1-130250999308161749 Trust level: Full Application Virtual Path: /hap Application Path: C:\inetpub\wwwroot\hap\ Machine name: SERVER1 Process information: Process ID: 6288 Process name: w3wp.exe Account name: IIS APPPOOL\HAP Exception information: Exception type: InvalidOperationException Exception message: A binding instance has already been associated to listen URI 'https://server1/hap/api/setup'. If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in AddServiceEndpoint() calls, in a config file, or a combination of AddServiceEndpoint() and config. at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) at System.ServiceModel.ServiceHostBase.InitializeRuntime() at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) Request information: Request URL: https://server1:443/hap/api/setup/help Request path: /hap/api/setup/help User host address: 10.25.3.254 User: Is authenticated: False Authentication Type: Thread account name: IIS APPPOOL\HAP Thread information: Thread ID: 31 Thread account name: IIS APPPOOL\HAP Is impersonating: False Stack trace: at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) at System.ServiceModel.ServiceHostBase.InitializeRuntime() at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) Custom event details:
nickbro Posted October 1, 2013 Posted October 1, 2013 I can't help with that error, it's an IIS error
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