Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Deploying Search UI to dotnet core environment #76

Description

@frogrammer

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

try to run application in dotnet core environment

Any log messages given by the failure

startup configuration for application does not load in .net core environment.. can provide exact errors if you are unable to replicate. Proposed fix below anyhow.

Expected/desired behavior

successfully load configuration / appsettings

OS and Version?

Linux - Ubuntu 16.04, dotnet core 3.1

Mention any other details that might be useful

In startup.cs if you add the following logic, it will fix the issue
public Startup(IConfiguration configuration)
{
Configuration = configuration;
if(string.IsNullOrEmpty(Configuration["OrganizationName"])) OR A BETTER CHECK IF THE CONFIG LOADED OK
{
var builder = new ConfigurationBuilder()
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddEnvironmentVariables();
Configuration = builder.Build();
}

    }

Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions