如何在IIS 7.5中部署SignalR应用程序? [英] How to deploy SignalR application in IIS 7.5?

查看:583
本文介绍了如何在IIS 7.5中部署SignalR应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在IIS 7.5中部署SignalR应用程序?
我在IIS 5.1中托管了SignalR应用程序.但是该应用程序无法在主机上运行.它可以通过Visual Studio 2010在本地服务器中工作.

问题出在SignalR中hub.js的生成上.

脚本参考如下:

How to deploy SignalR application in IIS 7.5?
I hosted the SignalR application in IIS 5.1. But the application isn''t working on hosting. It works in local server via Visual Studio 2010.

The issue comes on the generation of hub.js in SignalR.

The script reference are as below:

<script src="http://code.jquery.com/jquery-1.8.2.min.js" type="text/javascript"></script>

  <script src="Scripts/jquery.signalR-1.1.4.js" type="text/javascript"></script>

    <script src="/signalr/hubs" type="text/javascript"></script>

 <%-- <script src="<%= ResolveUrl("~/signalr/hubs") %>" type="text/javascript"></script>--%>

推荐答案

以下是您的理想示例
Here is an perfect example for you
http://blogs.msdn.com/b/timlee/archive/2013/03/21/hosting-a-signalr-application-on-windows-2008r2-and-iis-7-5.aspx[^]


这篇关于如何在IIS 7.5中部署SignalR应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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