Align 404 with SignalR 2.2.1 in Asp.net main application

I struggled with this for several days ...

I have a main Asp.net application that uses .Net 4.6 and SignalR 2.2.1. When running locally in IIS Express with VS 2015 on a Windows 10 PC, everything works fine. It even works when deployed to IIS 10 on my local machine.

However, when deploying to IIS on vm running Windows Server (I tried 2008 R2, 2012 R2 and 2016 TP5), I consistently get 404 error when SignalR tries to negotiate. Acting as the default website, http: // localhost / signalr / negotiate returns 404./signalr/hubs still returns the correct js, as far as I can tell.

Strange, I tried to configure it on an old vm running Windows Server 2012 R2, and for some reason it works fine, which makes me think that this is a configuration problem, but I can’t figure out what the problem is for my whole life .

Any suggestions would be appreciated as I really grab onto the straw now ...

+4
source share
1 answer

enable loading user profile in app poll in IIS

+1
source

Source: https://habr.com/ru/post/1656905/


All Articles