SignalR 在IE中无法工作 - Internet Explorer

时间:2022-04-25
本文章向大家介绍SignalR 在IE中无法工作 - Internet Explorer,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

运行基于SignalR的超线程上载器的代码,发现SignalR 在IE 9上居然没法工作了,提示如下:

提示很明显,需要json2.js的支持。

使用Nuget 搜索json2.js 并安装:

在引用之前引用json2.min.js

   <script src="Scripts/json2.min.js" type="text/javascript"></script>   
   <script src="Scripts/jquery-1.6.4.min.js" type="text/javascript"></script>    
   <script src="Scripts/jquery.signalR-1.0.0-rc1.js" type="text/javascript"></script>

重新运行项目,问题解决了。

Real Time Commenting using SignalR and XSLT

SignalR, Quartz.Net and ASP.Net: part 2 the webclient

MVC API 实时日志查看功能

Building Web Apps with SignalR, Part 1