New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to configure bus from command line application #1964
Comments
Is this error being thrown from v4.3.4 or v4.4.0? Could it be that the queues are not created and you need to "install" the endpoint? |
Hi @johnsimons, Thanks for following up. The failure occurs in 4.4.0. Order does not seem to matter (I was trying this over and over in both the IDE and from a command prompt). This is a send-only endpoint. The send is to a remote queue so queue configuration should not be a problem. Note that I never get to the bus.Send() operation. David |
Found the bug @davidgladstone It looks like https://github.com/Particular/NServiceBus/blob/develop/src/NServiceBus.Core/Hosting/HostInformation.cs#L17 is the culprid, we need to fix this cc @andreasohlund @SimonCropp A workaround for now is to double quote the exe name, eg if your project output is Program1.exe then from the cmd line run it as "Program1.exe" or "C:\Mypath\Program1.exe" <- With the double quotes |
Hi @johnsimons I can confirm that your workaround is successful in my situation. Thanks. |
This issue also appears to occur when trying to start the application as an Azure worker role. I'm using NServiceBus.Azure 5.1.0 and NServicebus 4.4.0. Any thoughts on how to go around this in azure? |
Erwin, are you referring to a regular worker role entrypoint, or when running as a child process on an azure worker role entrypoint? |
Hi yves, Right now i'm running as a regular worker role entrypoint. Here's the exception: Thanks, |
Don't think there is a workaround for windows azure role entrypoints, we need to fix this. Also a mistery to me how this did not occur when testing 5.1 release |
Would switching to the child processes entrypoint provide a workaround? |
For local debug it would yes, you could pass in the command line info required here. But for production hosting it still would'nt work |
Fixed in 6678625 |
Boom! Stoked I found this on here we just ran into the exact same issue wow |
Very nice that this issue is fixed! Any thoughts on when this is available on nuget? |
It was released 2 days ago On Fri, Feb 28, 2014 at 10:31 AM, Erwinvandervalk
|
.Sorry, I was looking at the wrong package (nservicebus.azure). Thanks! |
No worries! Please lets us know if you have any issues! On Fri, Feb 28, 2014 at 10:38 AM, Erwinvandervalk
|
Hi! |
It was fixed in 4.4.1 On Thu, Mar 20, 2014 at 6:55 PM, larshagrot notifications@github.comwrote:
|
@larshagrot can you please confirm what version you are using. |
I was using 4.4.0 and NServiceBus.Azure 5.1.0 I am verifying a configuration where we run NServiceBus in Azure worker roles and connect them with NServiceBus run on premise as Windows Services. The worker roles hooks up on an Azure Network subnet which is connected to by VPN (S2S). The transport is MSMQ. Thank you for your attention. |
@larshagrot Are you planning to run msmq in azure through VPN? If so, please don't do that, you'll get into trouble |
I have a simple console application that configures a bus (MSMQ) and sends a single message. Between version 4.3.4 and 4.4.0 the application has stopped working with the exception in the stack trace below.
Note that this only happens when running from a command window. It does not happen when running from visual studio (using host process or not). In both cases I am running in a non-elevated context.
In case it is down to user error, here is the guts of the bus configuration code that is failing:
Here is the exception:
The text was updated successfully, but these errors were encountered: