clarky2k3 Posted July 4, 2013 Posted July 4, 2013 Hi, I have setup HAP a few times but with this latest install on server 2012 I am struggling. Has anyone had a problem where on the setup page they can click the tabs across the top? Any help is appreciated.
clarky2k3 Posted July 4, 2013 Author Posted July 4, 2013 Okay getting a new error now - Server Error in '/homeaccess' Application. -------------------------------------------------------------------------------- An operations error 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: An operations error 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 (0x80072020): An operations error occurred. ] System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +628277 System.DirectoryServices.DirectoryEntry.Bind() +44 System.DirectoryServices.DirectoryEntry.get_AdsObject() +42 System.DirectoryServices.PropertyValueCollection.PopulateList() +29 System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName) +63 System.DirectoryServices.PropertyCollection.get_Item(String propertyName) +163 System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer() +521413 System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit() +51 System.DirectoryServices.AccountManagement.PrincipalContext.Initialize() +161 System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx() +42 System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate) +29 System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(PrincipalContext context, String identityValue) +81 HAP.AD.User.Authenticate(String username, String password) +295 HAP.Web.Global.Application_Start(Object sender, EventArgs e) +187 [HttpException (0x80004005): An operations error occurred. ] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12864673 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475 [HttpException (0x80004005): An operations error occurred. ] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12881540 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12722601 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
clarky2k3 Posted July 4, 2013 Author Posted July 4, 2013 Okay, I have copied the hapconfig.xml from another install and logged in fine then the page just keeps looping...
nickbro Posted July 6, 2013 Posted July 6, 2013 Check you don't need this hotfix: A hotfix is available for the ASP.NET browser definition files in the Microsoft .NET Framework 4.0
clarky2k3 Posted July 10, 2013 Author Posted July 10, 2013 (edited) That hotfix doesnt apply to server 2012, is it because I havent got ASP.NET 3.5 installed? EDIT - Installed ASP.NET 3.5 still the webpage refreshes every second. Edited July 10, 2013 by clarky2k3 More info
nickbro Posted July 10, 2013 Posted July 10, 2013 You shouldn't need ASP.net 3.5. With the config from another install, is it from the same server? There is server specific data used to encrypt passwords in HAP+
clarky2k3 Posted July 10, 2013 Author Posted July 10, 2013 Hi, No it isn't the same server, I will start again with v9.2 with a fresh setup and see how I get on. The reason why I copied the XML is on the setup page the links didn't work.
nickbro Posted July 10, 2013 Posted July 10, 2013 The links don't work? Is the style sheet not getting loaded?
clarky2k3 Posted July 11, 2013 Author Posted July 11, 2013 Started again, getting a red cross on services activated. The style sheet is getting loaded if I go to /style/basestyle.css. If I go to /api/setup I get the following error - A binding instance has already been associated to listen URI 'https://%myurl%/homeaccess/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. 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.InvalidOperationException: A binding instance has already been associated to listen URI 'https://%myurl%/homeaccess/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. 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: [invalidOperationException: A binding instance has already been associated to listen URI 'https://%myurl%/homeaccess/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. ] System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) +2451 System.ServiceModel.ServiceHostBase.InitializeRuntime() +65 System.ServiceModel.ServiceHostBase.OnBeginOpen() +34 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +50 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +310 System.ServiceModel.Channels.CommunicationObject.Open() +36 System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +91 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +598 [serviceActivationException: The service '/homeaccess/api/setup' cannot be activated due to an exception during compilation. The exception message is: A binding instance has already been associated to listen URI 'https://%myurl%/homeaccess/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. .] System.Runtime.AsyncResult.End(IAsyncResult result) +495736 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +178 System.ServiceModel.Activation.AspNetRouteServiceHttpHandler.EndProcessRequest(IAsyncResult result) +6 System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +129 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
clarky2k3 Posted July 11, 2013 Author Posted July 11, 2013 Okay, if I remove the http binding and keep the https binding, it works... Add the http back on and it doesnt!
nickbro Posted July 11, 2013 Posted July 11, 2013 Best way to solve this, Add a Site on http that redirects to the https
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