试图找出为什么 IIS 7 中的站点目录会删除权限?
所以突然间我无法再运行我的网站并出现服务器错误 500.19。事实证明,我丢失了 Web 项目目录中的 IUSR 和 IIS_IUSRS 帐户(或者至少解决了问题)。
我绝对没有在文件夹级别或 IIS 中对权限执行任何操作,并且我所做的唯一可能无法控制的更改是通过 Visual 中的 NuGet 安装 NuGet 包 (structuralmap-mvc3) Studion 2010。
我很好奇它为什么或如何失去权限。我担心的是,还有另一个或更大的问题仍然存在,而且我只知道通过加载 web.config 文件解决了一个问题。
有什么想法吗?
So all of a sudden I couldn't run my website any longer getting server error 500.19. Turned out that I had lost the IUSR and IIS_IUSRS accounts on my web project directory (or at least that resolved the issue).
I definitely didn't do anything with permissions either at a folder level or within IIS, and the only change I had made that could have had control that was out of my hands was installing a NuGet package (structuremap-mvc3) through NuGet in Visual Studion 2010.
I am curious on why or how it could loose permissions. My worries is there is another or larger issue that still has looming issues and I am only aware of the one problem that I resolved with the loading of the web.config file.
Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您(或其他人)可以重新创建该文件夹吗?如果在该文件夹上明确设置了权限,但它被删除/重新创建,它可能会再次继承父文件夹权限。我们通常尝试在父(“网站”)文件夹上设置 IIS 权限,以便所有新创建的文件夹都会继承它们。
Could you (or someone else) have re-created the folder? If permissions were explicitly set on that folder, but it was removed/re-created, it'd probably inherit the parent folders permissions again. We generally try to set IIS permissions on the parent ("Websites") folder so all newly-created folders will inherit them.