ASP.NET Adventure. SignalR (Part 4)

I’m going to try something: Posting a project to my blog.

I rarely trust posts with snippets in which they try to guide you to do something you’re trying to learn. Most of times you end up with a mess, a project that doesn’t work and you being frustrated and feeling silly.

I don’t want you feel that way! So I’m posting a ZIP file with the whole project Smile

download it here!
I will try to explain the current challenges I have found in my next post! Stay tuned!


  1. Start Visual Studio as Administrator. Important.
  2. Open the solution file.
  3. Right click the solution and choose Startup projects. Sort them. The server should start first! The action for both should be “Start”.
  4. Run the project. It will throw an exception because we have to configure the IIS Express. You have to run the project for the required configuration to be auto created in the configuration folder (next steps!).
  5. Disable your firewall
  6. Go to the folder “C:Users[YourUsername]DocumentsIISExpressconfig” and open the file applicationhost.config
  7. Go to the section <sites> and locate the one that says <site name=”ChorriServer…>
  8. In the <bindings> section of the site you should copy the existing binding a copy it below.
  9. Replace “localhost” with the IP of the machine you are debuging into.
  10. It should remain like this:
  11. In this case, my IP is (a private IP in my local network).
  12. Choose to debug the Windows Phone with the emulator. If you choose a real device, make sure the development machine and the device are in the same network.
  13. Run the project again and with a bit of luck, you are done Open-mouthed smile

Try it and tell if if it does!

You should see a browser window that complaints about something, BUT the important thing is the Windows Phone Application that runs (in the emulator).

Click the button “Retrieve orders” and a list of n elements with some random data will be brought to you from the server! If you press it again, the data is taken again. That’s all! It client receives the data from the server. Silly, uh?

You should have seen the hard time I had trying to figure how to do it, hahaha.

Leave a Reply

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

You are commenting using your 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