5
Answers

Error while calling Configuration.GetSection

Rositsa Ruseva

Rositsa Ruseva

2y
2.1k
1

The error that I get is: 

An object reference is required for the non-static field, method, or property 'Configuration.GetSection(string)'

I have the following code:

StripeConfiguration.ApiKey = Configuration.GetSection("Stripe")["ApiKey"];

Answers (5)