2010-09-06 81 views
5

我在IIS 7.5中拥有自己的应用程序池的web应用程序使用.NET 4IIS 7.5:设置“应用程序池用户作为匿名用户编程

我想使用具有匿名访问的的特征应用程序池标识 - 可以通过inetmgr管理单元在GUI中轻松配置。

有没有什么办法做到这一点编程,例如通过web.config?

我环顾四周,看起来anonymousAuthentication元素有窍门,但它没有解释如何以任何重要的方式指定应用程序池用户。我尝试将我的匿名用户设置为'IIS APPPOOL/[AppPoolName]',好像是建议here,但没有成功。

任何有关如何配置它的建议?

回答

3

对于懒惰(我)

<system.webServer> <security> <authentication> <anonymousAuthentication userName="" /> </authentication> </security> </system.webServer>

相关问题