title: Service Bus The token has an invalid signature
body: <p>I am trying to create a service bus relay based on <a href="https://azure.microsoft.com/en-us/documentation/articles/service-bus-dotnet-how-to-use-relay/" rel="noreferrer">this article</a></p>
  
  <p>I get an error message Generic: InvalidSignature: The token has an invalid signature.</p>
  
  <pre><code>static void Main(string[] args)
  {
          ServiceHost sh = new ServiceHost(typeof(ProblemSolver));
  
          sh.AddServiceEndpoint(
             typeof(IProblemSolver), new NetTcpBinding(),
             "net.tcp://tjservicebus.servicebus.windows.net/solver");
  
          Console.WriteLine("Add Binding End Point");
  
          var key = "MYKEY";
  
          sh.AddServiceEndpoint(
             typeof(IProblemSolver), new NetTcpRelayBinding(),
             ServiceBusEnvironment.CreateServiceUri("sb", "tjservicebus", "solver"))
              .Behaviors.Add(new TransportClientEndpointBehavior
              {
                  TokenProvider = TokenProvider.CreateSharedAccessSignatureTokenProvider("RootManageSharedAccessKey", key)
              });
  
          sh.Open();
  
          Console.WriteLine("Press ENTER to close");
          Console.ReadLine();
  
          sh.Close();
      }
  </code></pre>
  
  <p>The error message appears at the point of sh.Open();</p>
  
  <p>Can anyone help?</p>