The server factory could not be located for the given input: Microsoft.Owin.Host.HttpListener

jignesh

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 could not be located for the given input: Microsoft.Owin.Host.HttpListener

skoz

The Microsoft.Owin.Host.HttpListener assembly is a runtime reference in WebApp.Start. You need to include it in the project's references for it to be available for loading. Check the bin\Debug (etc) directory to make sure it's included. May as well add it as a nuget dependency as well.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I get ASPNET WebAPI working with Microsoft.Owin.Host.HttpListener on an Azure worker role using an IoC container?

From Dev

SignalR 2.0 error: Could not load file or assembly Microsoft.Owin.Security

From Dev

Microsoft Owin Self Host crashes with Google Chrome

From Dev

Microsoft.Owin.StaticFiles works in console host but I get a 404 in IIS on file requests

From Dev

Microsoft Owin UseJwt

From Dev

could not connect to ejabberd server: unknown host exception

From Dev

Does Chunked Transfer Encoding work with Nancy, OWIN and HttpListener?

From Dev

MAMP Server could not be located in the dynamic link library

From Dev

Could not load file or assembly 'Microsoft.Owin.Security.Cookies' or one of its dependencies.

From Dev

How to get OWIN HttpListener current connections count?

From Dev

The host network interface with the given name could not be found

From Dev

The procedure entry point could not be located

From Dev

Could not load file or assembly Microsoft.Owin.Security.OAuth, Version=2.0.0.0

From Dev

Can you connect to a hub that is located on a different host / server?

From Dev

What is the difference between Microsoft.Owin.Host.SystemWeb and Microsoft.Owin.Host.IIS

From Dev

install-package Microsoft.Owin.Host.SystemWeb fails

From Dev

VS no workspace on that server could be located

From Dev

Could not load file or assembly Microsoft.Owin 3.0.0 to 3.0.1

From Dev

Could not open connection to host (ubuntu server) on port 23, 5432, 3306

From Dev

Could not locate Razor Host Factory type: umbraco.MacroEngines.RazorUmbracoFactory, umbraco.MacroEngines

From Dev

Could not open connection to host (ubuntu server) on port 23, 5432, 3306

From Dev

SignalR 2.0 error: Could not load file or assembly Microsoft.Owin.Security

From Dev

What's the host used by nuget package "Microsoft ASP.NET Web API 2.1 OWIN Self Host 5.1.1"?

From Dev

Microsoft Owin Self Host crashes with Google Chrome

From Dev

How to get OWIN HttpListener current connections count?

From Dev

The host network interface with the given name could not be found

From Dev

Decouple self-host OWIN authorization server

From Dev

Could not load file or assembly 'Microsoft.Owin.Host.SystemWeb on VSTS

From Dev

Could not load file or assembly 'Microsoft.Owin in Visual Studio

Related Related

  1. 1

    How do I get ASPNET WebAPI working with Microsoft.Owin.Host.HttpListener on an Azure worker role using an IoC container?

  2. 2

    SignalR 2.0 error: Could not load file or assembly Microsoft.Owin.Security

  3. 3

    Microsoft Owin Self Host crashes with Google Chrome

  4. 4

    Microsoft.Owin.StaticFiles works in console host but I get a 404 in IIS on file requests

  5. 5

    Microsoft Owin UseJwt

  6. 6

    could not connect to ejabberd server: unknown host exception

  7. 7

    Does Chunked Transfer Encoding work with Nancy, OWIN and HttpListener?

  8. 8

    MAMP Server could not be located in the dynamic link library

  9. 9

    Could not load file or assembly 'Microsoft.Owin.Security.Cookies' or one of its dependencies.

  10. 10

    How to get OWIN HttpListener current connections count?

  11. 11

    The host network interface with the given name could not be found

  12. 12

    The procedure entry point could not be located

  13. 13

    Could not load file or assembly Microsoft.Owin.Security.OAuth, Version=2.0.0.0

  14. 14

    Can you connect to a hub that is located on a different host / server?

  15. 15

    What is the difference between Microsoft.Owin.Host.SystemWeb and Microsoft.Owin.Host.IIS

  16. 16

    install-package Microsoft.Owin.Host.SystemWeb fails

  17. 17

    VS no workspace on that server could be located

  18. 18

    Could not load file or assembly Microsoft.Owin 3.0.0 to 3.0.1

  19. 19

    Could not open connection to host (ubuntu server) on port 23, 5432, 3306

  20. 20

    Could not locate Razor Host Factory type: umbraco.MacroEngines.RazorUmbracoFactory, umbraco.MacroEngines

  21. 21

    Could not open connection to host (ubuntu server) on port 23, 5432, 3306

  22. 22

    SignalR 2.0 error: Could not load file or assembly Microsoft.Owin.Security

  23. 23

    What's the host used by nuget package "Microsoft ASP.NET Web API 2.1 OWIN Self Host 5.1.1"?

  24. 24

    Microsoft Owin Self Host crashes with Google Chrome

  25. 25

    How to get OWIN HttpListener current connections count?

  26. 26

    The host network interface with the given name could not be found

  27. 27

    Decouple self-host OWIN authorization server

  28. 28

    Could not load file or assembly 'Microsoft.Owin.Host.SystemWeb on VSTS

  29. 29

    Could not load file or assembly 'Microsoft.Owin in Visual Studio

HotTag

Archive