question

ThelYadanarHtwe-6211 avatar image
0 Votes"
ThelYadanarHtwe-6211 asked ThelYadanarHtwe-6211 commented

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

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.


dotnet-runtimedotnet-aspnet-core-razor
layout.jpg (52.2 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

According to the error message the appsetting.json file has invalid syntax. Can you share the appsetting.json file?

1 Vote 1 ·

Thank You for reply. Here it is. 115565-razorpages-error.png


0 Votes 0 ·

1 Answer

JasonPan-MSFT avatar image
0 Votes"
JasonPan-MSFT answered ThelYadanarHtwe-6211 commented

Hi @ThelYadanarHtwe-6211 ,

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



11.png (32.6 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank You for reply. I debugged and can host the website. However it doesn't show the create edit delete on website. So i made a new project. There seems to be error in scaffolding movies. I will try again.

0 Votes 0 ·