Base solution for your next web application
Open Closed

Environment Database connection strings #10251


User avatar
0
jdavis01 created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 10.2.0
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .NetCore

So I am setting up a staging server to do some testing before I publish. Which project launchsettings do I need to change the ASPNETCORE_ENIRONMENT variable in order for the build to select the right appsettings.json file with the correct connection string


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team
  • User Avatar
    0
    jdavis01 created

    Hi Ismcagdas, So I understand that microsoft documentation, I have already done this in the Web.MVC project and it doesn't work. My question was should this be done in the Web.Host or Web.Core project as well. I hope this is a better question.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @jdavis01

    You don't have to do anything in Host or Web.Core projects. Could you share what have you done to make the environment staging ?

    Thanks,

  • User Avatar
    0
    jdavis01 created

    This has been resolved.. thanks .

    My only issue now seems to be production server needs the environment variable reset after deployment for some reason..