How to solve json error on Razor Pages Tutorial Layout stage?

Thel Yadanar Htwe 21 Reputation points
2021-07-16T14:34:16.657+00:00

Can you please help me as i have no experience in coding. I was trying the Razor page115390-layout.jpgs tutorial. In Layout, there is an error.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,239 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,131 questions
{count} votes

Accepted answer
  1. JasonPan - MSFT 4,476 Reputation points Microsoft Vendor
    2021-07-19T01:43:26.49+00:00

    Hi @Thel Yadanar Htwe ,

    According to the error message, we can know that this is caused by a wrong json format in appsetting.json. So we just need to double check and modify.

    You should change your appsetting.json file like below.

    115650-11.png


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,
    Jason


0 additional answers

Sort by: Most helpful