paulTownsin

Thursday, 4 February 2021

Setting ASP .Net Core Environment in IIS for each App Pool without resorting to web.config changes

For when you don't want to set the environment variable in the web.config file, because that gets deployed.


Go into configuration editor


In the section choose system.webServer/aspNetCore
and then in the From drop down choose the ApplicationHost.config option


There you can add environmentVariables which need to be

ASPNETCORE_ENVIRONMENT
and
Development or Production




Posted by Paul at 10:16 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2021 (1)
    • ▼  February (1)
      • Setting ASP .Net Core Environment in IIS for each ...
  • ►  2020 (3)
    • ►  May (1)
    • ►  March (1)
    • ►  February (1)
  • ►  2019 (1)
    • ►  June (1)
  • ►  2017 (2)
    • ►  February (2)
  • ►  2016 (2)
    • ►  December (1)
    • ►  March (1)
  • ►  2015 (6)
    • ►  October (1)
    • ►  September (3)
    • ►  February (1)
    • ►  January (1)
  • ►  2014 (1)
    • ►  November (1)
  • ►  2013 (2)
    • ►  November (1)
    • ►  January (1)
  • ►  2012 (9)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (2)
    • ►  April (3)
    • ►  March (1)
  • ►  2011 (7)
    • ►  May (1)
    • ►  April (1)
    • ►  March (5)
Simple theme. Powered by Blogger.