c# - The server factory could not be located for the given input: Microsoft.Owin.Host.HttpListener -
i have implemente signalr in window service.
private idisposable signalr { get; set; } public void configuration(iappbuilder app) { var hubconfig=new microsoft.aspnet.signalr.hubconfiguration(); hubconfig.enablejsonp = true; app.usecors(corsoptions.allowall); app.mapsignalr(hubconfig); } private void startsignalrserver(stringbuilder sblog) { try { this.signalr = webapp.start(serveruri); //this throws exception //this.signalr= webapp.start<startup>(serveruri); sblog.append(string.format("{0}--------signalr server started------",environment.newline)); } catch (exception ex) { sblog.append(string.format("{0}exception in startsignalrserver=>{1}", environment.newline,ex.message)); } }
exception:the server factory not located given input: microsoft.owin.host.httplistener
the microsoft.owin.host.httplistener assembly runtime reference in webapp.start. need include in project's references available loading. check bin\debug (etc) directory make sure it's included. may add nuget dependency well.
Comments
Post a Comment