简体   繁体   中英

SignalR Hub 404 Error

I keep getting a error like this GET http://localhost:1025/signalr/hubs net::ERR_ABORTED

I also Get this error as well GET http://localhost:1025/signalr/hubs 404 (Not Found)

Any Help would be appreciated

If you need more information please let me know

when I am

  <script type="text/javascript" src="..\\CodeFolder\\jquery-1.7.2.min.js"></script> <script type="text/javascript" src="..\\CodeFolder\\lightbox.js"></script> <script type="text/javascript" src="..\\CodeFolder\\jquery.signalR-1.2.2.min.js"></script> <script type="text/javascript" src="../signalr/hubs"></script> 

Issue in your server code. Just put app.UseSignalR(...) before app.UseSpaStaticFiles() in Startup.cs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM