NServiceBus throws The remote server returned an error: (404) Not Found

前端 未结 1 1060
长发绾君心
长发绾君心 2021-01-25 05:26

I use simple a configuration to run a Publish/Subscribe scenario using NServiceBus.

I\'m getting this exception:

The remote server returned an error: (4         


        
相关标签:
1条回答
  • 2021-01-25 06:04

    I would recommend adding Log4Net (easiest is through the Visual Studio Package manager), and then telling NServiceBus that it should use log4net when configuring the Bus:

    Bus = Configure.With()
        .Log4Net()
        .DefaultBuilder() //...
    

    You'll find that NServiceBus logs plenty (either to the Console window of the NServiceBus host, or to the Visual Studio debugger window), and it's very likely to contain the reason why that 404 occurs.

    0 讨论(0)
提交回复
热议问题