且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

布局页面“{path}"找不到

更新时间:2023-11-17 23:39:28

您可能遇到了权限问题.根据您提供的信息,这似乎是无法找到 _Layout.cshtml 文件的最可能原因.

It seems like you probably have a permissions issue. With the info you've given, it seems like the most likely cause of not being able to find the _Layout.cshtml file.

在 Server 2008 和 IIS 7 中,应用程序池具有用于 ACL 的自己的标识(名为 IIS AppPool{App Pool Name}),并且这些标识成为 IIS_IUSRS 组的一部分.此外,您的默认 inetpub/wwwroot 目录将对 IIS_ISRS 组具有读取权限.因此,如果您没有获得所需的权限,我会认为应用程序池实际上并没有以正确的身份运行.

With Server 2008 and IIS 7, application pool's have their own identity used for ACL's (named IIS AppPool{App Pool Name}), and these identities are made part of the IIS_IUSRS group. Also, your default inetpub/wwwroot directory will have read permissions for the IIS_ISRS group. So, if your not getting the permissions you need, I would think that the App pool is not in fact running with the correct identity.

身份可能不正确的一个原因是匿名身份验证用户身份的设置.进入站点(或整个服务器)的身份验证控件并编辑匿名身份验证规则以作为应用程序池身份运行.

One reason the identity may be incorrect is the setting for Anonymous Authentication user identity. Go into the Authentication control for the site (or the whole server) and edit the Anonymous Authentication rule to run as the Application Pool Identity.

这有点猜测,但似乎这个家伙有几乎完全相同的问题.