Please see http://go.microsoft.com/fwlink/?LinkId=272764 for more information on using SignalR.
Upgrading from 1.x to 2.0
-------------------------
Please see http://go.microsoft.com/fwlink/?LinkId=320578 for more information on how to
upgrade your SignalR 1.x application to 2.0.
Mapping the Hubs connection
----------------------------
To enable SignalR in your application, create a class called Startup with the following:
using Microsoft.Owin;
using Owin;
using MyWebApplication;
namespace MyWebApplication
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.MapSignalR();
}
}
}
Getting Started
---------------
See http://www.asp.net/signalr/overview/getting-started for more information on how to get started.
Why does ~/signalr/hubs return 404 or Why do I get a JavaScript error: 'myhub is undefined'?
--------------------------------------------------------------------------------------------
This issue is generally due to a missing or invalid script reference to the auto-generated Hub JavaScript proxy at '~/signalr/hubs'.
Please make sure that the Hub route is registered before any other routes in your application.
In ASP.NET MVC 4 you can do the following:
<script src="~/signalr/hubs"></script>
If you're writing an ASP.NET MVC 3 application, make sure that you are using Url.Content for your script references:
<script src="@Url.Content("~/signalr/hubs")"></script>
If you're writing a regular ASP.NET application use ResolveClientUrl for your script references or register them via the ScriptManager
using a app root relative path (starting with a '~/'):
<script src='<%: ResolveClientUrl("~/signalr/hubs") %>'></script>
If the above still doesn't work, you may have an issue with routing and extensionless URLs. To fix this, ensure you have the latest
patches installed for IIS and ASP.NET.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
SignalR实例 数据库数据监控 (529个子文件)
_._ 3B
Global.asax 102B
DesignTimeResolveAssemblyReferences.cache 215KB
SignalRMSG.csprojResolveAssemblyReference.cache 153KB
DesignTimeResolveAssemblyReferencesInput.cache 28KB
Web.config 7KB
packages.config 3KB
Web.config 3KB
Web.Release.config 1KB
Web.Debug.config 1KB
Redirect.VS11.config 752B
Redirect.config 500B
repositories.config 129B
PushController.cs 3KB
BundleConfig.cs 2KB
AssemblyInfo.cs 1KB
Global.asax.cs 1KB
RouteConfig.cs 601B
MsgHub.cs 588B
Startup.cs 572B
WebApiConfig.cs 479B
LoginController.cs 467B
HomeController.cs 460B
UserFactory .cs 398B
MessageState.cs 351B
FilterConfig.cs 276B
UserEnum.cs 261B
TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs 0B
TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs 0B
TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs 0B
Index.cshtml 3KB
Index.cshtml 2KB
Index.cshtml 1KB
_Layout.cshtml 386B
Error.cshtml 360B
_ViewStart.cshtml 55B
SignalRMSG.csproj 27KB
jquery-ui.css 35KB
jquery-ui.css 35KB
jquery-ui.min.css 30KB
jquery-ui.min.css 30KB
theme.css 17KB
theme.css 17KB
green.css 8KB
black.css 8KB
blue.css 8KB
default.css 8KB
opera.css 7KB
aero.css 7KB
idialog.css 7KB
chrome.css 6KB
twitter.css 6KB
simple.css 6KB
demo.css 6KB
datepicker.css 4KB
datepicker.css 4KB
progressbar.css 3KB
progressbar.css 3KB
button.css 3KB
button.css 3KB
magula.css 2KB
core.css 2KB
core.css 2KB
slider.css 1KB
slider.css 1KB
dialog.css 1KB
dialog.css 1KB
resizable.css 1KB
resizable.css 1KB
tabs.css 1KB
tabs.css 1KB
spinner.css 1KB
spinner.css 1KB
selectmenu.css 1KB
selectmenu.css 1KB
menu.css 1KB
menu.css 1KB
Site.css 1024B
accordion.css 829B
accordion.css 829B
base.css 752B
base.css 752B
tooltip.css 438B
tooltip.css 438B
selectable.css 354B
selectable.css 354B
autocomplete.css 332B
autocomplete.css 332B
all.css 287B
all.css 287B
draggable.css 265B
draggable.css 265B
sortable.css 263B
sortable.css 263B
EntityFramework.dll 1.07MB
EntityFramework.dll 1.07MB
EntityFramework.dll 1.07MB
WebGrease.dll 1.01MB
WebGrease.dll 1.01MB
System.Web.Mvc.dll 495KB
共 529 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
- w4070135512017-12-14内容很丰富,最可贵的是资源不需要很多积分.
- qq_238766132016-09-01亲 一个说明都木有? 数据库都木有的
- Mysdsn2018-08-27可以使用,谢谢分享!
- LeoHaiTao2017-10-21写的什么玩意
- CC码2018-06-25说明都没有,写的什么玩意?一坨屎一样
mobudiao1
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功