title: Could not find a base address that matches scheme http for the endpoint with binding BasicHttpBinding
body: <p>I am getting this message when I attempt to access my service:</p>
  
  <pre><code>Could not find a base address that matches scheme http for the endpoint with binding BasicHttpBinding. 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 BasicHttpBinding. 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 BasicHttpBinding. Registered base address schemes are [https].]
     System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) +17430541
     System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress, Boolean skipHost) +1097
     System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection) +89
     System.ServiceModel.ServiceHost.ApplyConfiguration() +162
     System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +207
     System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +475
     System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +43
     System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +578
     System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +1451
     System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +76
     System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +901
  
  [ServiceActivationException: The service '/fileservice/fileservice.svc' 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 BasicHttpBinding. Registered base address schemes are [https]..]
     System.Runtime.AsyncResult.End(IAsyncResult result) +654324
     System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +210877
     System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +282
  </code></pre>
  
  <p>I am using a config almost identical to another service I wrote on the same url different folder and I'm having no issues.</p>
  
  <p>This is my web.config:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
  
    &lt;system.web&gt;
      &lt;compilation targetFramework="4.0" debug="true"&gt;
        &lt;assemblies&gt;
          &lt;add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /&gt;
        &lt;/assemblies&gt;
      &lt;/compilation&gt;
      &lt;caching&gt;
        &lt;outputCacheSettings&gt;
          &lt;outputCacheProfiles&gt;
            &lt;add name="DefaultCache" duration="60" varyByParam="none" /&gt;
          &lt;/outputCacheProfiles&gt;
        &lt;/outputCacheSettings&gt;
      &lt;/caching&gt;
    &lt;/system.web&gt;
  
    &lt;system.serviceModel&gt;
      &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" /&gt;
      &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="BasicHttpEndpointBinding"&gt;
            &lt;security mode="None"&gt;
              &lt;!-- Basic &lt;security mode="Transport"&gt; --&gt;
              &lt;!-- To use Basic auth, just comment Windows and use this, but you need to configure basic in IIS as well --&gt;
              &lt;!-- &lt;transport clientCredentialType="Basic" /&gt; --&gt;
              &lt;transport clientCredentialType="None" /&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/basicHttpBinding&gt;
        &lt;webHttpBinding&gt;
          &lt;binding name="default"&gt;
            &lt;security mode="None"&gt;
              &lt;!-- Basic &lt;security mode="Transport"&gt; --&gt;
              &lt;!-- To use Basic auth, just comment Windows and use this --&gt;
              &lt;!-- &lt;transport clientCredentialType="Basic" /&gt; --&gt;
              &lt;transport clientCredentialType="None" /&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/webHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior&gt;
            &lt;!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --&gt;
            &lt;serviceMetadata httpGetEnabled="true" /&gt;
            &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior name="restBehavior"&gt;
            &lt;webHttp /&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;services&gt;
        &lt;service name="FileStorageService.FileService"&gt;
          &lt;endpoint binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpointBinding" contract="FileStorageService.IFileService"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint address="rest" binding="webHttpBinding" bindingConfiguration="default" behaviorConfiguration="restBehavior" contract="FileStorageService.IFileService"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
        &lt;/service&gt;
      &lt;/services&gt;
    &lt;/system.serviceModel&gt;
  
    &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true" /&gt;
    &lt;/system.webServer&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The only thing I changed was the namespace and service name. The namespace for this service is <code>FileStorageService</code> with the service name being <code>FileService</code>.</p>
  
  <p>I have really nothing in the server, as you can see in the code:</p>
  
  <pre><code>using System.ServiceModel;
  
  namespace FileStorageService
  {
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IFileService" in both code and config file together.
    [ServiceContract]
    public interface IFileService
    {
      [OperationContract]
      void DoWork();
    }
  }
  
  namespace FileStorageService
  {
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "FileService" in code, svc and config file together.
    public class FileService : IFileService
    {
      public void DoWork()
      {
      }
    }
  }
  </code></pre>
  
  <p>It's the basic information when a new service is created. It is publishing to a SSL domain, so it requires https.</p>
  
  <p>All I'm attempting to do is get it published so I know it is working so I can move on.</p>
  
  <p>Can anyone see what I am doing wrong?</p>