Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 处理请求时发生未处理的异常'/Views/Shared/_Layout.cshtml';_.net_Core - Fatal编程技术网

.net 处理请求时发生未处理的异常'/Views/Shared/_Layout.cshtml';

.net 处理请求时发生未处理的异常'/Views/Shared/_Layout.cshtml';,.net,core,.net,Core,处理请求时发生未处理的异常 InvalidOperationException:以下部分已定义,但尚未由“/Views/Shared/_Layout.cshtml”页面呈现:“样式”。若要忽略未渲染的节,请调用IgnoreSection(“sectionName”) 在我的应用程序中更改页面时,我面临一个问题,我不知道如何解决它 Meu_布局estáassim: @RenderSection("Scripts", required: false) O解决问题的方法,O正确的形式: @Rende

处理请求时发生未处理的异常

InvalidOperationException:以下部分已定义,但尚未由“/Views/Shared/_Layout.cshtml”页面呈现:“样式”。若要忽略未渲染的节,请调用IgnoreSection(“sectionName”)

在我的应用程序中更改页面时,我面临一个问题,我不知道如何解决它

Meu_布局estáassim:

@RenderSection("Scripts", required: false)

O解决问题的方法,O正确的形式:

@RenderSection("scripts", required: false)
@RenderSection("Styles", required: false)