Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Could not find content root folder! - Trying to Resolve #5421


User avatar
0
maharatha created

I tried resolving : <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-templates/issues/43#issuecomment-401640552">https://github.com/aspnetboilerplate/as ... -401640552</a>

But now after deployment the connection string for the secondary database is being picked up from appsettings.json instead of appsettings.production.json

Do we have a solution to this problem ?


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/6eedd8a06a0358b089beb669c20e86173646fa11/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/Configuration/AppConfigurations.cs#L17">https://github.com/aspnetzero/aspnet-ze ... ons.cs#L17</a>

    The Get method of AppConfigurations needs to pass the environmentName. E.g. Production