2013-03-16 6 views
9

मैं विंडोज़ सर्विस बस 1.0 पर चल रहा हूं और मुझे MessaingEntityNotFoundException 40400: Endpoint not found अपवाद मिल रहा है।40400: एंडपॉइंट नहीं मिला - विंडोज सर्विस बस

ऐसा इसलिए है क्योंकि कतार नहीं बनाई गई है? जब मैं सेवा बस कॉन्फ़िगरेशन टूल चलाता हूं, तो मैं सर्वर पर कहीं भी नहीं देख सकता हूं, जहां मैं कतार बना सकता हूं (मैं 2K8R2 का उपयोग कर रहा हूं) यह केवल पूछता है कि क्या मैं खेत से हटाना चाहता हूं।

क्या मुझे एक कतार जोड़ने की ज़रूरत है, अगर ऐसा कोई गुई या पावरहेल स्क्रिप्ट है, या क्या मैं कुछ और गलत कर रहा हूं? app.config में

कनेक्शन स्ट्रिंग

<appSettings> 
    <!-- Service Bus specific app setings for messaging connections --> 
    <add key="Microsoft.ServiceBus.ConnectionString" value="Endpoint=sb://sqldev1.domain.local/domaintest1;StsEndpoint=https://sqldev1.domain.local:9355/domain-test1;RuntimePort=9354;ManagementPort=9355" /> 
    </appSettings> 

कोड के नीचे है:

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using Microsoft.ServiceBus; 
using Microsoft.ServiceBus.Messaging; 
using System.Threading.Tasks; 

namespace WindowsServerEventBus 
{ 
    class Program 
    { 
     static void Main(string[] args) 
     { 
      MessagingFactory messageFactory = MessagingFactory.Create(); 
      NamespaceManager namespaceManager = NamespaceManager.Create(); 

      QueueClient myQueueClient = messageFactory.CreateQueueClient("WowWowWee"); 

      BrokeredMessage sendMessage = new BrokeredMessage("Hello World!"); 
      myQueueClient.Send(sendMessage); 

      BrokeredMessage receivedMessage = myQueueClient.Receive(TimeSpan.FromSeconds(5)); 
      if (receivedMessage != null) 
      { 
       Console.WriteLine(string.Format("Message received: Body = {0}", 
            receivedMessage.GetBody<string>())); 
       receivedMessage.Complete(); 
      } 

      messageFactory.Close(); 
      Console.ReadLine(); 
     } 
    } 
} 

अपवाद नीचे डंप:

Microsoft.ServiceBus.Messaging.MessagingEntityNotFoundException was unhandled 
    HResult=-2146233088 
    Message=40400: Endpoint not found..TrackingId:1271f18d-3fa7-4437-9f86-7276ff5909b4_Gsqldev1,TimeStamp:16/03/2013 19:05:33 
    Source=Microsoft.ServiceBus 
    IsTransient=false 
    StackTrace: 
     at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.EndSendCommand(IAsyncResult result) 
     at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.OnEndSend(IAsyncResult result) 
     at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.OnSend(TrackingContext trackingContext, IEnumerable`1 messages, TimeSpan timeout) 
     at Microsoft.ServiceBus.Messaging.MessageSender.Send(TrackingContext trackingContext, IEnumerable`1 messages, TimeSpan timeout) 
     at Microsoft.ServiceBus.Messaging.MessageSender.Send(BrokeredMessage message) 
     at Microsoft.ServiceBus.Messaging.QueueClient.Send(BrokeredMessage message) 
     at WindowsServerEventBus.Program.Main(String[] args) in c:\Users\user\Downloads\EventStore-master\EventStore-master\src\WindowsServerEventBus\Program.cs:line 78 
     at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) 
     at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) 
     at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 
     at System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
     at System.Threading.ThreadHelper.ThreadStart() 
    InnerException: System.ServiceModel.FaultException 
     HResult=-2146233087 
     Message=40400: Endpoint not found..TrackingId:1271f18d-3fa7-4437-9f86-7276ff5909b4_Gsqldev1,TimeStamp:16/03/2013 19:05:33 
     Source=Microsoft.ServiceBus 
     Action=http://schemas.microsoft.com/servicebus/2010/08/protocol/Fault 
     StackTrace: 
     Server stack trace: 
      at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.ThrowIfFaultMessage(Message wcfMessage) 
      at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.HandleMessageReceived(IAsyncResult result) 
     Exception rethrown at [0]: 
      at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) 
      at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.DuplexCorrelationAsyncResult.End(IAsyncResult result) 
      at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.EndRequest(IAsyncResult result) 
      at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.<GetAsyncSteps>b__4(RequestAsyncResult thisPtr, IAsyncResult r) 
      at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result) 
     Exception rethrown at [1]: 
      at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) 
      at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult) 
      at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result) 
      at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.RequestAsyncResult.<>c__DisplayClass17.<GetAsyncSteps>b__a(RequestAsyncResult thisPtr, IAsyncResult r) 
      at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result) 
     Exception rethrown at [2]: 
      at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) 
      at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult) 
      at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.EndRequest(IAsyncResult result) 
      at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.<GetAsyncSteps>b__4(RequestAsyncResult thisPtr, IAsyncResult r) 
      at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result) 
     Exception rethrown at [3]: 
      at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) 
      at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult) 
      at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result) 
      at Microsoft.ServiceBus.Messaging.Sbmp.SbmpTransactionalAsyncResult`1.<GetAsyncSteps>b__36(TIteratorAsyncResult thisPtr, IAsyncResult a) 
      at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result) 
     Exception rethrown at [4]: 
      at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) 
      at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult) 
      at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.EndSendCommand(IAsyncResult result) 
     InnerException: 

उत्तर

9

अपने कोड के लिए कतार बना सकते हैं का उपयोग करके NameSpaceManager।

namespaceManager.CreateQueue("WowWowWee"); 
0

आप NimbusAPI जो Azure सेवा बस विषयों स्वचालित रूप से बनाता का उपयोग कर रहे हैं, तो एक विषय है कि करने के लिए द्वारा स्वचालित रूप से 367 दिनों के बाद हटा दिया जाता है, क्योंकि यह निष्क्रिय है सदस्यता नहीं ली है। इसे हल करने के लिए, सेवा को पुनरारंभ करें, और इसे किसी भी अनुपलब्ध विषय को पुनर्स्थापित करना चाहिए।

संबंधित मुद्दे