c# - What is the Correct process for publishing .net Core to IIS 8.0 and having the ASPNETCORE_ENVIRONMENT value correctly recognized? -


having spent few days @ , following "official" documentation process of publishing iis.

https://docs.microsoft.com/en-us/aspnet/core/publishing/iis

and through many derivative blog posts this.

i'm stumped. far can tell i've followed correct steps, when debugging aspnetcore_environment picked up. on moving iis defaults "production".

i feel dario's pain asking question: how set aspnetcore_environment considered publishing asp.net core application? loads of cool , interesting ideas, none of them work unless following :-(


ms documents excellent walking through deployment process forget mention on setting target website on iis need fiddle application pool settings bit more explicitly stated.

if scroll down documents https://docs.microsoft.com/en-us/aspnet/core/publishing/iis "deploy application" section, follow through setup instructions, when reach applicationpool configuration set "no managed code" option. right-click on newly created pool advanced settings; in process model section find load user profile , set true.

this should allow .net core app access environment variables need...


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -