Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

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!

 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...