Last post Sep 18, 2019 09:20 AM by warrenkc2
Sep 12, 2019 03:50 AM|warrenkc2|LINK
Hi. I am using Webforms and was using the local server with SignalR.
After adding support for Azure SignalR I am getting errors.
If I go to the signalr directory of the website I see this: Protocol error: Missing connection token.
In the console of the browser I see this: VM171:1 GET http://localhost:51151/signalr/negotiate?clientProtocol=2.1&connectionData=%5B%7B%22name%22%3A%22auctionhub%22%7D%5D&_=1568260186129 500 (Internal Server Error)
I have added the connection string to the web.config file and added this to the startup.cs file: app.MapAzureSignalR(this.GetType().FullName);
Sep 13, 2019 02:03 AM|Fei Han - MSFT|LINK
Please locate your SignalR Service Settings page on Azure portal, and check if the Service mode is Classic or
Serverless mode is not supported for ASP.NET SignalR applications, if it is Serverless mode, please change it to Classic or Default.
Sep 13, 2019 02:40 AM|warrenkc2|LINK
Sep 13, 2019 04:29 AM|Fei Han - MSFT|LINK
You can try to clone this sample ASP.NET SignalR application from GitHub, then test it with your SignalR Service ConnectionString and check if it can work well.
Sep 18, 2019 09:20 AM|warrenkc2|LINK
The answer was that there was this problem in the web.config. Once I removed it, the service worked.
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-220.127.116.11" newVersion="18.104.22.168" />