Azure and Public Networks

One of the joys of trying to develop in the local library is that you don’t have any control over which ports are open. Which means I can’t connect to any azure databases over port 1433.

1433 Port Closed Telnet

On the plus side it is a good test for my error handler!

Goldings Web Form TCP error zero


Azure Subscription Renewal

Microsoft don’t seem to make it easy to renew your Azure Subscription! I was unable to login through the email link they sent me, yet I can login to without any problems! I can also login to the Azure Portal without any problems. Much easier to renew your subscription via the portal it would seem… (Cost Management + Billing – Subscriptions)

Azure Subscription Renewal

No need for Reflection

So I have a data access layer object that is called mostly by a Web Form but occasionally also by a Windows Form. I needed to tell the difference on this occasion and assumed that the only way to do it would be via Reflection. That is until I stumbled across this StackOverFlow post. Much easier to use the attributes in CompilerServices which were introduced in .NET 4.5. Unfortunately both my calling methods had the same name which meant CallerMemberName was no help; so I opted to use the CallerFilePath Attribute instead:


Shame there is no ‘ProjectType’ attribute as the code could fall down if I ever renamed my Windows Forms project…

Intro to Docker (Meetup)

My first visit to Expert Talks Cambridge last night. A great introduction covering all the basics such as creating a Dockerfile, spinning up a container, creating and running docker-compose files (to get containers to communicate with each other), compiling .NET code outside of .NET and running unit tests.

ExpertTalks Cambridge: Paul McGrath – Docker for the complete beginner

Wednesday, Nov 7, 2018, 7:00 PM

Hot Numbers Coffee
5-6 Gwydir Street Cambridge, GB

43 Members Went

Expert Talks Cambridge – Wednesday 7th November – 7pm Workshop by Paul McGrath: “Docker for the complete beginner” Bring a laptop or pair up with someone friendly. Please run these very important instructions before attending: 1. Install docker: Mac: Windows 10:…

Check out this Meetup →

Seems to me the ‘scale’ command is incredibly powerful. Also some great tips were given out such as using the ‘volume’ command to persist logs after containers die…


Been hearing a lot about Docker at various Meetups recently so I thought it was time to get on board…

Not the most straightforward thing to install. The first issue to overcome related to ‘Hyper-V‘, a Microsoft technology which facilitates virtualisation:

Docker Hyper-VError

After a couple of reboots another error regarding virtualisation:

Virtualization must be enabled

Cue some unsuccessful attempts at turning on the Hyper-V feature within Windows:

Docker Feature cannot be installed

A quick check in Task Manager confirmed that a BIOS change would indeed be required…

Docker TM CPU

Numerous reboots later and Docker was successfully installed!

Docker Login

The next hurdle was to set up Powershell Execution Policies so that I could run some scripts…

Empty Templates and IIS Express Configuration

Created a new Web App Project from the ‘Empty’ Template today, ie:

Empty Web Form Template

Added an aspx file which I named ‘Search.aspx’. Added a few controls and some code and went to run the Project but IIS just wouldn’t play ball and kept presenting with an ‘Http 403.14 Forbidden’ error:

403.14 Error

Followed the suggestion and enabled Directory Browsing on the Web Site but still no dice. I then had a look at the ‘Default Document’ setting for the Web Site and sure enough none of the files listed were part of my project:

IIS Default Document

Pretty easy fix I thought! I’ll just add ‘Search.aspx’ to the list of documents (being careful to spell it with a capital ‘S’ as the list is case-sensitive) but still the same 403.14 error! As soon as I renamed Search.aspx to Default.aspx however everything started to work…