Application configuration in .NET Core – Part 1

.NET Core has a new way of working with configuration that is much more flexible than the way that previous versions of .NET have. It allows you to: Pull configuration from multiple sources and bring it in to one place. Easily map that configuration information into classes to make access easier. Override configuration from previous […]

Previewing Config Transforms

Curiously, I didn’t know about this until recently and it is such a useful thing too. You can preview the results of your configuration transformation from within Visual Studio. First of all, right click the transform file and select “Preview Transform” Then it will show you the differences between the original web.config file and the […]

aspnet_regiis “Could not load file or assembly ‘SimpleAuthentication.Core’ or one of its dependencies.”

I was recently following Jouni Heiknieme’s blog post on Encrypting connection strings in Windows Azure web applications when I stumbled across a problem. The issue was that I wasn’t encrypting the connectionStrings section, I was encrypting a custom section (one provided by SimpleAuthentication). And in order to encrypt that section, aspnet_regiis needs access to the […]

Xander.PasswordValidator – The config file

Earlier in this series I introduced the config file, but I didn’t say much about it other that show an example. In this post I’ll go in to more detail. Defining the config section To define the section: <configSections><!– Set up other config sections here—>   <sectionGroup name="passwordValidation">      <section name="rules" type="Xander.PasswordValidator.Config.PasswordValidationSection, Xander.PasswordValidator, Version=, Culture=neutral, PublicKeyToken=fe72000dffcf195f" allowLocation="true" […]