Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 Websocket HTTP Authentication failed; no valid credentials available

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.

like image 936
Virang Patel Avatar asked May 08 '15 13:05

Virang Patel


1 Answers

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);
like image 50
Tim Avatar answered Oct 05 '22 11:10

Tim