Question

i have a virtual machine on Azure.My server is Ubuntu Server 12.04.My aim is using SignalR self host on it. For that i install Mono Develop on ubuntu server and write the example my code. (Microsoft Tutorial) For firewall i disabled firewall on Ubuntu and added an endpoint 1453* in Azure Virtual Machine.

i added all references to my project and build it.Everything is okay project is running and listening the port 1453. But when i call signalr from my localhost (not in the ubuntu) i get some erros.i take a snapshot of the error:

Error

Whats wrong with my code? or did i forget some references? Any help would be appreciated. Thanks.

[UPDATE] i copied that packages from Nuget to Mono Install-Package Microsoft.AspNet.SignalR.SelfHost Install-Package Microsoft.Owin.Cors

Was it helpful?

Solution

Finnaly, i found! The problem is i missed to add some dll's to my project on Mono. The clear way to do that, copy the project that runs in your local Windows to Ubuntu Server.Open a new project in Mono , copy the code and add all the references. Remember that use framework 4.5 and add references of 4.5 version.

References you should have to add:

  • System.Web.Cors
  • Microsoft.AspNet.Signalr.Core
  • Microsoft.Owin
  • Microsoft.Owin.Cors
  • Microsoft.Owin.Diagnostics
  • Microsoft.Owin.Host.HttpListener
  • Microsoft.Owin.Hosting
  • Microsoft.Owin.Security
  • Newtonsfot.Json
  • Owin.dll
  • Microsoft.Csharp
  • System.Core
  • System.Data
  • System.Data.SetExtensions
  • System.Xml
  • System.Xml.Linq
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top