I have implemented HTML5 Websocket in my MVC5 Application. I have implemented this web socket using web API. This code is working fine in my local environment. But it is giving me below error in my test environment.
"WebSocket connection to '' failed: HTTP Authentication failed; no valid credentials available."
My server Configuration is Windows server 2012 with IIS8
Please Help me out.
We have a few customers who had this issue only on servers which were windows 2012. It seems related to websockets being present and on. Enabling Cross Domain fixed it for us on those servers.
// Turn cross domain on
var config = new HubConfiguration { EnableCrossDomain = true };
// This will map out to http://localhost:50001/signalr by default
app.MapHubs(config);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With