简体   繁体   中英

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.

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).

But when I deploy it to the webhosting (virtual directory), on the address http://myhosting.xxx/virtualdirectory/signalr/hubs I get error 404 instead.

I have this in my 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:

<add key="owin:AutomaticAppStartup" value="true"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM