禁用cshtml错误

时间:2015-05-08 23:48:46

标签: umbraco umbraco7

有谁知道如何禁用查看cshtml文件,例如/Views/anything.cshtml?我得到了404,资源无法找到错误信息。 我使用Umbraco 7。

1 个答案:

答案 0 :(得分:0)

不确定你需要什么。但是您可以通过在web.config中定义特定URL来省略特定URL:

<add key="umbracoReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/VSEnterpriseHelper.axd,~/log.aspx,/Views/anything.cshtml" />
相关问题