c# - 'System.AggregateException' occurred in mscorlib.dll” when using SignalR -


consider following code:

using microsoft.aspnet.signalr.client; using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks;  namespace consoleapplication1 {     class stock     {         public string symbol { get; set; }         public decimal price { get; set; }     }      class program     {         static void main(string[] args)         {             var hubconnection = new hubconnection("http://www.contoso.com/");             ihubproxy stocktickerhubproxy = hubconnection.createhubproxy("stocktickerhub");             stocktickerhubproxy.on<stock>("updatestockprice", stock => console.writeline("stock update {0} new price {1}", stock.symbol, stock.price));             hubconnection.start().wait();             console.readline();         }     } }  

when run, getting "an unhandled exception of type 'system.aggregateexception' occurred in mscorlib.dll". tried accepted answer question, had no idea how fill form there. how can details on went wrong in code sample? here's "exceptions" window looks me:

enter image description here

as patrick eckebrecht noted in comment question, enough click "view detail" find reason exception:

enter image description here


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -