Notes from the field

Blog

Practical solutions, lessons learned, and ideas from a life in software and technology.

Port Forwarding using the Windows Firewall

Port forwarding in Windows The other day I was looking for an easy way to setup port forwarding on my Windows Server 2008 development server. I came across the built-in “netsh interface portproxy” Windows command which allows you to do this without the need to install any additional software.
Read article

Take ASP.NET website offline

Overview There are times where you may need to take an ASP.NET application offline to perform maintenance. In this post I’ll show you how to do exactly that using the out-of-the-box capabilities of IIS / ASP.NET.
Read article

Resolve “AspNetHostingPermission” error

So what do you do if you come across this error in Visual Studio? System.Security.SecurityException: Request for the permission of type ‘System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ failed. The error typically occurs when you download files from an external source into your Visual Studio project. Windows will recognise the file came from an external source and […]
Read article

Run a program in context of another user

As a developer, there are many times where we may need to run a program in context of another user. For example, you may need to replicate an issue that a user encountered. The RUNAS windows command line program is your friend. From the command line run the following command to launch a program in context of […]
Read article