LINQ, collections and null reference exceptions

This short post describes an idiosyncrasy of LINQ that, for someone with several years of C# experience I should probably have known about, but didn’t. During development of an app the test team reported that a null reference exception was intermittently occurring. For a seasoned developer like myself I didn’t think it would be too…


Miracast in Enterprise Environments – FAQ

Intro This blog is intended to document our learning’s about Miracast technology and explain things to consider when implementing a solution using Miracast. It is primarily about Windows 8.1 tablets and Windows Phone 8.1 as the authors work for Microsoft in the Worldwide Modern Devices Centre of Excellence (CoE). We work on a program called…


Miracast in Enterprise Environments

Miracast in Enterprise Environments This blog is intended to document our learning’s about Miracast technology and explain things to consider when implementing a solution using Miracast. It is primarily about Windows 8.1 tablets and Windows Phone 8.1 as the authors work for Microsoft in the Worldwide Modern Devices Centre of Excellence (CoE). We work on…


Adding Trace to Azure Web Sites and Web Jobs

Using standard .NET trace in Azure Web Sites and Web Jobs is an extremely simple affair, with trace output being directed to either table, blob or file storage without the need for any configuration file or code changes. This is great and a very welcome simplification compared to what you had with web and worker…


Video Streaming with a custom IRandomAccessStream on Windows and Windows Phone (Universal App)

  Overview   We encountered a challenge on our project where we wanted to play videos in MediaElement but the MP4 file was stored in Sharepoint which required user credentials for authentication. If you pass a URL to the MediaElement on Windows Phone 8.1 then it just tried to access the file without passing any…


Creating a DNS Server in Azure IaaS

Scenario I have multiple Azure Infrastructure-as-a-Service (Iaas) Virtual Machines (VMs) running under multiple Cloud Services, within one Virtual Network. I need these VMs to resolve each other based on hostname as well as be able to resolve public websites. If these VMs were all running in one cloud service, they would be able to resolve…


FloodHack

On Friday evening (14th Feb 2013), as I was walking out the building for the weekend, I was grabbed by a colleague and asked if I’d fancy giving up my Sunday.  It transpires that earlier in the day Microsoft and a whole load of other tech companies had a call from 10 Downing Street asking…


Hosting a TFS Build Controller on Windows Azure and connecting to Visual Studio Online

The Visual Studio Online Hosted Build Controller will serve you well for 90% of scenarios, but there are occasions when you’ll want to use your own Build Controller.  Examples include complex build scenarios such as SharePoint or BizTalk, or where you have a large development team (or lots of smaller ones on the same Team…