I have set a self signed Cert, enabled SSL for the site.
I am using HTTPS
going to https://localhost/HAP/api/test
I just get OK.
going to https://localhost/HAP/api/setup
i get the following.
Sorry if its something really stupid!
Code:Server Error in '/HAP' Application. -------------------------------------------------------------------------------- A binding instance has already been associated to listen URI 'https://server.tnw.leeds.sch.uk/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. 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://server.tnw.leeds.sch.uk/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: 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://server.tnw.leeds.sch.uk/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://server.tnw.leeds.sch.uk/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


LinkBack URL
About LinkBacks




