Service bus configuration

Asked

Viewed 148 times

0

I will try to detail my problem, I have WCF project hosted on IIS with auto start enabled app Fabric enabled option configured but even so the project only starts on Azure’s Relay when accessing the service url...

After a while Relay disappears.

IIS 8 Auto Fabric 1.1 VS 2013

Later I will publish 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 while running the test.

{"There was no endpoint Listening at https://nobre-queue-test.servicebus.windows.net/ServiceRelay/ that could Accept the message. This is often caused by an incorrect address or SOAP action. See Innerexception, if present, for more Details."}

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

1

2

3

4

5

  • Hey, Wandelson, how’s it going? Look, the article you followed as an example is a little old I believe you can get more success by reading/following this article here http://azure.microsoft.com/pt-br/documentation/articles/service-bus-dotnet-how-to-use-relay/ and/or https://msdn.microsoft.com/en---us/library/Azure/ee173579.aspx If I have misunderstood your need, share the code/solution that is in trouble that I will be happy to help you. Hug.

  • Can someone please help me?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.