You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the following code from Startup.cs : builder.AddJsonFile("secrets.json", optional: true, reloadOnChange: true);
It should be around line 49, inside the if (env.IsDevelopment()) statement.
Purpose
This code was added to address an issue that was only experienced by one dev (acatchpole). This fix was not known to be required for running this application anywhere other than that one dev's local machine. Once that dev has offboarded from Sustainment, this change should be undone as it is no longer needed.
Acceptance Criteria
The code statement has been removed
The issue described in initial context does not exist for any other team member
Additional context
This was added because for one dev, the Connection String in secrets.json was no longer being loaded into the Configuration Object. Then, when the first database operation is attempted ( context.Database.Migrate(); ), the app crashes with the error "Host can't be null". It is unknown why this issue started and why doing everything short of reformatting the computer did not fix this issue, given it works for everyone else and WAS working for the dev.
The text was updated successfully, but these errors were encountered:
Describe the task
Remove the following code from Startup.cs :
builder.AddJsonFile("secrets.json", optional: true, reloadOnChange: true);
It should be around line 49, inside the
if (env.IsDevelopment())
statement.Purpose
This code was added to address an issue that was only experienced by one dev (acatchpole). This fix was not known to be required for running this application anywhere other than that one dev's local machine. Once that dev has offboarded from Sustainment, this change should be undone as it is no longer needed.
Acceptance Criteria
Additional context
secrets.json
was no longer being loaded into the Configuration Object. Then, when the first database operation is attempted (context.Database.Migrate();
), the app crashes with the error "Host can't be null". It is unknown why this issue started and why doing everything short of reformatting the computer did not fix this issue, given it works for everyone else and WAS working for the dev.The text was updated successfully, but these errors were encountered: