2
votes

I've just followed the "Get started with SignalR on ASP.NET Core" article and I get an error when I open the browser. The error is: GET https://localhost:5001/lib/signalr/signalr.js 404 (Not Found)

Article link: https://docs.microsoft.com/en-us/aspnet/core/signalr/get-started?tabs=visual-studio-code&view=aspnetcore-2.1

The same error happens when I try to run their own example: https://github.com/aspnet/Docs/tree/master/aspnetcore/signalr/get-started/sample

.NET Core SDK: dotnet-sdk-2.1.300-preview1-008174-win-x64

NPM version: 5.8.0

VSCode: 1.22.2

Any help, please!?

1

1 Answers

5
votes

As mentioned in the instructions for Visual Studio:

  1. Copy the signalr.js file from node_modules\@aspnet\signalr\dist\browser to the lib folder in your project.