title: ASPNETCORE_ENVIRONMENT environment variable to Development Error
body: <p>My project is in .Net Core 1.1 and cosmosDB backend. We are using Auth0 as authentication. After login, user can enter data and save it in there MANAGE PAGE. While saving we are storing user name (most of the time its a Email address) in the same record. Everything working fine. But for some users I'm getting this error,</p>
  
  <blockquote>
    <p>Swapping to Development environment will display more detailed information about the error that occurred.
     Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application.</p>
  </blockquote>
  
  <p>I checked in SO and some other blogs. As they suggest to change the <strong>ASPNETCORE_ENVIRONMENT to Production in lunchSettings.json</strong> in the project.
  But there is no luck. </p>
  
  <p>What I'm doing, everytime I changed my code in development, I commit my code to SVN then Publish it, like everyone do.</p>
  
  <p><strong>Note:</strong> I don't have web.config file and I dont want to add that manually. </p>
  
  <p><a href="https://i.stack.imgur.com/5BMu5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5BMu5.png" alt="the error"></a></p>