I am building an app in blazor using asp.net core 3.0, and I am new in using this framework, I am trying to access an value from appsetting.json into the .razor extension file.

I have added this reference at the top.

```
@using Microsoft.Extensions.Configuration
@inject IConfiguration Configuration

const int appsetting_value = Configuration["guidID"];

```

and I get error under Configuration["guidID"] saying: "a field initializer cannot reference the non-static field method or property.

Can any one help me with the solution will be much appricated.