Server Error in '/Intranet' Application.
Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https].
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: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https].
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: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https].]
System.ServiceModel.ServiceHostBase.MakeAbsoluteUr i(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) +12298460
System.ServiceModel.Description.ConfigLoader.Confi gureEndpointAddress(ServiceEndpointElement serviceEndpointElement, ServiceHostBase host, ServiceEndpoint endpoint) +54
System.ServiceModel.Description.ConfigLoader.Confi gureEndpoint(StandardEndpointElement standardEndpointElement, ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, ServiceEndpoint& endpoint, Boolean omitSettingEndpointAddress) +487
System.ServiceModel.Description.ConfigLoader.Looku pEndpoint(ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, Boolean omitSettingEndpointAddress) +616
System.ServiceModel.Web.WebServiceHost.AddAutomati cWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage, String standardEndpointKind) +681
System.ServiceModel.Web.WebServiceHost.OnOpening() +244
System.ServiceModel.Channels.CommunicationObject.O pen(TimeSpan timeout) +274
System.ServiceModel.Channels.CommunicationObject.O pen() +36
System.ServiceModel.HostingManager.ActivateService (String normalizedVirtualPath) +184
System.ServiceModel.HostingManager.EnsureServiceAv ailable(String normalizedVirtualPath) +615
[ServiceActivationException: The service '/Intranet/api/setup' cannot be activated due to an exception during compilation. The exception message is: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https]..]
System.Runtime.AsyncResult.End(IAsyncResult result) +687598
System.ServiceModel.Activation.HostedHttpRequestAs yncResult.End(IAsyncResult result) +190
System.ServiceModel.Activation.AspNetRouteServiceH ttpHandler.EndProcessRequest(IAsyncResult result) +6
System.Web.CallHandlerExecutionStep.OnAsyncHandler Completion(IAsyncResult ar) +96
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1