Posts

Showing posts from January 22, 2019

除雪車

Image
除雪車 (じょせつしゃ)は、積雪の多い地区で、道路や鉄道線路の除雪を行う車両。雪を掻き分けたり飛ばしたりする。 自動車に分類される除雪車 多くは大型特殊自動車もしくは特種自動車で、国道などの工事事務所やネクスコに所属する。除雪機。冬季作業車両を参照。 鉄道...

ASP.NET Core web service does not load appsettings.json into configuration

Image
7 1 I have an ASP.NET Core 2.1 Web Application with Razor Pages which has AAD authentication information defined in the appsettings.json file (courtesy of the default application template - see below on how I got there). However, when trying to configure the authentication in Startup.cs the configuration does not have any of the config values from my appsettings.json . If I inspect the IConfiguration object in the debugger then it appears to only have the environment variable configurations: Here's the Startup.ConfigureServices method where the issue lies: public void ConfigureServices(IServiceCollection services) services.Configure<CookiePolicyOptions>(options => // This lambda determines whether user consent for non-essential cookies is needed for a given request. options.CheckConsentNeeded = context => true; options.MinimumSameSitePolicy = SameSiteMode.None; ); services.AddAuthentication(AzureADDefaults.AuthenticationScheme) .AddAzureAD(opti...