第三次尝试后发送的NServiceBus消息
我第一次使用NServiceBus 我有一个MVC WebApp和一个服务器(dll)。我的问题:我的服务器没有收到发送的消息。或者,我的消息没有发送。发送消息时,我在输出窗口中收到以下消息:第三次尝试后发送的NServiceBus消息,nservicebus,Nservicebus,我第一次使用NServiceBus 我有一个MVC WebApp和一个服务器(dll)。我的问题:我的服务器没有收到发送的消息。或者,我的消息没有发送。发送消息时,我在输出窗口中收到以下消息: A first chance exception of type 'System.Web.HttpException' occurred in System.Web.Mvc.dll A first chance exception of type 'System.Web.HttpException' oc
A first chance exception of type 'System.Web.HttpException' occurred in System.Web.Mvc.dll
A first chance exception of type 'System.Web.HttpException' occurred in System.Web.dll
A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
A first chance exception of type 'System.Messaging.MessageQueueException' occurred in System.Messaging.dll
A first chance exception of type 'System.Net.WebException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in NServiceBus.Core.dll
A first chance exception of type 'System.Net.WebException' occurred in NServiceBus.Core.dll
A first chance exception of type 'System.Net.WebException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in NServiceBus.Core.dll
A first chance exception of type 'System.Net.WebException' occurred in NServiceBus.Core.dll
A first chance exception of type 'System.Messaging.MessageQueueException' occurred in System.Messaging.dll
A first chance exception of type 'System.Messaging.MessageQueueException' occurred in System.Messaging.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.Messaging.MessageQueueException' occurred in System.Messaging.dll
A first chance exception of type 'System.Messaging.MessageQueueException' occurred in System.Messaging.dll
x times -> A first chance exception of type 'System.Messaging.MessageQueueException' occurred in System.Messaging.dll
奇怪的是:当我连续3次调用我的MVC控制器(立即按F5键3次)时,服务器上会发送和接收一条消息
My global.asax.cs
Configure.With()
.DefaultBuilder()
.ForMvc()
.JsonSerializer()
.Log4Net()
.MsmqTransport()
.IsTransactional(false)
.PurgeOnStartup(true)
.UnicastBus()
.ImpersonateSender(false)
.CreateBus()
.Start(() => Configure.Instance.ForInstallationOn<NServiceBus.Installation.Environments.Windows>().Install());
我做错了什么
Configure.With()
.DefaultBuilder()
.JsonSerializer();