I created a new NServiceBus for an azure worker role.
The configuration is simply:
NServiceBus.Configure.With(busAssemblies)
.Log4Net()
.License(Config.Default.NServiceBus_License)
.DefineEndpointName(endPointName)
.UnityBuilder(serviceBusDiConfiguration.Container)
.AzureConfigurationSource()
.AzureSagaPersister()
.AzureSubcriptionStorage()
.AzureDataBus()
.JsonSerializer()
.AzureServiceBusMessageQueue()
.UnicastBus()
.LoadMessageHandlers()
.CreateBus()
.Start()
The client configuration is identical to the above except for the addition call to .DoNotAutoSubscribe()
. The client then uses Bus.Send(message)
to the input queue of the listener.
Azure Bus Queue reported messages being sent into the input queue and removed accordingly (with the listeners running - and not otherwise). So yes- messages are being removed from the queue. However my handlers are not being fired, and there is no error message in either the event viewers or console (when using dev fabric).
The only error and I don't even think it's relevant because it's not being logged at the time the message was removed from the queue - rather it was logging this at start up time, but the error is as follow:
[MonAgentHost] Error: MA EVENT: 2013-05-12T22:52:54.925Z [MonAgentHost] Error: 2 [MonAgentHost] Error: 12084 [MonAgentHost] Error: 6180 [MonAgentHost] Error: NetTransport [MonAgentHost] Error: 0 [MonAgentHost] Error: 880e569e-d37b-4262-bdae-dbe5133 [MonAgentHost] Error: netutils.cpp [MonAgentHost] Error: OpenHttpSession [MonAgentHost] Error: 749 [MonAgentHost] Error: 0 [MonAgentHost] Error: 2f94 [MonAgentHost] Error: [MonAgentHost] Error: WinHttpGetProxyForUrl(http://127.0.0.1) failed ERROR_WINHTTP_AUTODETECTION_FAILED (12180)
This is driving me crazy. I can't believe someone actually designed the API to be this complicated and opaque - it makes Windows Complication Foundation seems trivial in comparison. Please help me figure out what went wrong, any hint is appreciated, eg. look in this file/folder for error logs will work too!
Thanks!