【问题标题】:signalr application notworking after hosted with iis使用 iis 托管后,信号器应用程序无法正常工作
【发布时间】:2013-10-15 14:08:20
【问题描述】:

您好,我使用 SignalR 创建了一个独立项目。它在 Visual Studio 2012 上运行良好。我为此使用了点网框架 4。但是在 iis7.5(服务器 2008r2)中托管应用程序后,signalR 部分无法正常工作。它给出了错误,当我看到客户端调试时我得到了这个:

"GET http://ChatApplication/chat/negotiate?_=1381730636439 404 (Not Found)".

请帮助我。如何在 iis 7.5(服务器 2008)中托管 signalR 项目。

【问题讨论】:

  • 能否贴出调用集线器的部分代码

标签: asp.net iis-7.5 signalr


【解决方案1】:

有3个步骤:

1.更新 Signalr 应用程序的 Web.config 文件

2.更新使用SignalR的网页

3.设置 Windows Server 2008r2 和 IIS 7.5

查看下面提到的链接以获取更多信息。它解释了如何执行此操作的步骤。

Hosting a SignalR application on Windows 2008r2 and IIS 7.5

更新

根据 OP 的反馈,您可以通过安装下面提到的 IIS 更新来解决此问题。

A update is available that enables certain IIS 7.0 or IIS 7.5 handlers to handle requests whose URLs do not end with a period

希望对你有帮助。

【讨论】:

  • 我进行了该链接中告知的更改。但它不是同样的问题。
  • @user2586626 我只修复了安装此修复程序support.microsoft.com/kb/980368 of IIS 7.5的问题
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-02-07
  • 2022-11-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-04-28
  • 1970-01-01
相关资源
最近更新 更多