There are two methods to retrieve our values, string dbConn = configuration.GetSection("MySettings").GetSection("DbConnection").Value; string dbConn2 = configuration.GetValue<string>("MySettings:DbConnection");