404:signalr /枢纽signalR聊天应用程序 [英] 404:signalr/hubs for signalR chat application

查看:420
本文介绍了404:signalr /枢纽signalR聊天应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个使用signalR在网站中使用VS2012网络聊天应用程序。
但它显示我的错误是这样的:

I am trying to create a chat application using signalR using VS2012 web in a website. But its showing me error like this:

Failed to load resource: the server responded with a status of 404 (Not Found)   
http://localhost:50780/WebApplication1/WebApplication1/signalr/hubs
Uncaught TypeError: Cannot read property 'client' of undefined

我已经加入 RouteTable.Routes.MapHubs(); 来的Global.asax
但为什么它显示我此错误时开放供其他的系统中。

I have added RouteTable.Routes.MapHubs(); to Global.asax But why should its showing me this error when its opening for other's system.

推荐答案

我知道,我来晚了,但对于SMBD谁将会寻找答案:
我已经解决了由registrate的.Net框架的工作IIS的问题。
下一步步入控制台(WIN + R):

I know, that I'm late, but for smbd who will finding answers: I've resolved the problem by registrate .Net frame work to IIS. Do next steps into console (Win+R):

cd %windir%\Microsoft.NET\Framework\v4.0.30319
aspnet_regiis.exe –i

<一个href=\"http://www.asp.net/mvc/overview/older-versions/deployment-to-a-hosting-provider/deployment-to-a-hosting-provider-deploying-to-iis-as-a-test-environment-5-of-12\"相对=nofollow>来源

这篇关于404:signalr /枢纽signalR聊天应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆