Service bus configuration

0

I will try to detail my problem, I have WCF project hosted in IIS with the auto start enabled option of the app fabric configured but even so the project only starts in the azure relay when accessing the service url ...

After a while the relay disappears.

IIS 8 Auto fabric 1.1 VS 2013

Later I'll post on azure - > web application.

 <service name="Nobre.Service.RelayService">        
        <endpoint address="https://nobre-queue-test.servicebus.windows.net/servicerelay/" 
                  behaviorConfiguration="sharedSecretClientCredentials" 
                  binding="basicHttpRelayBinding" bindingConfiguration="HttpRelayEndpointConfig"
                  name="RelayEndpoint" contract="Nobre.Domain.IRelayService" />
      </service>
    </services>
    <bindings>
      <basicHttpRelayBinding>
        <binding name="HttpRelayEndpointConfig">
          <security mode="None" relayClientAuthenticationType="None" />
        </binding>
      </basicHttpRelayBinding>
      <basicHttpBinding>
        <binding name="http">
          <security mode="None">
            <transport clientCredentialType="None" />
          </security>
        </binding>
        <binding name="https">
          <security mode="Transport">
            <transport clientCredentialType="None" />
          </security>
        </binding>
        <binding name="RelayEndpoint" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
          <security mode="None" />
        </binding>
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <endpointBehaviors>
        <behavior name="sharedSecretClientCredentials">    
          <serviceRegistrySettings discoveryMode="Public" displayName="ServiceRelay" />
          <transportClientEndpointBehavior>
            <tokenProvider>
              <sharedAccessSignature keyName="RootManageSharedAccessKey" key="CHAVE" />
            </tokenProvider>
          </transportClientEndpointBehavior>
        </behavior>
      </endpointBehaviors>


<serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="false" />
Projeto de Test

app.config

  <client>      
      <endpoint name="RelayEndpoint"
                contract="Nobre.Domain.IRelayService"
                address="https://nobre-queue-test.servicebus.windows.net/ServiceRelay/" 
                behaviorConfiguration="sharedSecretClientCredentials"
                binding="basicHttpRelayBinding" />
    </client>
    <behaviors>
      <endpointBehaviors>
        <behavior name="sharedSecretClientCredentials">
          <transportClientEndpointBehavior>
            <tokenProvider>
              <sharedAccessSignature keyName="RootManageSharedAccessKey" key="+CHAVE=" />
            </tokenProvider>
          </transportClientEndpointBehavior>
        </behavior>
      </endpointBehaviors>
    </behaviors>


var cf = new ChannelFactory<IRelayService>("RelayEndpoint");
var ch = cf.CreateChannel() ;

string result = ch.DoWork("hello");

Error executing test.

{"There was no endpoint listening at link that this could accept the message. "

{"The remote server returned an error: (404) Not Found."}

    
asked by anonymous 17.11.2014 / 14:54

0 answers