web-config - IIS 7.5 : Setting 'app pool user' as the anonymous user programmatically

标签 web-config iis-7.5

我在IIS 7.5中有一个Web应用程序,它具有使用.net 4的自己的AppPool。

我想使用具有匿名访问权限的功能作为应用程序池标识-通过inetmgr管理单元轻松在GUI中对其进行配置。

有什么办法以编程方式进行此操作,例如通过web.config?

我环顾四周,看来anonymousAuthentication元素可以解决问题,但它没有说明如何以任何重要方式指定应用程序池用户。我尝试将我的匿名用户设置为“IIS APPPOOL/[AppPoolName]”,似乎建议使用here,但没有成功。

关于应该如何配置的任何建议?

最佳答案

仔细看看该链接:http://www.iis.net/ConfigReference/system.webServer/security/authentication/anonymousAuthentication

“如果将此值保留为空(即,username =“”),则匿名身份验证将使用应用程序池标识来身份验证匿名用户”

关于web-config - IIS 7.5 : Setting 'app pool user' as the anonymous user programmatically,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3652729/

相关文章:

asp.net - 即使使用customErrors ="Off"(在ubuntu/mono上),Web.config也不显示远程错误。

asp.net-mvc - 无法使ASP.NET MVC应用重定向到未经授权的用户的错误页面

c# - 将密码加密并存储在 web.config 文件中

asp.net-web-api - 来自 Web.API Controller 和 DirectoryInfo 的访问被拒绝错误

authentication - 如何在IIS7中为特定IP子网启用匿名身份验证,同时又为每个其他IP子网保持基本身份验证?

c# - 从具有有效 URL 的客户端 (?) 检测到潜在危险的 Request.Path 值

asp.net - 替换 web.config 转换中的 IIS 重写规则

asp.net - 自定义 UserControl 未在 ASP.NET 中注册

iis-7.5 - 是否有 IIS Express 7.5 的 64 位版本?

c# - 在 iis 和 asp.net 中支持虚 url 所需的工作流