StephenHardy Posted October 15, 2013 Posted October 15, 2013 Hi there, I've managed to get HAP installed and setup on Server 2012 with IIS8 by following this video: (The documentation here: https://hap.codeplex.com/documentation misses of a number of steps) However when I access HAP to setup I get a red X next to the 'Services Activated' check. I've searched through some of the EduGeek forums posts regarding this entry and tried most thing where applicable, but still unable to get past this. Also, all the other tabs on the setup.aspx are not selectable. Thanks Stephen
nickbro Posted October 15, 2013 Posted October 15, 2013 Browse to /api/setup and see if any errors come up also try /api/setup/help
StephenHardy Posted October 15, 2013 Author Posted October 15, 2013 /api/setup results in: [h=1]Server Error in '/hap' Application.[/h] [h=2]A binding instance has already been associated to listen URI 'https://atlas.swc.internal/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. [/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.InvalidOperationException: A binding instance has already been associated to listen URI 'https://atlas.swc.internal/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. 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] [invalidOperationException: A binding instance has already been associated to listen URI 'https://atlas.swc.internal/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. ] System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) +1599 System.ServiceModel.ServiceHostBase.InitializeRuntime() +90 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +182 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +742 System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +126 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +901[serviceActivationException: The service '/hap/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://atlas.swc.internal/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. .] System.Runtime.AsyncResult.End(IAsyncResult result) +650220 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +210733 System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +282 [/TD] [/TR] [/TABLE] Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
StephenHardy Posted October 15, 2013 Author Posted October 15, 2013 /api/setup/help results in: [h=1]Server Error in '/hap' Application.[/h] [h=2]A binding instance has already been associated to listen URI 'https://atlas.swc.internal/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. [/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.InvalidOperationException: A binding instance has already been associated to listen URI 'https://atlas.swc.internal/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. 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] [invalidOperationException: A binding instance has already been associated to listen URI 'https://atlas.swc.internal/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. ] System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) +1599 System.ServiceModel.ServiceHostBase.InitializeRuntime() +90 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +182 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +742 System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +126 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +901[serviceActivationException: The service '/hap/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://atlas.swc.internal/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. .] System.Runtime.AsyncResult.End(IAsyncResult result) +650220 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +210733 System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +282[/TD] [/TR] [/TABLE]
StephenHardy Posted October 15, 2013 Author Posted October 15, 2013 That's the trick... I think a more thorough guide may be required
StephenHardy Posted October 15, 2013 Author Posted October 15, 2013 I'm getting the following error when trying to save settings: A Error has occured: Error Saving the Configuration The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security. at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate) at System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate) at System.Diagnostics.EventLog.SourceExists(String source) at HAP.Web.Setup.Save_Click(Object sender, EventArgs e) Looks to be permissions related but not sure which?
nickbro Posted October 15, 2013 Posted October 15, 2013 I didn't make the guide, I made the videos, one of the community made the instructions. Sometimes it needs the binding removed sometimes it doesn't, it's very random when it does and doesn't
StephenHardy Posted October 15, 2013 Author Posted October 15, 2013 That's fine Nic - I believe I followed your videos I cant perform the setup completely as when saving I get this: A Error has occured: Error Saving the Configuration The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security. at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate) at System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate) at System.Diagnostics.EventLog.SourceExists(String source) at HAP.Web.Setup.Save_Click(Object sender, EventArgs e)
nickbro Posted October 15, 2013 Posted October 15, 2013 See http://www.edugeek.net/forums/home-access-plus/107138-unhandled-security-exception-v8-7-iis-7-5-a.html#post917758
StephenHardy Posted October 15, 2013 Author Posted October 15, 2013 did that now getting: System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.
StephenHardy Posted October 15, 2013 Author Posted October 15, 2013 I added write permissions and this disappeared, however, strangely I can now not see anything when browsing the active directory to add groups/share permissions etc... any ideas?
StephenHardy Posted October 15, 2013 Author Posted October 15, 2013 Also getting an error when saving a drive mapping: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter HAP.Web.API:origunc. The InnerException message was 'There was an error deserializing the object of type System.String. Encountered unexpected character 'R'.'. Please see InnerException for more details.
StephenHardy Posted October 15, 2013 Author Posted October 15, 2013 Log Name: Application Source: Home Access Plus+ Date: 10/15/2013 9:24:10 PM Event ID: 0 Task Category: None Level: Error Keywords: Classic User: N/A Computer: ATLAS.swc.internal Description: An error occurred in Home Access Plus+ Page: System.ServiceModel.Web The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter HAP.Web.API:drive. The InnerException message was 'There was an error deserializing the object of type System.String. The token ':' was expected but found ','.'. Please see InnerException for more details. System.ServiceModel.Dispatcher.NetDispatcherFaultException: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter HAP.Web.API:drive. The InnerException message was 'There was an error deserializing the object of type System.String. The token ':' was expected but found ','.'. Please see InnerException for more details. ---> System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type System.String. The token ':' was expected but found ','. ---> System.Xml.XmlException: The token ':' was expected but found ','. at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3) at System.Runtime.Serialization.Json.XmlJsonReader.SkipExpectedByteInBufferReader(Byte characterToSkip) at System.Runtime.Serialization.Json.XmlJsonReader.ParseStartElement() at System.Runtime.Serialization.Json.XmlJsonReader.Read() at System.Xml.XmlBaseReader.ReadElementContentAsString() at System.Runtime.Serialization.Json.JsonStringDataContract.ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) at System.Runtime.Serialization.Json.JsonDataContract.ReadJsonValue(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName) at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) --- End of inner exception stack trace --- at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) at System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(XmlDictionaryReader reader, Boolean verifyObjectName) at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.PartInfo.ReadObject(XmlDictionaryReader reader, XmlObjectSerializer serializer) at System.ServiceModel.Dispatcher.DataContractJsonSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part) --- End of inner exception stack trace --- at System.ServiceModel.Dispatcher.DataContractJsonSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part) at System.ServiceModel.Dispatcher.DataContractJsonSerializerOperationFormatter.DeserializeParameters(XmlDictionaryReader reader, PartInfo[] parts, Object[] parameters, PartInfo returnInfo, Object& returnValue) at System.ServiceModel.Dispatcher.DataContractJsonSerializerOperationFormatter.DeserializeBodyCore(XmlDictionaryReader reader, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.DataContractJsonSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeRequest(Message message, Object[] parameters) at System.ServiceModel.Dispatcher.DemultiplexingDispatchMessageFormatter.DeserializeRequest(Message message, Object[] parameters) at System.ServiceModel.Dispatcher.UriTemplateDispatchFormatter.DeserializeRequest(Message message, Object[] parameters) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.DeserializeInputs(MessageRpc& rpc) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet) at System.ServiceModel.Dispatcher.DataContractJsonSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part) at System.ServiceModel.Dispatcher.DataContractJsonSerializerOperationFormatter.DeserializeParameters(XmlDictionaryReader reader, PartInfo[] parts, Object[] parameters, PartInfo returnInfo, Object& returnValue) at System.ServiceModel.Dispatcher.DataContractJsonSerializerOperationFormatter.DeserializeBodyCore(XmlDictionaryReader reader, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.DataContractJsonSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeRequest(Message message, Object[] parameters) at System.ServiceModel.Dispatcher.DemultiplexingDispatchMessageFormatter.DeserializeRequest(Message message, Object[] parameters) at System.ServiceModel.Dispatcher.UriTemplateDispatchFormatter.DeserializeRequest(Message message, Object[] parameters) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.DeserializeInputs(MessageRpc& rpc) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
StephenHardy Posted October 15, 2013 Author Posted October 15, 2013 and finally when playing with changing the user to connect to the AD I get: There is something wrong connecting to your AD Infrastructure, please review the AD settings and try again. The most common cause of this is using a user not in the Domain Admins or Administrators Group
StephenHardy Posted October 15, 2013 Author Posted October 15, 2013 *sigh* could be a server 2012 RM CC4 issue I guess...
StephenHardy Posted October 17, 2013 Author Posted October 17, 2013 I uninstalled HAP from my server 2012 server and installed it onto a Server 2008R2 Web server and it started working fine... Server 2012 is a bit of a pain at the moment.... especially on a CC4 network.
nickbro Posted October 17, 2013 Posted October 17, 2013 Known issue with 2012, I'll be testing HAP+ on 2012 R2 from Monday
StephenHardy Posted October 17, 2013 Author Posted October 17, 2013 No worries Nick... its a "nice to have" on Server 2012 not a necessity
burgemaster Posted November 25, 2013 Posted November 25, 2013 Hi Stephen, We have it running fine on server 2012, we are now trying to install it on 2012 R2 and we are getting the above issues. Must be something were missing.
nickbro Posted November 26, 2013 Posted November 26, 2013 There's a bug in the v9.6+ setup page where the drive mappings cannot be edited, I'll have the fix for the v9.8 release (expected before the New Year [Christmas present])
burgemaster Posted November 26, 2013 Posted November 26, 2013 There's a bug in the v9.6+ setup page where the drive mappings cannot be edited, I'll have the fix for the v9.8 release (expected before the New Year [Christmas present]) Hi Nick, Is this regarding server 2012 R2 only? Thanks
nickbro Posted November 27, 2013 Posted November 27, 2013 Can you post a screenshot of the site's BINDING information please
burgemaster Posted December 1, 2013 Posted December 1, 2013 Hi Stephen, Just to adpate, working perfectly with Server 2012 R2 as well as Server 2012 now... As said earlier if you watch the install video it has a couple of steps missed in the pdf. Good Luck!
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