i am trying to make my notification system realtime so i tried to do this tutorial [https://aspnetboilerplate.com/Pages/Documents/SignalR-AspNetCore-Integration]) , i am getting this error "Failed to load resource: the server responded with a status of 404 (Not Found) <ins>hubs</ins>"
thanks
7 Answer(s)
-
0
The client tries to load this url: <a class="postlink" href="http://ip:port/signalr/hubs">http://ip:port/signalr/hubs</a> and it gets 404
-
0
Are you using:
- Abp.AspNetCore.SignalR v3.4.0-preview2,
- the NuGet.Config (why?),
- the correct signalr.min.js (1.0.0-preview1-28189), and
- the correct abp.signalr-client.js?
-
0
yes and i am trying to use it with webApi with angular
-
0
For Angular, did you add:
- @aspnet/signalr in package.json,
- the .npmrc (why?),
- the glob and the script in .angular-cli.json,
- the SignalRAspNetCoreHelper.ts, and
- SignalRAspNetCoreHelper.initSignalR(); in app.component.ts?
-
0
I added them now, that wasn't clear in the Docs. Thanks for that. but the value in this.appSession.application.features['SignalR'] and ['SignalR.AspNetCore'] are always false, I guess I should set them to True somehow
Thanks for your help
-
0
I added them now, that wasn't clear in the Docs.
I'll update the docs in a bit. Thanks for your feedback!
but the value in this.appSession.application.features['SignalR'] and ['SignalR.AspNetCore'] are always false, I guess I should set them to True somehow
You can simply force them to be true, or define:
- the FEATURE_SIGNALR_ASPNETCORE constant in Application.csproj,
- the IsAspNetCore property in SignalRFeature.cs, and
- the "SignalR.AspNetCore" feature in SessionAppService.cs.
-
0
thanks to you!