[英]SignalR on hosting - virtualdirectory/signalr/hubs shows Error 404
I have a SinglaR app (empty web application without any global.asax and RouteConfig) which works well. 我有一个运行良好的SinglaR应用程序(没有任何global.asax和RouteConfig的空Web应用程序)。
http://localhost:62673/signalr/hubs shows 'ASP.NET SignalR JavaScript Library v2.2.0' javascript and it is working (I use Winforms client, not the javascript one). http:// localhost:62673 / signalr / hubs显示了“ ASP.NET SignalR JavaScript库v2.2.0” JavaScript,它正在运行(我使用Winforms客户端,而不是JavaScript客户端)。
But when I deploy it to the webhosting (virtual directory), on the address http://myhosting.xxx/virtualdirectory/signalr/hubs I get error 404 instead. 但是,当我将其部署到虚拟主机(虚拟目录)时,在地址http://myhosting.xxx/virtualdirectory/signalr/hubs上却收到错误404。
I have this in my web.config: 我在web.config中有这个:
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
</modules>
</system.webServer>
What else am I missing? 我还想念什么?
Thanx 感谢名单
Ok, I found it after a whole day. 好的,我整整一天都找到了。 This directive in web.config is needed:
需要在web.config中使用此指令:
<add key="owin:AutomaticAppStartup" value="true"/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.