c# - Asp .Net Core 2 + SignalR (1.0.0-alpha2-27025) + /signalr/negotiate 404 Error -
i add signalr asp .net core 2 app
packages
- "microsoft.aspnetcore.all" version="2.0.0"
- "microsoft.aspnetcore.signalr" version="1.0.0-alpha2-27025"
- "microsoft.aspnetcore.signalr.client" version="1.0.0-alpha2-27025"
- "microsoft.aspnetcore.signalr.client.core" version="1.0.0-alpha2-27025"
- "microsoft.aspnetcore.signalr.common" version="1.0.0-alpha2-27025"
- "microsoft.aspnetcore.signalr.core" version="1.0.0-alpha2-27025"
public iserviceprovider configureservices(iservicecollection services) { services.addsignalrcore(); services.addsignalr(); }
and
public void configure(iapplicationbuilder app, ihostingenvironment env, iloggerfactory loggerfactory, iserviceprovider serviceprovider) app.usesignalr(routes => { routes.maphub<managehub>("managehub"); }); }
url:port/signalr, url:port/signalr/negotiate... return 404
url:port/managehub return 400 "connection id required"
i not found .mapsignalr()
how use signalr in asp .net core?
you seem using old client. signalr asp.net core not use /negotiate
endpoint anymore. new signalr server not compatible old client , new clients not compatible old signalr server. take @ announcement , samples
Comments
Post a Comment