Skip to content
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

how to use NumClients of crank #3682

Closed
aazjcom opened this issue Apr 20, 2016 · 2 comments
Closed

how to use NumClients of crank #3682

aazjcom opened this issue Apr 20, 2016 · 2 comments

Comments

@aazjcom
Copy link

aazjcom commented Apr 20, 2016

when i use the command:crank /NumClients:1 /Connections:1000 /Url:http://127.0.0.1:8088/signalr .it is ok.
but when i use the command:crank /NumClients:100 /Connections:1000 /Url:http://127.0.0.1:8088/signalr .it is System.AggregateException: ---> System.NullReferenceException: Microsoft.AspNet.SignalR.Client.HubConnection.GetUrl(String url, Boolean useDefaultUrl)
SignalR-dev\src\Microsoft.AspNet.SignalR.Client\HubConnection.cs: 216
Microsoft.AspNet.SignalR.Client.HubConnection..ctor(String url, Boolean useDefaultUrl) SignalR-dev\src\Microsoft.AspNet.SignalR.Client\HubConnection.cs: 38Microsoft.AspNet.SignalR.Client.HubConnection..ctor(String url)

@lightCraft2020
Copy link

me,to. I came across the same problem.

@moozzyk
Copy link
Contributor

moozzyk commented Jan 3, 2017

This is because when you have more than 1 client the ControllerUrl should be passed. The code does not check this and passes null when creating the hub (

AppHost = WebApp.Start<Startup>(Arguments.ControllerUrl);
) which results in the NullReferenceException you are seeing.

@moozzyk moozzyk closed this as completed Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants