Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

signalr example not working

Tags:

signalr

i just installed the signalr sample (downloaded with nuget)

everything from nuget installed fine and it's a clean project (just to test the sample), yet i get the following error:

throw "SignalR: Connection must be started before data can be sent. Call .start() before .send()";

like image 387
Dkong Avatar asked Dec 29 '25 20:12

Dkong


1 Answers

use package manager

install-package Microsoft.Owin.Host.SystemWeb

and do changes in startup.cs

using Microsoft.Owin;
using Owin;

[assembly: OwinStartup(typeof(Microsoft.AspNet.SignalR.StockTicker.Startup), "Configuration")]

namespace Microsoft.AspNet.SignalR.StockTicker


{

    public static class Startup
    {
        public static void Configuration(IAppBuilder app)
        {
            Microsoft.AspNet.SignalR.StockTicker.Startup.ConfigureSignalR(app);
        }
        public static void ConfigureSignalR(IAppBuilder app)
        {
            app.MapSignalR();
        }
    }
}
like image 163
Ashu Avatar answered Jan 05 '26 06:01

Ashu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!