title: how to fix "The Development environment shouldn't be enabled for deployed applications"?
body: <p>I'm new to the .NET framework developer. I just deployed my web into the web server through IIS but I'm getting some problems. I can not login and menu that need show my database table doesn't show up.</p>
  <blockquote>
  <p>Error.
  An error occurred while processing your request.
  Request ID: 00-7ebef872d28da233400c7c5880f8e4f2-92d490fdca09490c-00</p>
  </blockquote>
  <blockquote>
  <p>Development Mode
  Swapping to Development environment will display more detailed information about the error that occurred.</p>
  </blockquote>
  <blockquote>
  <p>The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.</p>
  </blockquote>
  <p>I have already changed the environment variable in the web.config</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;environmentVariables&gt;
       &lt;environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" /&gt;
  &lt;/environmentVariables&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I also added a new system variable with</p>
  <blockquote>
  <p>Variable Name: ASPNETCORE_ENVIRONMENT
  Variable Value: Production</p>
  </blockquote>
  <p>But I'm still getting the errors. Could you help me to fix this? Thank you so much for your help.</p>