Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi there,
I'm build project chat with SignalR. I using v7 and mvc. I have chathub class at MVC project. When i run page error
<script src="~/signalr/hubs"></script>
Please help me.
Thanks
Hi,
You need to add these scripts to your page :
<script src="~/Scripts/jquery.signalR-2.2.0.min.js"></script> <script src="~/signalr/hubs"></script>
Add to main script file :
$.connection.hub.start({ transport: ['webSockets', 'longPolling'] });
And do you have these nuget packages ?
<package id="Microsoft.AspNet.SignalR" version="2.2.0" targetFramework="net45" userInstalled="true" /> <package id="Microsoft.AspNet.SignalR.Core" version="2.2.0" targetFramework="net45" userInstalled="true" /> <package id="Microsoft.AspNet.SignalR.JS" version="2.2.0" targetFramework="net45" userInstalled="true" /> <package id="Microsoft.AspNet.SignalR.SystemWeb" version="2.2.0" targetFramework="net45" userInstalled="true" />
Hi Alex Skrypnyk
Affter i add script
then show error
Uncaught Error: SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g.
<script src='/signalr/hubs'></script>
Comment author was deleted
Hey, you'll need to make sure Umbraco ingnores the /signalr path, you can do that by updating the web.config app setting
<add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/signalr/" />
Edit: wrong thread. For people having problems using SignalR with Umbraco 7.3.0+ see this thread
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
signalr
Hi there,
I'm build project chat with SignalR. I using v7 and mvc. I have chathub class at MVC project. When i run page error
404 not found.Please help me.
Thanks
Hi,
You need to add these scripts to your page :
Add to main script file :
And do you have these nuget packages ?
Hi Alex Skrypnyk
Affter i add script
$.connection.hub.start({ transport: ['webSockets', 'longPolling'] });
then show error
Uncaught Error: SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g.
.Thanks
Comment author was deleted
Hey, you'll need to make sure Umbraco ingnores the /signalr path, you can do that by updating the web.config app setting
<add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/signalr/" />
Edit: wrong thread. For people having problems using SignalR with Umbraco 7.3.0+ see this thread
is working on a reply...