Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SignalR is giving error (Read 5210 times)
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
SignalR is giving error
May 6th, 2019 at 6:02am
Print Post  
Hi, When I use signalr/hubs script in other project it s working but when I am using it in my existing project it is giving 404 error script problem (“signalr/hubs” giving 404 error)I tried may solutions but not able to solve it. Please help me to get success in this. Thanks in advance.

Also $.connection.diagramHub is undefined
  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: SignalR is giving error
Reply #1 - May 6th, 2019 at 10:03am
Print Post  
Check suggestions here -
https://stackoverflow.com/questions/8941595/signalr-signalr-hubs-giving-404-erro...

Make sure the name you specified when adding the hub to your project matches the one used in scripts.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: SignalR is giving error
Reply #2 - May 6th, 2019 at 12:25pm
Print Post  
Tried all the solution but it is not working for me Sad
  
Back to top
AIM  
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: SignalR is giving error
Reply #3 - May 7th, 2019 at 6:57am
Print Post  
signalr/hubs is not creating so giving 404 error. Please help me. I am using signalr2.4.1 version
  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: SignalR is giving error
Reply #4 - May 7th, 2019 at 7:35am
Print Post  
404 could be caused by anything, from a typo in URL to server misconfiguration and exceptions, so it's not much to go on. Examine browser's and Visual Studio debug consoles for more detailed error messages, and maybe also check server's log files. If you are getting 404 code as part of reply when calling SignalR's API end points, also check if there isn't some more detailed error message returned as JSON result.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: SignalR is giving error
Reply #5 - May 7th, 2019 at 7:47am
Print Post  
Also check if you haven't omitted the MapSignalR call at application's startup code. Follow some tutorial like https://www.c-sharpcorner.com/article/understanding-signalr-from-scratch/ or Microsoft's ones to make sure you aren't missing any step from the set-up.
  
Back to top
 
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: SignalR is giving error
Reply #6 - May 8th, 2019 at 7:27am
Print Post  
It is resolved now, there was problem with the  dlls. Thanks
  
Back to top
AIM  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint