SignalR / signalr /集线器404未找​​到 [英] SignalR /signalr/hubs 404 Not Found

查看:169
本文介绍了SignalR / signalr /集线器404未找​​到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图部署在IIS上一个SignalR的网站。 code一切工作的罚款VS.但要在 404未找​​到错误试图解决signalr /集线器到目前为止,我都试过了。

I am trying to deploy a SignalR site on IIS. Code all works fine in VS. But getting the 404 not found error trying to resolve signalr/hubs so far I have tried.

1)更改脚本裁判:

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

2)修改的web.config包括:

2) Modifying Web.Config to include :

<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
    </modules>
</system.webServer>

3)更改IIS上的调用请求 UrlMappingsModule

4)加入 SignalR.Hosting.AspNet.dll ,看是否能帮助什么。

4) added SignalR.Hosting.AspNet.dll to see if that would help anything.

不知道什么尝试或检查,在正确的方向的任何帮助或点?

Not sure what else to try or check, any help or point in the right direction?

推荐答案

尝试添加一个通配符应用程序映射到你的服务器,以帮助映射脚本中的URL未知的扩展名〜/ signalr /集线器

Try adding a wildcard application map to your server to help map the unknown extension in the script URL "~/signalr/hubs"

这篇关于SignalR / signalr /集线器404未找​​到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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