The Most Simple SignalR application

Download the ZIP containing the solution here! => The Most Simple SignalR App!

Hey boy, if you want to create a SignalR and you’re like me, you will appreciate this. A .zip file containing a SUPER BASIC ASP.NET application and a Console Client that uses SignalR and one Hub to retrieve a fixed list invoking a remote method 🙂

KEEP INTO ACCOUNT that the URL that you use to create the connection matters! This simple solution uses IIS Express, that has to be configured accordingly. You will have to go to this file

C:\Users\[YourUser]\IIExpress\Config\applicationhost.config

Open it and  under the <sites> tag you should see something list this:



bindingInformation contains the expression that will determine which URLs are accepted to connect to the service.

As you see, it says “localhost”. This means that you will connect to the service using a URL like http://localhost:1444/

NOTICE that it will fail if you use your actual private IP address! So if your client tries to connect using http://192.168.1.33:1444  the connection will be rejected and an exception will be thrown.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s