I recently showed interest in SignalR, but have not yet created a production server, no matter how simple.
I followed the GitHub Self Host documentation but I get a nasty 500 error.
The code I'm using is the following (mostly GitHub code):
class Program { static void Main(string[] args) { string host = "http://localhost:2804"; using (WebApplication.Start<InitialConf>(host)) { Console.WriteLine("Server started on {0}", host); Console.ReadKey(); } } } class InitialConf { public void Configuration(IAppBuilder appBuilder) { var config = new HubConfiguration { EnableCrossDomain = true };
Viewing http://localhost:2804/signalr raises error 500:
HTTP/1.1 500 Internal Server Error Content-Length: 0 Server: Microsoft-HTTPAPI/2.0
I don't get exceptions / errors in the application, so I'm not sure why it behaves like this.
Anyone have experience with these issues? Or maybe it can lead me to better documentation on this?
thanks
source share