Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
第三次尝试后发送的NServiceBus消息_Nservicebus - Fatal编程技术网

第三次尝试后发送的NServiceBus消息

第三次尝试后发送的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

我第一次使用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' 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();