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.
没有合适的资源?快使用搜索试试~ 我知道了~
ASP signalR简单服务器推送功能
共94个文件
dll:24个
xml:20个
js:11个
5星 · 超过95%的资源 需积分: 10 35 下载量 6 浏览量
2016-01-15
16:18:50
上传
评论
收藏 4.59MB RAR 举报
温馨提示
ASP signalR简单服务器推送功能 详情 请看http://blog.csdn.net/qq_33238150/article/details/50512520
资源推荐
资源详情
资源评论
收起资源包目录
SignalR.rar (94个子文件)
SignalR
SignalR
Startup.cs 335B
PushHub.cs 923B
Global.asax.cs 1KB
Web.Debug.config 1KB
Scripts
jquery.signalR-2.2.0.js 122KB
jquery-1.6.4.min.js 90KB
jquery-1.6.4.js 233KB
jquery-1.6.4-vsdoc.js 209KB
jquery.signalR-2.2.0.min.js 36KB
Global.asax 91B
bin
Microsoft.AspNet.SignalR.Core.dll 360KB
SignalR.pdb 20KB
Microsoft.AspNet.SignalR.SystemWeb.xml 7KB
Newtonsoft.Json.xml 468KB
Microsoft.Owin.Host.SystemWeb.xml 32KB
Newtonsoft.Json.dll 491KB
Microsoft.Owin.xml 158KB
Owin.dll 5KB
Microsoft.Owin.Security.dll 49KB
SignalR.dll.config 356B
Microsoft.Owin.dll 92KB
Microsoft.Owin.Security.xml 28KB
Microsoft.Owin.Host.SystemWeb.dll 145KB
SignalR.dll 7KB
Microsoft.AspNet.SignalR.SystemWeb.dll 14KB
Microsoft.AspNet.SignalR.Core.xml 197KB
Web.html 1KB
SignalR.csproj.user 1KB
Web.config 356B
obj
Debug
SignalR.csprojResolveAssemblyReference.cache 45KB
SignalR.pdb 20KB
TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs 0B
DesignTimeResolveAssemblyReferencesInput.cache 9KB
TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs 0B
TempPE
SignalR.csproj.FileListAbsolute.txt 2KB
SignalR.dll 7KB
TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs 0B
Properties
AssemblyInfo.cs 1KB
SignalR.csproj 7KB
PushMessage.cs 458B
packages.config 879B
Web.Release.config 1KB
packages
jQuery.1.6.4
jQuery.1.6.4.nupkg 226KB
Tools
uninstall.ps1 1KB
jquery-1.6.4-vsdoc-para.js 211KB
install.ps1 914B
Content
Scripts
jquery-1.6.4.min.js 90KB
jquery-1.6.4.js 233KB
jquery-1.6.4-vsdoc.js 209KB
Microsoft.AspNet.SignalR.JS.2.2.0
content
Scripts
jquery.signalR-2.2.0.js 122KB
jquery.signalR-2.2.0.min.js 36KB
Microsoft.AspNet.SignalR.JS.2.2.0.nupkg 38KB
Owin.1.0
Owin.1.0.nupkg 4KB
lib
net40
Owin.dll 5KB
Microsoft.AspNet.SignalR.SystemWeb.2.2.0
lib
net45
Microsoft.AspNet.SignalR.SystemWeb.XML 7KB
Microsoft.AspNet.SignalR.SystemWeb.dll 14KB
Microsoft.AspNet.SignalR.SystemWeb.2.2.0.nupkg 12KB
Microsoft.AspNet.SignalR.Core.2.2.0
Microsoft.AspNet.SignalR.Core.2.2.0.nupkg 168KB
lib
net45
Microsoft.AspNet.SignalR.Core.dll 360KB
Microsoft.AspNet.SignalR.Core.xml 197KB
Microsoft.Owin.Host.SystemWeb.2.1.0
Microsoft.Owin.Host.SystemWeb.2.1.0.nupkg 129KB
lib
net45
Microsoft.Owin.Host.SystemWeb.xml 32KB
Microsoft.Owin.Host.SystemWeb.dll 145KB
net40
Microsoft.Owin.Host.SystemWeb.xml 31KB
Microsoft.Owin.Host.SystemWeb.dll 140KB
repositories.config 126B
Newtonsoft.Json.6.0.4
Newtonsoft.Json.6.0.4.nupkg 1.44MB
tools
install.ps1 3KB
lib
net45
Newtonsoft.Json.xml 468KB
Newtonsoft.Json.dll 491KB
net35
Newtonsoft.Json.xml 449KB
Newtonsoft.Json.dll 420KB
net20
Newtonsoft.Json.xml 504KB
Newtonsoft.Json.dll 482KB
portable-net40+sl5+wp80+win8+wpa81
Newtonsoft.Json.xml 416KB
Newtonsoft.Json.dll 378KB
netcore45
Newtonsoft.Json.xml 438KB
Newtonsoft.Json.dll 437KB
portable-net45+wp80+win8+wpa81
Newtonsoft.Json.xml 438KB
Newtonsoft.Json.dll 435KB
net40
Newtonsoft.Json.xml 468KB
Newtonsoft.Json.dll 482KB
Microsoft.Owin.2.1.0
lib
net45
Microsoft.Owin.XML 158KB
Microsoft.Owin.dll 92KB
net40
Microsoft.Owin.XML 136KB
Microsoft.Owin.dll 78KB
Microsoft.Owin.2.1.0.nupkg 109KB
Microsoft.Owin.Security.2.1.0
Microsoft.Owin.Security.2.1.0.nupkg 31KB
lib
net45
Microsoft.Owin.Security.XML 28KB
Microsoft.Owin.Security.dll 49KB
Microsoft.AspNet.SignalR.2.2.0
Microsoft.AspNet.SignalR.2.2.0.nupkg 4KB
readme.txt 2KB
SignalR.sln 990B
SignalR.v12.suo 36KB
共 94 条
- 1
资源评论
- 笑对人生-云峰2017-01-19感谢楼主分享!
好小伙17
- 粉丝: 22
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功