c# - HTTP 503 Service is unavailable when trying to browse signalr/hubs -


i have windows hosted signalr hub created in vs2012:

public class startup {     public void configuration(iappbuilder app)     {         app.usecors(corsoptions.allowall);         app.mapsignalr();     } }  public static class signalr {     public static void start()     {         const string url = "http://*:8080";         webapp.start<startup>(url);     } }   public class broadcaster : hub     {          public void senddownloadresult(bool result, string device, string description, string connectionid, string task)         {             var context = globalhost.connectionmanager.gethubcontext<broadcaster>();             context.clients.client(connectionid).senddownloadresult(result, device, description, task);         }     } 

i have deployed windows service on 3 different pcs, works fine on 2 pcs, on other, http 503 service unavailable when try browse http://localhost:8080/signalr/hubs

no exception thrown when code executed on 3 pcs.

i have checked iis's features in add/remove windows features, they're same.

what missing?

i able reproduce locally following setup:

  1. use netsh.exe or similar tool reserve http://localhost:8080/
  2. call webapp.start<startup>("http://*:8080")
  3. browse http://localhost:8080/

what happens http.sys accepts incoming request, examines host header, decides there reservation localhost:8080, realizes no application listening localhost:8080, *:8080. http.sys returns 503.

solutions:

  1. try webapp.start<startup>("http://+:8080")
  2. remove http.sys/netsh registration

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -