# Tuesday, 02 April 2013

I’ve been giving presentations myself about this little handy tool from Microsoft and I’m happy to see that version 3 saw daylight and that I can finally speak about it as well. There are some very nice new features to it so be sure to check it out.

What to expect: Cloud, Git, TFS.

Download it here: http://www.microsoft.com/web/webmatrix/next/.

Also check out the WebCamps video where Vishal Joshi explains about all the new features in WebMatrix 3.

Grz, Kris.

Tuesday, 02 April 2013 10:23:47 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

Yes! I got the email message in my inbox yesterday evening that I got renewed as an MVP. I’m of course very happy to be renewed for the efforts I made during the past year in the community.

I also got to hear that several of my buddies also got renewed and that Mike Martin got his for the first time. Congratulations to all!

As you can see I had to celebrate this last evening with another MVP: Bilal Haidar who was visiting Belgium.

Bilal and me

Grz, Kris.

Tuesday, 02 April 2013 09:36:29 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, 27 March 2013

I got word the ASP.NET MVC hands on labs are available online also. So if you want to get to know more or just want to get your hands dirty for the first time with this great technology stack simply navigate to http://www.asp.net/mvc/tutorials/hands-on-labs.

Grz, Kris.

Wednesday, 27 March 2013 10:13:22 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, 18 March 2013

Since several years Microsoft helpers have created the All in One Code overview filled with samples & search possibilities for those common scenarios they saw being asked for over and over again on forums or newsgroups. It’s cool to see it has now also become a Windows 8 Store App.



Grz, Kris.

Monday, 18 March 2013 15:27:51 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Thursday, 14 March 2013

One day – four locations – on site experts – prizes – fun. That’s basically what’s going to happen on March 27th at four different locations in our cozy Belgian country. You can opt between:

Like in the past there are 2 main sessions: one at day and one at night so you can choose yourself when you want to sleep or try to win a prize. Talking about prizes this might certainly interest you and get you engaged:

  • 1st Place: free & full entrance to TechEd Madrid 25-28 June
  • 2nd Place: Marvellous Asus Vivo Tab
  • 3rd Place: Hot Windows Phone 8

Of course something cool like this isn’t real before you see a banner so here you go:


Grz, Kris.

Thursday, 14 March 2013 15:09:04 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Saturday, 23 February 2013

This year I went again to the MVP summit in Redmond and Belle Vue. I had a blast to see so many familiar faces again, get to know many more people and having lots of interactions and networking. The technical sessions were interesting but the most awesome times were the after hours meetups. As I got awarded as MVP of the year this year I also got the opportunity to go out on a nice dinner with several other MVPs holding that title and several high ranking managers at Microsoft. The day after I also met up with people from the TFS online group and several program managers of the Windows Azure Web Sites group. It was very nice to interact and provide feedback.

On the last day we also tried to gather as many of the ASP Insiders as possible and have a cool picture of the gang Smile. I’m the third person from the left with the green sweater.

Microsoft ASP Insiders

Of course I hope to be there again next year as well Smile.

Grz, Kris.

Saturday, 23 February 2013 13:26:00 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Tuesday, 19 February 2013

SignalR went RTW last Monday which is awesome. Which is even more awesome is that at the MVP summit I got to know about a book being published by a fellow MVP about this great technology:


The current version of the book is still about the RC2 edition but they promise to update it really soon so be sure to grab the goods and start using SignalR.

Grz, Kris.

Tuesday, 19 February 2013 17:11:48 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, 21 January 2013

Today I was going through a video from BUILD 2012 where Damian Edwards and David Fowler are talking about SignalR. Normally people tend to make use of the Hub abstraction as it’s pretty easy to set up. In the video the technique of making use of a PersistentConnection class approach is shown and as I wanted to try that one out I found out that the the rc2 version got some breaking changes and I had to find a way around it.

If you want to follow along then here are the steps I took:

Create a new web application. I used an empty MVC 4 one. Open the package manager console and get the prerelease version of SignalR.

PM> Install-Package Microsoft.AspNet.SignalR –Pre

After you let it install everything create a new class and let it inherit from PersistentConnection. Override the OnReceived method. That’s right, the async suffix was dropped.

1 using System.Threading.Tasks; 2 using Microsoft.AspNet.SignalR; 3 4 namespace SignalR1rc2PersistentConnectionTest 5 { 6 public class ChatConnection : PersistentConnection 7 { 8 protected override Task OnReceived(IRequest request, string connectionId, string data) 9 { 10 return Connection.Broadcast(data); 11 } 12 } 13 }

In the global.asax simply write the following line in the global.asax’ Application_Start method. Be sure that the setting up of the route needs to be done before setting up other routes:

1 public class MvcApplication : HttpApplication 2 { 3 protected void Application_Start() 4 { 5 RouteTable.Routes.MapConnection<ChatConnection>("chat", "/chat"); 6 7 AreaRegistration.RegisterAllAreas(); 8 9 WebApiConfig.Register(GlobalConfiguration.Configuration); 10 FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); 11 RouteConfig.RegisterRoutes(RouteTable.Routes); 12 } 13 }

If you’re used to passing in something like “chat/{*operation}” as second parameter for MapConnection as I tried first as well then you’ll see in this rc2 a fat 404 returning. Simply passing in “/chat” works. Funny enough while I was fiddling around with the code it turned out that passing in null, “” or simply “chat” also worked out for me. I like to keep things in sync with client code so I opted in this sample for “/chat” to keep things simple.

Now create a new html file:

1 <!DOCTYPE html> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title></title> 5 </head> 6 <body> 7 <input type="text" value="" id="msg" /> 8 <input type="button" value="Send" id="send" /> 9 10 <ul id="messages"> 11 </ul> 12 13 <script src="Scripts/jquery-1.9.0.js"></script> 14 <script src="Scripts/jquery.signalR-1.0.0-rc2.js"></script> 15 <script> 16 17 $(function () { 18 19 var conn = $.connection('/chat'); 20 21 conn.received(function (data) { 22 $('#messages').append('<li>' + data + '</li>'); 23 }); 24 25 conn.start().done(function () { 26 $('#send').on('click', function () { 27 var msg = $('#msg').val(); 28 conn.send(msg); 29 }); 30 }); 31 32 }); 33 34 </script> 35 </body> 36 </html>

Besides adding references to both jQuery and the SignalR scripts the interesting part is in the custom script where the connection is set up, received data from the server gets captured and appended to the ul element. After starting the promise in the form of the done function makes sure that there’s no race condition with the click event of the send button.

A screen capture of the websockets going back and forth in the browser says more than enough. I used IIS Express 8 and Chrome 24 and the built in dev tools for this:

SignalR captured websockets with Chrome dev tools

As I spent some time figuring out the differences between former versions and the new rc2 I hope this may be of convenience for future readers.

Grz, Kris.

Monday, 21 January 2013 21:20:37 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Thursday, 20 December 2012

Yes it is. I’ve been using it since August last year and whenever I see Windows 7 or Vista again I go like: huh?

And if you need help to get to know it, ask this big person from the video:

Grz, Kris.

Thursday, 20 December 2012 10:23:15 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Tuesday, 27 November 2012

Even only after Microsoft released the latest and greatest version of Visual Studio, the tool most Microsoft focused developers spend most of their time in during the (working) day, got its first update. You can read the announcement here: Visual Studio 2012 Update 1 Now Available!.

You can download the goods here: http://www.microsoft.com/visualstudio/eng/downloads#d-visual-studio-2012-update.

Grz, Kris.

Tuesday, 27 November 2012 08:39:13 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |