【问题标题】:Windows Server Service Bus. Incorrect request URI formatWindows 服务器服务总线。请求 URI 格式不正确
【发布时间】:2013-07-16 08:28:16
【问题描述】:

我目前正在尝试安装 Windows Server Service Bus 1.0(在我的 PC 上,以允许对 Windows Azure 进行本地开发),但每当我尝试通过服务总线访问服务总线时Explorer (1.8) 或使用 MSDN 网站上的 test application 我得到以下异常。

我确定这些是同一个问题。

这是通过我编写的控制台应用程序:

The remote server returned an error: (400) Bad Request. Incorrect request Uri format..TrackingId:b22ffa03-4479-43c4-ab34-4d16324fb943_********,TimeStamp:16/07/2013 07:40:23

这是通过服务总线资源管理器实现的:

The remote server returned an error: (400) Bad Request. Incorrect request Uri format..TrackingId:242b22c8-d9e9-4e48-aca0-4faa7b71c349_**********,TimeStamp:16/07/2013 08:17:35. Method <GetQueues>b__26:

有人可以帮忙吗?我想我没有正确配置服务总线,但我不知道出了什么问题。

在配置服务总线时,我使用了服务总线配置工具的标准设置,该工具似乎可以正常工作。 (即日志中没有错误,也没有报告)。

如果您需要任何进一步的信息,请询问!

提前谢谢你

为了完整起见,这里是我的控制台应用程序生成的完整堆栈跟踪...

System.ArgumentException was unhandled
  HResult=-2147024809
  Message=The remote server returned an error: (400) Bad Request. Incorrect request Uri format..TrackingId:b22ffa03-4479-43c4-ab34-4d16324fb943_********,TimeStamp:16/07/2013 07:40:23
  Source=Microsoft.ServiceBus
  StackTrace:
    Server stack trace: 
    Exception rethrown at [0]: 
       at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
       at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.EndGet[TEntityDescription](IAsyncResult asyncResult)
       at Microsoft.ServiceBus.NamespaceManager.OnEndQueueExists(IAsyncResult result)
       at Microsoft.ServiceBus.NamespaceManager.EndQueueExists(IAsyncResult result)
       at Microsoft.ServiceBus.NamespaceManager.QueueExists(String path)
       at ServiceBusConsoleApp.Sender.Main(String[] args) in c:\MyTfs\ServiceBusConsoleApp\Program.cs:line 37
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       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.Net.WebException
       HResult=-2146233079
       Message=The remote server returned an error: (400) Bad Request.
       Source=System
       StackTrace:
            at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
            at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult`1.EndGetResponse(GetAsyncResult`1 thisPtr, IAsyncResult ar)
            at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
       InnerException: 

【问题讨论】:

    标签: c# azure


    【解决方案1】:

    当我将本地 SQLServer 2008 R2 数据库从 SP1 更新到 SP2 时,我发现此问题已得到解决。

    我不知道为什么这解决了这个问题,但它确实解决了!

    我的一些同事不必这样做就可以让 Service Bus 1.0 for Windows Server 正常工作,但如果您遇到类似的问题,那么我建议您更新到 SP2。

    【讨论】:

      猜你喜欢
      • 2013-11-02
      • 1970-01-01
      • 1970-01-01
      • 2010-10-15
      • 2012-12-14
      • 1970-01-01
      相关资源
      最近更新 更多