将NServiceBus升级到版本3.3.8后出现WebException错误404

时间:2013-11-13 23:27:04

标签: c# nservicebus

我刚刚将NServiceBus解决方案更新到3.3.8版。我以前的版本是3.2.2。

当我运行我的解决方案时,收到以下错误:

发生了WebException 远程服务器返回错误:(404)Not Found。

发生了System.Net.WebException   的HResult = -2146233079   Message =远程服务器返回错误:(404)Not Found。   来源=系统   堆栈跟踪:        在System.Net.HttpWebRequest.GetResponse()        在Raven.Client.Connection.HttpJsonRequest.ReadStringInternal(Func`1 getResponse)中     c:\ Builds \ RavenDB-Stable \ Raven.Client.Lightweight \ Connection \ HttpJsonRequest.cs:第279行   InnerException:

从Visual Studio: 找到'c:\ Builds \ RavenDB-Stable \ Raven.Client.Lightweight \ Connection \ ReplicationInformer.cs'的源代码。 (没有校验和。) 文件'c:\ Builds \ RavenDB-Stable \ Raven.Client.Lightweight \ Connection \ ReplicationInformer.cs'不存在。 查看脚本文档中的'c:\ Builds \ RavenDB-Stable \ Raven.Client.Lightweight \ Connection \ ReplicationInformer.cs'... 查看'c:\ Builds \ RavenDB-Stable \ Raven.Client.Lightweight \ Connection \ ReplicationInformer.cs'的项目。 在项目中找不到该文件。 查看目录'C:\ Program Files(x86)\ Microsoft Visual Studio 10.0 \ VC \ crt \ src \'... 查看目录'C:\ Program Files(x86)\ Microsoft Visual Studio 10.0 \ VC \ atlmfc \ src \ mfc \'... 查看目录'C:\ Program Files(x86)\ Microsoft Visual Studio 10.0 \ VC \ atlmfc \ src \ atl \'... 查看目录'C:\ Program Files(x86)\ Microsoft Visual Studio 10.0 \ VC \ atlmfc \ include \'... 活动解决方案的调试源文件设置表明调试器不会要求用户找到该文件:     C:\构建\ RavenDB稳\ Raven.Client.Lightweight \连接\ ReplicationInformer.cs。 调试器无法找到源文件'c:\ Builds \ RavenDB-Stable \ Raven.Client.Lightweight \ Connection \ ReplicationInformer.cs'。

我已尝试更新为RavenDB构建992。 (已停止RavenDB,并替换了exe的二进制文件) 我完全删除了RavenDB,并使用NServiceBus.Host.exe / InstallInfrastructure尝试重新安装RavenDB。
这未能解决问题。

我还读到这是NServiceBus版本3.3.x的典型WebException?我是否需要禁止Visual Studio调试的异常?

这是我的总线配置:

        Bus = NServiceBus.Configure.With()
            .DefineEndpointName("Orders")
            .Log4Net()
            .DefaultBuilder()
            .XmlSerializer()
            .MsmqTransport()
                .IsTransactional(false)
                .PurgeOnStartup(false)
            .UnicastBus()
                .LoadMessageHandlers()
                .ImpersonateSender(false)
            .CreateBus()
            .Start();

这是我的端点配置:

  public class EndpointConfig : IConfigureThisEndpoint, AsA_Server
  {
  }

这是我的app.config:

 <configuration>
 <configSections>
   <section name="MsmqTransportConfig" type="NServiceBus.Config.MsmqTransportConfig,  NServiceBus.Core" />
   <section name="UnicastBusConfig" type="NServiceBus.Config.UnicastBusConfig, NServiceBus.Core" />
   <section name="MessageForwardingInCaseOfFaultConfig" type="NServiceBus.Config.MessageForwardingInCaseOfFaultConfig, NServiceBus.Core" />
 </configSections>
 <MsmqTransportConfig ErrorQueue="error" NumberOfWorkerThreads="1" MaxRetries="5" />
 <UnicastBusConfig ForwardReceivedMessagesTo="">
   <MessageEndpointMappings>
     <add Messages="InternalMessages" Endpoint="Manager" />
   </MessageEndpointMappings>
 </UnicastBusConfig>
 <MessageForwardingInCaseOfFaultConfig ErrorQueue="error" />
 </configuration>

我是否需要手动配置NServiceBus以连接到RavenDB?如果是这样,怎么样?我的解决方案适用于NServiceBus版本3.2.2。

1 个答案:

答案 0 :(得分:2)

尝试禁用所有例外的中断。

相关问题