cypress-ntlm-auth 401 Unauthorized Response

TLDR; Be sure to only run cy.ntlmReset() after all requests in a test are completed. Recently we started to experience intermittent 401 unauthorized errors when our Cypress tests were executing on our build server. These errors were intermittent because they were timing dependent. We've been using a library with Cypress that allows it to authenticate … Continue reading cypress-ntlm-auth 401 Unauthorized Response

IIS ASP.NET Core Hosting Bundle 500.19 Error

TLDR; Re-install the latest hosting bundle; Recently I was upgrading the IIS ASP.NET Core Hosting Bundle to ensure the server had the latest patch release (3.1.8). Just to keep the server installations clean, I wanted to also remove all the previous versions of the core hosting bundle so that I only had the single required … Continue reading IIS ASP.NET Core Hosting Bundle 500.19 Error

Troubleshooting CORS Issues in ASP.NET Core Web API

Correctly configuring cross-origin resource sharing can be challenging. This post covers common CORS issues encountered while setting up a local development environment with ASP.NET Core Web API. Disclaimer:  I am not an expert in configuring cross origin resource sharing (CORS).  This post is intended to be for learning purposes only and is not a guide … Continue reading Troubleshooting CORS Issues in ASP.NET Core Web API

Why would AngularJS load $scope twice?

The other day I was working on an Angular project and noticed that my controller scope had loaded twice. I noticed this phenomenon using Batarang: Tip: Batarang is a great chrome developer tool plugin that helps a lot with debugging your Angular applications. Where in the world did scope.$id=2 come from? The rest of the … Continue reading Why would AngularJS load $scope twice?

Babel + Grunt === ES6 Now!

I’m really excited about all the great new JavaScript language features in EcmaScript 6 and I’ve been trying to figure out how I could use it in my day-to-day JavaScript work. However, even the latest browser versions only support a subset of the ES6 standard and it will probably be quite a while before they … Continue reading Babel + Grunt === ES6 Now!

Installing Redis on a Windows Workstation

Use these instructions at your own risk. As with all installations you should become familiar with the software and ensure it is setup and secured correctly. Recently I’ve been using Redis on some projects to provide a really fast and reliable in-memory, distributed cache and datastore. It’s easy to use and has been a blast … Continue reading Installing Redis on a Windows Workstation

Testing Templated AngularJS Directives

AngularJS is awesome! I've been spending a lot of time lately learning and building applications using the AngularJS framework. I'm definitely not an expert yet, but I'm having a lot of fun! It's a great framework and I really like how they've made testing a first-class feature. Templates with directives Recently I had to create … Continue reading Testing Templated AngularJS Directives

Developer === Tester

That's right. I said it. If you are a software developer, then you are also a software tester. If you care about the quality of the software you are developing then you should be spending a significant amount of your development effort ensuring and verifying that quality. The only way to do that is to … Continue reading Developer === Tester

Problem Sharing ASP.NET Forms Authentication or A Tale of Two Cryptography Cores

We have multiple web applications on our server farm that share forms authentication.  This makes it possible to have a single login page / functionality that can be shared between the applications.  In order to allow the encrypted forms authentication cookie to be shared between these applications the web.config needs to be setup in the … Continue reading Problem Sharing ASP.NET Forms Authentication or A Tale of Two Cryptography Cores

ASP.NET MVC – Why doesn’t my area route registration work?

Also known as watch the precedence order of your registrations! We have recently begun switching our MVC project to leverage the Areas feature in MVC.  This is a big benefit and allows us to organize our application functionally as opposed to by file type.  As an example it allows us to put everything about updating … Continue reading ASP.NET MVC – Why doesn’t my area route registration work?