【发布时间】:2015-11-19 11:30:43
【问题描述】:
当我的 NServiceBus 控制台显示以下消息时,我有时会收到一个异常:
NServiceBus.Timeout.Hosting.Windows.TimeoutPersisterReceiver [(null)] <(null)> - Polling next retrieval is at 11/19/2015 11:20:49.
。
Exception:
A first chance exception of type 'System.Net.WebException' occurred in System.dll
Additional information: The remote server returned an error: (404) Not Found.
Callstack:
[External Code]
Raven.Client.Lightweight!Raven.Client.Connection.HttpJsonRequest.ReadJsonInternal(System.Func<System.Net.WebResponse> getResponse) Line 332 C#
Raven.Client.Lightweight!Raven.Client.Connection.HttpJsonRequest.ReadResponseJson() Line 225 C#
Raven.Client.Lightweight!Raven.Client.Connection.ServerClient.DirectGet(string serverUrl, string key) Line 203 C#
Raven.Client.Lightweight!Raven.Client.Connection.ReplicationInformer.RefreshReplicationInformation(Raven.Client.Connection.ServerClient commands) Line 351 C#
Raven.Client.Lightweight!Raven.Client.Connection.ReplicationInformer.UpdateReplicationInformationIfNeeded.AnonymousMethod__6() Line 134 C#
[External Code]
这是一个异常,它在 RavenDB 代码中被抛出并捕获,所以我怀疑这不会干扰我自己的代码。但我可能隐藏了一个问题。
所以我想知道为什么会发生这种异常以及如何避免它?
【问题讨论】:
-
什么版本的 NSB/Raven?
-
NSB 4.6.1 乌鸦 2.0.2375
标签: timeout ravendb nservicebus