【发布时间】:2013-11-13 23:27:04
【问题描述】:
我刚刚将我的 NServiceBus 解决方案更新到版本 3.3.8。我之前的版本是 3.2.2。
当我运行我的解决方案时,我收到以下错误:
发生WebException 远程服务器返回错误:(404) Not Found。
发生 System.Net.WebException H结果=-2146233079 Message=远程服务器返回错误:(404) 未找到。 源=系统 堆栈跟踪: 在 System.Net.HttpWebRequest.GetResponse() 在 Raven.Client.Connection.HttpJsonRequest.ReadStringInternal(Func`1 getResponse) 中 c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs:279 行 内部异常:
来自 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:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\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 版。
【问题讨论】:
标签: c# nservicebus