我刚刚将 NServiceBus 解决方案更新到版本 3.3.8。我之前的版本是3.2.2。
当我运行我的解决方案时,我收到以下错误:
发生Web异常
远程服务器返回错误:(404) 未找到。
发生 System.Net.WebException
HResult=-2146233079
消息=远程服务器返回错误:(404) 未找到。
来源=系统
堆栈跟踪:
在 System.Net.HttpWebRequest.GetResponse()
在 Raven.Client.Connection.HttpJsonRequest.ReadStringInternal(Func`1 getResponse) 中
c:\ Builds \ RavenDB-Stable \ Raven.Client.Lightweight \ Connection \ HttpJsonRequest.cs:第279行
内部异常:
来自视觉工作室:
查找“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 /InstallInfrastruct 尝试重新安装 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
{
}
这是我的应用程序配置:
<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 配合得很好。