Rory Primrose

Learn from my mistakes, you don't have time to make them yourself

View project on GitHub

No VS2002 or VS2003 for Vista

This one is a couple of weeks old, but Soma has indicated that VS2002 and VS2003 will not be supported as development environments in Vista. This is yet another reason why you should make the move to VS2005 sooner rather than later.

Read More

WCF services hosted in IIS

Today I have been playing with a WCF service hosted in IIS. Previously, I have always used the self-hosted services running from a console application.

I am having issues with IIS hosting because although the service code is running correctly, the client is throwing a response error because the connection with the server is being unexpectedly closed. Still haven’t figured this one out.

Tonight, I have been doing a little bit of reading about this topic and came across this interesting note from the Hosting Services page in the SDK.

The message-based activation provided for an WCF service by IIS 5.1 on Windows XP blocks any other self-hosted WCF service on the same box from using port 80 to communicate.

The Hosting Services page is a great reference for helping you to figure out the best way of hosting your WCF service. Windows Activation Service seems like the most comprehensive hosting solution, but obviously requires Vista as the platform.

Read More

Cho Dan Bo

I did a grading on the weekend with a few other students of my Taekwondo club. We started with some kicking and punching for a warm-up. The two beginners who were grading displayed their patterns. Myself and two other red belts then did the advanced patterns (Chil Jang and Pal Jang) followed by the first black belt pattern (Koryo). Patterns were followed by 3 and 1 step sparring which is always quite a bit to get your head around in a grading! This was all topped off with some board breaking (three for me).

The grading went really well and I was very happy with my performance. I am now a Cho Dan Bo.

Read More

Public Fields vs. Public Properties

Just came across this post in my feeds this morning. Interesting read.

I think there is a lack of consistency in implementations (event handlers being the classic case), but the contract/interface argument leans me towards always wrapping fields in properties. Using properties also means that you can change the code without having to change the structure of the class.

Any thoughts? Is Ian Cooper a witch? Should he be burnt at the stake? Is there a Monty Python take on this?

Read More

XBAP through a proxy server

I have just tried to view some XBAP applications using RC1 of [NetFx]. Unfortunately it didn’t go so well because I am sitting behind a proxy server. IE has it’s connection settings defined for how to go through the proxy, but it seems that the XBAP host isn’t doing the same. I am getting this error:

System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.

I have found some references (such as here and here) which mention changes to the machine.config, but this hasn’t solved the problem. Has anyone been able to get around this problem?

Read More

Visual Studio for Database Professionals

I am working on a personal project that I have wanted to do for quite a while. The project requires a database and I have been putting this part of the system together tonight. I remembered reading about the new edition of Visual Studio for Database Professionals that was blogged about the other month. I have decided to give this a run because I would like a full Visual Studio development experience as much as possible.

There are two major things that I would like to get out of this new project model. Firstly, version control for database objects. I will get the project onto CodePlex sometime soon so that should be a good test of its version control capabilities. Secondly, a good deployment (including upgrade) model.

Read More

Top guidelines violations

I just came across the Top Guidelines Violations document on MSDN. This is a great read to get pointers of what not to do with your UI designs and behaviours. It also includes some helpful suggestions as well.

I haven’t read it all yet, but the one that jumps out for me is the restarting progress bar. Hopefully Microsoft will learn from themselves because this is the thing in Windows Installer that annoys me the most. The progress bar restarts so many times and you never know what the progress actually is.

Read More