Hello, everyone, I have to use this code to get value from the appsetting.json file and this is my code but I have faced an error. Please check this.
const string endpointSecret = _config["St:Secret"];
The expression being assigned to 'endpointSecret' must be constant - Error

Jignesh KumarRank #91 · 22.9K reputationPosted Dec 6, 2021, 6:56 AM EST
Girija D21 reputationPosted Dec 6, 2021, 5:53 AM EST