Slightly modified sample code, originally from http://code.msdn.microsoft.com/windowsazure/Windows-Azure-HelloWorld-ee52983e