o..o
o..o

Reputation: 1921

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

Upvotes: 0

Views: 632

Answers (1)

o..o
o..o

Reputation: 1921

Ok, I found it after a whole day. This directive in web.config is needed:

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

Upvotes: 1

Related Questions