Last post Apr 23, 2013 02:54 PM by pantonis
Apr 23, 2013 10:37 AM|pantonis|LINK
Im trying to connect to my hub from a windows application and I get following exception.
SocketException "An attempt was made to access a socket in a way forbidden by its access permissions"
Code is following
string NewMessage = string.Empty;
var connection = new HubConnection("http://mysite.com/");
IHubProxy proxy = connection.CreateHubProxy("testHub");
proxy.On<string>("sendMessage", (message) =>
NewMessage = message
Apr 23, 2013 12:53 PM|davidfowl|LINK
This error message doesn't come from SignalR. It's a generic Socket error. What environment are you trying to create this connection from? Is it an ASP.NET application with limited persmissions (e.g. medium trust)?
Apr 23, 2013 02:31 PM|pantonis|LINK
WinRT application connecting to ASP.NET application hosted on IIS 8 Windows server 2012
Apr 23, 2013 02:40 PM|davidfowl|LINK
Did you allow that app to make external requests? You have to turn that capability on:
Apr 23, 2013 02:43 PM|pantonis|LINK
Yes it is on
Apr 23, 2013 02:54 PM|pantonis|LINK
Found it. On that screen you have to enable Private Networks (Client & Server) as well.