Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

IIS AUTO START SERVICE BUS

$
0
0

1) I have a WCF project hosted on IIS .

2)option autostart enable(not work)

My Systems

IIS 8 Self fabric 1.1 VS 2013

<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 Testapp.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 {"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."}

After request browser




Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>