A Dnthub hub was created in the background
There was a problem with the foreground at the time of the call (check that the proxy object creation failed)
So he went to the StackOverflow to find the following:
http://stackoverflow.com/questions/14146913/signalr-cannot-read-property-client-of-undefined
It says change to lowercase is OK, a lot of people have solved the success
Inverse day to lowercase after also resolved, var chat = $.connection.dnthub
Perhaps a lot of people directly ignored ~ ~ ~But, why did I solve it? C # naming rules is the first letter capitalized AH?
Inverse day like to drill down, so open its dynamically generated JS, found a sentence
So, the original default generated is the lowercase beginning,,,,,,,, (⊙o⊙) ... A lot of people say it's over? NoNoNo
What does a program ape need? Imagination and anti-conventional imagination!
So I'm bold enough to assume that we can specify a name?
Internet search, the original through the hubname ("xxx") can set the name
Expand, you can set any name through this, not necessarily the same as the class name
So try again?
Look at the dynamically generated JS,
Hey, cool!
Conclusion:
If you do not set hubname yourself, then SIGNALR will automatically help us generate a hubname with the same class name and a lowercase start
There are two ways to solve this problem, a hubname with the first lowercase in JS, and another
Signalr Proxy Object exception: uncaught typeerror:cannot Read Property ' client ' of undefined conclusions