且构网

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

IIS问题HTTP错误500.19

更新时间:2023-12-05 16:28:28

授予对ApplicationHost.config文件或Web.config的IIS_IUSRS组的读取权限错误消息中指示的文件.即使该位置没有配置文件,工作进程标识(和/或IIS_IUSRS组)也至少需要对该目录具有读取访问权限,以便它可以检查该目录中的web.config文件.如果是UNC共享,则需要以对UNC共享具有足够权限的帐户运行应用程序池,或者使用对共享具有足够权限的用户配置虚拟目录.
Grant Read permission to the IIS_IUSRS group for the ApplicationHost.config file or for the Web.config file indicated in the error message. Even if there is no config file at that location, the worker process identity (and/or the IIS_IUSRS group) needs at least Read access to the directory so that it can check for a web.config file in that directory. If it’s a UNC share, you need to either run your app-pool as an account that has sufficient permission to the UNC share or configure the virtual directory with a user that has sufficient permission to the share.