iis - 授予权限 IIS 7 Microsoft Windows Server 2008

标签 iis permissions sql-grant

我有一个已部署在 IIS 7 上的 Web 服务。每当客户端调用 Web 服务方法时,都会抛出内部服务器错误(500),我们得到 “未找到来源,但无法搜索部分或全部事件日志。无法访问的日志:安全。” 所以我花了一些时间找出这个错误的原因。 似乎如果您没有 EventLog 注册表项的权限,您将无法创建事件。 您可以转到注册表项,右键单击它,然后单击权限。分配 ASPNET 用户所需的访问权限。 但在 IIS 7 中,没有 ASPNET 那样的用户帐户。我网站的应用程序池位于 ApplicationPoolIdentity 下。所以我的问题是如何向 ApplicationPoolIdentity 帐户授予权限??? 任何帮助将不胜感激。

最佳答案

对于 IIS 中的每个应用程序池,系统都会自动创建一个用户。

例如,to the 将会存在。

Application Pool           User Name
-----------------------------------------------------------------
ASP.NET v4.0            => [IIS APPPOOL\ASP.NET v4.0]
ASP.NET v4.0 Integrated => [IIS APPPOOL\ASP.NET v4.0 Integrated]
DefaultAppPool          => [IIS APPPOOL\DefaultAppPool]
Classic .NET AppPool    => [IIS APPPOOL\Classic .NET AppPool]

如果应用程序池在ApplicationPoolIdentity身份下运行,请向该用户授予权限,一切都会好起来的!

关于iis - 授予权限 IIS 7 Microsoft Windows Server 2008,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11658106/

相关文章:

debugging - 是否可以从同一网络上的另一台计算机访问 Azure 模拟器?

security - 配置 IIS 服务器以使用 "Content-Security-Policy" header

ubuntu - EFS 挂载失败并出现 mount.nfs4 : access denied by server

python - 如何更改 Google 表格电子表格的所有者?

oracle - 如何在oracle sql 12.2.0.1.0中授予引用?

mysql - 如何只允许一个用户访问数据库?

MySQL 为新用户授予权限会删除登录的能力

c# - MVC Controller下的MVC Web Application项目

c# - 了解模拟权限

windows - 删除失去所有者的文件夹