none
send custom username and password with basichttpbinding with htpps RRS feed

  • Question

  • hi, i am trying to consume a web service in .net4 from a console app with .net2.0

    i manage to get the comunication working, but i now i am trying to authenticate...

    because the service and the console app are from different frameworks, i can only usse basicHttpbindig...

    i follow this page for creating the service example..

    brhlavinka.com/2013/06/07/secure-wcf-service-with-basichttpbinding-and-custom-credentials/

    but now it is giving this error

    Unable to find a matching scheme https base address for the endpoint with binding BasicHttpBinding. The Registered base address schemes are [http].

    this is my config file..

    <?xml version="1.0"?>
    <configuration>

      <system.web>
        <compilation debug="true" targetFramework="4.0" />
      </system.web>
      <system.serviceModel>
        <services>
          <service name="WcfService1.Service1"
                  behaviorConfiguration="Brett_Behavior">
            <endpoint address=""
                      binding="basicHttpBinding"
                      bindingConfiguration="Brett_BindingConfiguration"
                      contract="WcfService1.IService1" />
            <endpoint address="mex"
                      binding="mexHttpsBinding"
                      contract="IMetadataExchange" />
          </service>
        </services>
        <bindings>
          <basicHttpBinding>
            <binding name="Brett_BindingConfiguration">
              <security mode="TransportWithMessageCredential">
                <message clientCredentialType="UserName" />
              </security>
            </binding>
          </basicHttpBinding>
        </bindings>
        <behaviors>
          <serviceBehaviors>
            <behavior name="Brett_Behavior">
              <serviceMetadata httpsGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true"/>
              <serviceCredentials>
                <userNameAuthentication userNamePasswordValidationMode="Custom"
                                        customUserNamePasswordValidatorType="WcfService1.Auth, WcfService1"/>
              </serviceCredentials>
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
      </system.serviceModel>
     <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
        <!--
            To browse web app root directory during debugging, set the value below to true.
            Set to false before deployment to avoid disclosing web app folder information.
          -->
        <directoryBrowse enabled="true"/>
      </system.webServer>

    </configuration>

    when i try to browse the service it gives me the same error..

    what am i missing?

    Or can you tell me a better way for doing this?

    Thanks in advance Hugo


    • Edited by HugoSilvaIdonic Wednesday, June 11, 2014 3:53 PM vorrect spelling
    Wednesday, June 11, 2014 3:41 PM

All replies

  • Hi,

    From your description, I know that you wan to make the WCF to use the Https, then it will need some other configuration, for more information, please try to check the following:

    The HTTPS transport security requires an SSL certificate to be registered with IIS. If we do not have an SSL certificate we can use IIS to generate a test certificate. Next we must add an SSL binding to the web site and configure the web site’s authentication properties. Finally we need to configure the WCF service to use the HTTPS.
    So for your question, you have forgotten to add the service certificate.

    For more information, please try to refer to:
    #How to: Configure an IIS-hosted WCF service with SSL:
    http://msdn.microsoft.com/en-us/library/hh556232(v=vs.110).aspx .

    #Seven simple steps to enable HTTPS on WCF :
    http://www.codeproject.com/Articles/36705/simple-steps-to-enable-HTTPS-on-WCF-WsHttp-bindi .


    Best Regards,
    Amy Peng

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, June 12, 2014 8:50 AM
    Moderator
  • i did follow the example on this site:

    http://msdn.microsoft.com/en-us/library/hh556232(v=vs.110).aspx 

    and now, i can only access the server using https://localhoast

    so i think now that my problem is in the config...

    Thursday, June 12, 2014 9:05 AM
  • Hi,

    It seems that your config file is correct, then please try to add the following to your config file to enable the WCF tracing:

     <!-- comment this if you don't want to make diag trace -->
            <diagnostics>
                <messageLogging maxMessagesToLog="30000"
                        logEntireMessage="true"
                        logMessagesAtServiceLevel="false"
                        logMalformedMessages="true"
                        logMessagesAtTransportLevel="true">
                    <filters>
                        <clear/>
                    </filters>
                </messageLogging>
            </diagnostics>
        </system.serviceModel>
    
        <!-- comment this if you don't want to make diag trace -->
        <system.diagnostics>
            <sources>
                <source name="System.ServiceModel" 
                         switchValue="Warning, ActivityTracing" 
                         propagateActivity="true" >
                    <listeners>
                        <add name="xml" />
                    </listeners>
                </source>
                <source name="System.ServiceModel.MessageLogging" 
                          switchValue="Warning">
                    <listeners>
                        <add name="xml" />
                    </listeners>
                </source>
            </sources>
            <sharedListeners>
                <add name="xml" 
                  type="System.Diagnostics.XmlWriterTraceListener" 
                  initializeData="C:\Temp\Server2.svclog" />
            </sharedListeners>
            <trace autoflush="true" indentsize="4"/>
        </system.diagnostics>

    For more information, please try to refer to:
    #WCF Service over HTTPS with custom username and password validator in IIS:
    http://www.codeproject.com/Articles/59927/WCF-Service-over-HTTPS-with-custom-username-and-pa .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, June 13, 2014 6:00 AM
    Moderator
  • this is currenctly hom my config  file is:

    <?xml version="1.0"?>
    <configuration>

      <system.web>
        <compilation debug="true" targetFramework="4.0" />
      </system.web>
      <system.serviceModel>
        <services>
          <service name="WcfService1.Service1"
                  behaviorConfiguration="Brett_Behavior">
            <endpoint address=""
                      binding="basicHttpBinding"
                      bindingConfiguration="Brett_BindingConfiguration"
                      contract="WcfService1.IService1" />
            <endpoint address="mex"
                      binding="mexHttpsBinding"
                      contract="IMetadataExchange" />
          </service>
        </services>
        <bindings>
          <basicHttpBinding>
            <binding name="Brett_BindingConfiguration">
              <security mode="TransportWithMessageCredential">
                <message clientCredentialType="UserName" />
              </security>
            </binding>
          </basicHttpBinding>
        </bindings>
        <behaviors>
          <serviceBehaviors>
            <behavior name="Brett_Behavior">
              <serviceMetadata httpsGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true"/>
              <serviceCredentials>
                <userNameAuthentication userNamePasswordValidationMode="Custom"
                                        customUserNamePasswordValidatorType="WcfService1.Auth, WcfService1"/>
              </serviceCredentials>
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
       <diagnostics>
                <messageLogging maxMessagesToLog="30000"
                        logEntireMessage="true"
                        logMessagesAtServiceLevel="false"
                        logMalformedMessages="true"
                        logMessagesAtTransportLevel="true">
                    <filters>
                        <clear/>
                    </filters>
                </messageLogging>
            </diagnostics>
      </system.serviceModel>
       <system.diagnostics>
            <sources>
                <source name="System.ServiceModel" 
                         switchValue="Warning, ActivityTracing" 
                         propagateActivity="true" >
                    <listeners>
                        <add name="xml" />
                    </listeners>
                </source>
                <source name="System.ServiceModel.MessageLogging" 
                          switchValue="Warning">
                    <listeners>
                        <add name="xml" />
                    </listeners>
                </source>
            </sources>
            <sharedListeners>
                <add name="xml" 
                  type="System.Diagnostics.XmlWriterTraceListener" 
                  initializeData="C:\Temp\Server2.svclog" />
            </sharedListeners>
            <trace autoflush="true" indentsize="4"/>
        </system.diagnostics>
     <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
        <!--
            To browse web app root directory during debugging, set the value below to true.
            Set to false before deployment to avoid disclosing web app folder information.
          -->
        <directoryBrowse enabled="true"/>
      </system.webServer>

    </configuration>

    when i rigth click on the wcf service i launch it on the browser this error appears:

    Unable to find a matching scheme https base address for the endpoint with binding BasicHttpBinding. The Registered base address schemes are [http].

    when i press the play button it appears a list of files in the localhost..

    i then choose the service1.svc and click it..

    the error above appears..


    Wednesday, June 18, 2014 10:31 AM
  • the link that you gave me use wsbinding, i need to use bascihttpbinding because client is .net2 and wcf service is in .net 4..
    Wednesday, June 18, 2014 10:34 AM
  • the diagnostics file

    <E2ETraceEvent Xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"> <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name = "Transfer"> 0 </ SubType> <level> 255 </ Level> <TimeCreated SystemTime="2014-06-18T10:54:48.7827749Z" /> <Source Name="System.ServiceModel" /> <Correlation ActivityID = "{00000000-0000-0000-0000-000000000000}" relatedActivityId = "{658548d1-c5d3-4f97-928b-f198bfc906cb}" /> <Execution ProcessName = "iisexpress" ProcessID = "6676" ThreadID = "11" /><Channel/><Computer>DEV3</Computer></System><ApplicationData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns = "http://schemas.microsoft.com/2004/06/E2ETraceEvent"> <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131085</EventID><Type>3</Type><SubType Name = "Start"> 0 </ SubType> <level> 255 </ Level> <TimeCreated SystemTime="2014-06-18T10:54:48.7923416Z" /> <Source Name="System.ServiceModel" /> <Correlation ActivityID = "{658548d1-c5d3-4f97-928b-f198bfc906cb}" /> <Execution ProcessName="iisexpress" ProcessID="6676" ThreadID="11" /> <Channel/> <Computer> dev3 </ Computer> </ System> <ApplicationData> <TraceData> <DataItem> <TraceRecord xmlns = "http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Start"><TraceIdentifier>http://msdn.microsoft.com/pt-PT/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier><Description>Limite activity. </ Description> <AppDomain> / LM/W3SVC/8/ROOT-28-130475624866578610 </ AppDomain> <ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><ActivityName>Construir ServiceHost 'WcfService1.Service1'.</ActivityName><ActivityType>Construct</ActivityType></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns = "http://schemas.microsoft.com/2004/06/E2ETraceEvent"> <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131075</EventID><Type>3</Type><SubType Name = "Error"> 0 </ SubType> <level> 2 </ Level> <TimeCreated SystemTime="2014-06-18T10:54:48.8073532Z" /> <Source Name="System.ServiceModel" /> <Correlation ActivityID = "{658548d1-c5d3-4f97-928b-f198bfc906cb}" /> <Execution ProcessName="iisexpress" ProcessID="6676" ThreadID="11" /> <Channel/> <Computer> dev3 </ Computer> </ System> <ApplicationData> <TraceData> <DataItem> <TraceRecord xmlns = "http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/pt-PT/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>A generate a exceção.</Description><AppDomain>/LM/W3SVC/8/ROOT-28-130475624866578610</AppDomain><Exception><ExceptionType>System.InvalidOperationException, mscorlib, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089 </ ExceptionType> <Message> Could not find a base address corresponding to the scheme https for the endpoint with binding BasicHttpBinding. The Registered base address schemes are [http]. </ Message> <StackTrace> in System.ServiceModel.ServiceHostBase.MakeAbsoluteUri (Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.Description.ConfigLoader.LoadServiceDescription (ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action `1 AddBaseAddress, Boolean skipHost) 
        in System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal (ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection) 
        System.ServiceModel.ServiceHostBase.ApplyConfiguration in () 
        System.ServiceModel.ServiceHost.ApplyConfiguration in () 
        in System.ServiceModel.ServiceHostBase.InitializeDescription (UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost.InitializeDescription (Type serviceType, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost .. ctor (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (constructorString String, Uri [] baseAddresses) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService (ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast (String relativeVirtualPath, EventTraceActivity eventTraceActivity) 
        System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest in () 
        System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest in () 
        in System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest (Object state) 
        in System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback (UInt32 errorCode, UInt32 numBytes, NativeOverlapped * NativeOverlapped) 
        in System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame (UInt32 error, UInt32 bytesRead, NativeOverlapped * NativeOverlapped) 
        in System.Threading._IOCompletionCallback.PerformIOCompletionCallback (UInt32 errorCode, UInt32 numBytes, NativeOverlapped * pOVERLAP) 
    </ StackTrace> <ExceptionString> System.InvalidOperationException: Unable to find a matching base address scheme https for the endpoint with binding BasicHttpBinding. The Registered base address schemes are [http].</ExceptionString></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns = "http://schemas.microsoft.com/2004/06/E2ETraceEvent"> <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name = "Transfer"> 0 </ SubType> <level> 255 </ Level> <TimeCreated SystemTime="2014-06-18T10:54:48.8293670Z" /> <Source Name="System.ServiceModel" /> <Correlation ActivityID = "{658548d1-c5d3-4f97-928b-f198bfc906cb}" relatedActivityId = "{00000000-0000-0000-0000-000000000000}" /> <Execution ProcessName = "iisexpress" ProcessID = "6676" ThreadID = "11" /><Channel/><Computer>DEV3</Computer></System><ApplicationData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns = "http://schemas.microsoft.com/2004/06/E2ETraceEvent"> <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131085</EventID><Type>3</Type><SubType Name = "Stop"> 0 </ SubType> <level> 255 </ Level> <TimeCreated SystemTime="2014-06-18T10:54:48.8293670Z" /> <Source Name="System.ServiceModel" /> <Correlation ActivityID = "{658548d1-c5d3-4f97-928b-f198bfc906cb}" /> <Execution ProcessName="iisexpress" ProcessID="6676" ThreadID="11" /> <Channel/> <Computer> dev3 </ Computer> </ System> <ApplicationData> <TraceData> <DataItem> <TraceRecord xmlns = "http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Stop"><TraceIdentifier>http://msdn.microsoft.com/pt-PT/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier><Description>Limite activity. </ Description> <AppDomain> / LM/W3SVC/8/ROOT-28-130475624866578610 </ AppDomain> <ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><ActivityName>Construir ServiceHost 'WcfService1.Service1'.</ActivityName><ActivityType>Construct</ActivityType></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns = "http://schemas.microsoft.com/2004/06/E2ETraceEvent"> <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131075</EventID><Type>3</Type><SubType Name = "Warning"> 0 </ SubType> <level> 4 </ Level> <TimeCreated SystemTime="2014-06-18T10:54:48.8363720Z" /> <Source Name="System.ServiceModel" /> <Correlation ActivityID = "{00000000-0000-0000-0000-000000000000}" /> <Execution ProcessName="iisexpress" ProcessID="6676" ThreadID="11" /> <Channel/> <Computer> dev3 </ Computer> </ System> <ApplicationData> <TraceData> <DataItem> <TraceRecord Severity = "Warning" Channel = "Analytic" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord"><TraceIdentifier>http://msdn.microsoft.com/pt-PT/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>A raise an exception. Source System.ServiceModel 4.0.0.0. Exception Details: System.ServiceModel.ServiceActivationException: Can not activate '/ Service1.svc' service due to exception during compilation. The exception message is: Could not find a matching scheme to https base address for the endpoint with binding BasicHttpBinding. The Registered base address schemes are [http] .. ---> System.InvalidOperationException: Could not find a matching scheme to https base address for the endpoint with binding BasicHttpBinding. The Registered base address schemes are [http]. 
        in System.ServiceModel.ServiceHostBase.MakeAbsoluteUri (Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.Description.ConfigLoader.LoadServiceDescription (ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action `1 AddBaseAddress, Boolean skipHost) 
        in System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal (ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection) 
        System.ServiceModel.ServiceHostBase.ApplyConfiguration in () 
        System.ServiceModel.ServiceHost.ApplyConfiguration in () 
        in System.ServiceModel.ServiceHostBase.InitializeDescription (UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost.InitializeDescription (Type serviceType, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost .. ctor (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (constructorString String, Uri [] baseAddresses) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService (ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        --- End of stack trace of inner exception ---</Description><AppDomain>/LM/W3SVC/8/ROOT-28-130475624866578610</AppDomain><Exception><ExceptionType>System.ServiceModel.ServiceActivationException, System.ServiceModel, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089 </ ExceptionType> <Message> Can not activate '/ Service1.svc' service due to exception during compilation. The exception message is: Could not find a matching scheme to https base address for the endpoint with binding BasicHttpBinding. The Registered base address schemes are [http] .. </ Message> <StackTrace> in System.Runtime.Diagnostics.EtwDiagnosticTrace.WriteExceptionToTraceString (xml XmlTextWriter, Exception exception, Int32 remainingLength, Int32 remainingAllowedRecursionDepth) 
        in System.Runtime.Diagnostics.EtwDiagnosticTrace.ExceptionToTraceString (Exception exception, Int32 maxTraceStringLength) 
        in System.Runtime.Diagnostics.EtwDiagnosticTrace.GetSerializedPayload (Object source, TraceRecord traceRecord, Exception exception, Boolean getServiceReference) 
        in System.Runtime.TraceCore.ThrowingException (EtwDiagnosticTrace trace, param0 String, String param1, Exception exception) 
        in System.Runtime.ExceptionTrace.TraceException [TException] (TException exception, String eventSource) 
        in System.Runtime.ExceptionTrace.AsError (Exception exception) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast (String relativeVirtualPath, EventTraceActivity eventTraceActivity) 
        System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest in () 
        System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest in () 
        in System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest (Object state) 
        in System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback (UInt32 errorCode, UInt32 numBytes, NativeOverlapped * NativeOverlapped) 
        in System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame (UInt32 error, UInt32 bytesRead, NativeOverlapped * NativeOverlapped) 
        in System.Threading._IOCompletionCallback.PerformIOCompletionCallback (UInt32 errorCode, UInt32 numBytes, NativeOverlapped * pOVERLAP) 
    </ StackTrace> <ExceptionString> System.ServiceModel.ServiceActivationException: Can not activate '/ Service1.svc' service due to exception during compilation. The exception message is: Could not find a matching scheme to https base address for the endpoint with binding BasicHttpBinding. The Registered base address schemes are [http] .. --- &gt; System.InvalidOperationException: Could not find a matching scheme to https base address for the endpoint with binding BasicHttpBinding. The Registered base address schemes are [http]. 
        in System.ServiceModel.ServiceHostBase.MakeAbsoluteUri (Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.Description.ConfigLoader.LoadServiceDescription (ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action `1 AddBaseAddress, Boolean skipHost) 
        in System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal (ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection) 
        System.ServiceModel.ServiceHostBase.ApplyConfiguration in () 
        System.ServiceModel.ServiceHost.ApplyConfiguration in () 
        in System.ServiceModel.ServiceHostBase.InitializeDescription (UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost.InitializeDescription (Type serviceType, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost .. ctor (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (constructorString String, Uri [] baseAddresses) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService (ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        --- End of stack trace --- inner exception </ ExceptionString> <InnerException> <Exception> <ExceptionType> System.InvalidOperationException, mscorlib, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089 </ ExceptionType> <message> Unable to find a matching base address scheme https for the endpoint with binding BasicHttpBinding. The Registered base address schemes are [http]. </ Message> <StackTrace> in System.ServiceModel.ServiceHostBase.MakeAbsoluteUri (Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.Description.ConfigLoader.LoadServiceDescription (ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action `1 AddBaseAddress, Boolean skipHost) 
        in System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal (ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection) 
        System.ServiceModel.ServiceHostBase.ApplyConfiguration in () 
        System.ServiceModel.ServiceHost.ApplyConfiguration in () 
        in System.ServiceModel.ServiceHostBase.InitializeDescription (UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost.InitializeDescription (Type serviceType, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost .. ctor (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (constructorString String, Uri [] baseAddresses) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService (ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) </ StackTrace> <ExceptionString> System.InvalidOperationException: Unable to find a matching base address scheme https for the endpoint with binding BasicHttpBinding. The Registered base address schemes are [http]. 
        in System.ServiceModel.ServiceHostBase.MakeAbsoluteUri (Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.Description.ConfigLoader.LoadServiceDescription (ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action `1 AddBaseAddress, Boolean skipHost) 
        in System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal (ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection) 
        System.ServiceModel.ServiceHostBase.ApplyConfiguration in () 
        System.ServiceModel.ServiceHost.ApplyConfiguration in () 
        in System.ServiceModel.ServiceHostBase.InitializeDescription (UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost.InitializeDescription (Type serviceType, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost .. ctor (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (constructorString String, Uri [] baseAddresses) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService (ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable (String normalizedVirtualPath, EventTraceActivity eventTraceActivity)</ExceptionString></Exception></InnerException></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns = "http://schemas.microsoft.com/2004/06/E2ETraceEvent"> <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131074</EventID><Type>3</Type><SubType Name = "Error"> 0 </ SubType> <level> 2 </ Level> <TimeCreated SystemTime="2014-06-18T10:54:48.8453780Z" /> <Source Name="System.ServiceModel" /> <Correlation ActivityID = "{00000000-0000-0000-0000-000000000000}" /> <Execution ProcessName="iisexpress" ProcessID="6676" ThreadID="11" /> <Channel/> <Computer> dev3 </ Computer> </ System> <ApplicationData> <TraceData> <DataItem> <TraceRecord xmlns = "http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/pt-PT/library/System.ServiceModel.Diagnostics.EventLog.aspx</TraceIdentifier><Description>Escrito in the event log. </ Description> <AppDomain> / LM/W3SVC/8/ROOT-28-130475624866578610 </ AppDomain> <ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><CategoryID.Name>EventLogCategory</CategoryID.Name><CategoryID.Value>5</CategoryID.Value><InstanceID.Name>EventId</InstanceID.Name><InstanceID.Value>3221356547</InstanceID.Value><Value0>System.ServiceModel.ServiceHostingEnvironment+HostingManager/36179421</Value0><Value1>System.ServiceModel.ServiceActivationException: . Unable to activate '/ Service1.svc' service due to exception during compilation The exception message is:. Could not find a base address corresponding to the scheme https for the endpoint with binding BasicHttpBinding base address schemes registered are [http] .. --- &gt; System.InvalidOperationException: Could not find a matching scheme to https base address for the endpoint with binding BasicHttpBinding the Registered base address schemes are [http].. 
        in System.ServiceModel.ServiceHostBase.MakeAbsoluteUri (Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.Description.ConfigLoader.LoadServiceDescription (ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action `1 AddBaseAddress, Boolean skipHost) 
        in System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal (ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection) 
        System.ServiceModel.ServiceHostBase.ApplyConfiguration in () 
        System.ServiceModel.ServiceHost.ApplyConfiguration in () 
        in System.ServiceModel.ServiceHostBase.InitializeDescription (UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost.InitializeDescription (Type serviceType, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost .. ctor (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (constructorString String, Uri [] baseAddresses) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService (ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        --- End of stack trace of inner exception --- 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast (String relativeVirtualPath, EventTraceActivity eventTraceActivity)</Value1></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns = "http://schemas.microsoft.com/2004/06/E2ETraceEvent"> <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131074</EventID><Type>3</Type><SubType Name = "Error"> 0 </ SubType> <level> 2 </ Level> <TimeCreated SystemTime="2014-06-18T10:54:48.8643910Z" /> <Source Name="System.ServiceModel" /> <Correlation ActivityID = "{00000000-0000-0000-0000-000000000000}" /> <Execution ProcessName="iisexpress" ProcessID="6676" ThreadID="11" /> <Channel/> <Computer> dev3 </ Computer> </ System> <ApplicationData> <TraceData> <DataItem> <TraceRecord xmlns = "http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/pt-PT/library/System.ServiceModel.Diagnostics.EventLog.aspx</TraceIdentifier><Description>Escrito in the event log. </ Description> <AppDomain> / LM/W3SVC/8/ROOT-28-130475624866578610 </ AppDomain> <ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><CategoryID.Name>EventLogCategory</CategoryID.Name><CategoryID.Value>5</CategoryID.Value><InstanceID.Name>EventId</InstanceID.Name><InstanceID.Value>3221356547</InstanceID.Value><Value0>System.ServiceModel.Activation.HostedHttpRequestAsyncResult/66049834</Value0><Value1>System.ServiceModel.ServiceActivationException: . Unable to activate '/ Service1.svc' service due to exception during compilation The exception message is:. Could not find a base address corresponding to the scheme https for the endpoint with binding BasicHttpBinding base address schemes registered are [http] .. --- &gt; System.InvalidOperationException: Could not find a matching scheme to https base address for the endpoint with binding BasicHttpBinding the Registered base address schemes are [http].. 
        in System.ServiceModel.ServiceHostBase.MakeAbsoluteUri (Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.Description.ConfigLoader.LoadServiceDescription (ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action `1 AddBaseAddress, Boolean skipHost) 
        in System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal (ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection) 
        System.ServiceModel.ServiceHostBase.ApplyConfiguration in () 
        System.ServiceModel.ServiceHost.ApplyConfiguration in () 
        in System.ServiceModel.ServiceHostBase.InitializeDescription (UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost.InitializeDescription (Type serviceType, UriSchemeKeyedCollection baseAddresses) 
        in System.ServiceModel.ServiceHost .. ctor (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (Type serviceType, Uri [] baseAddresses) 
        in System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost (constructorString String, Uri [] baseAddresses) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService (ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) 
        in System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable (String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 
        --- End of stack trace of inner exception --- 
        in System.Runtime.AsyncResult.End [TAsyncResult] (IAsyncResult result) 
        in System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End (IAsyncResult result)</Value1></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent>

    Wednesday, June 18, 2014 10:56 AM