Reputation: 645
I have an ASPnet webapplication that uses SignalR, it works fine under IIS.
When I try to self host the ASP.NET webapplication with System.Web.ApplicationHost.CreateApplicationHost, The signalR functionality is gone.
From debugging, I see that the OWin Startup class is never hit.
Does anyone have a clue why? From what I understand, the CreateApplicationHost is just hosting the application outside of IIS, but it still runs through the ASP.NET pipeline, So, I don't understand why Owin startup and SignalR wont work.
Upvotes: 0
Views: 226
Reputation: 284
For instructions on self-hosting SignalR, see the following tutorial:
Upvotes: 1
Reputation: 32828
When hosted inside of ASP.NET, OWIN-based applications require the IIS integrated pipeline. CreateApplicationHost forces use of the ASP.NET classic pipeline.
If you want to self-host, use the HttpListener-based OWIN host rather than trying to self-host ASP.NET directly.
Upvotes: 2