简体   繁体   English

在IIS 6.0应用程序池中设置用户帐户

[英]Setting user account in IIS 6.0 application pool

I'm creating a application pool in iis 6.0 using code, but haven't found a way of setting the user account in an application pool (default is network service). 我正在使用代码在iis 6.0中创建应用程序池,但是还没有找到在应用程序池中设置用户帐户的方法(默认为网络服务)。 How do you set the user account that is going to be used in an application pool using C#? 如何使用C#设置将在应用程序池中使用的用户帐户?

You'll have to do an 你必须做一个

InvokeSet("WAMUserName", new Object[] { "username" })

on the ApplicationPool instance 在ApplicationPool实例上

-edit: see this related question: How can I change the username/password of an ApplicationPool in IIS from C#? -edit:看到以下相关问题: 如何从C#中更改IIS中ApplicationPool的用户名/密码?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在IIS 7中以编程方式为自定义身份应用程序池设置用户帐户 - Programmatically set up user account for custom identity application pool in IIS 7 当我更改 IIS 应用程序池身份用户使用自定义帐户时,它会停止应用程序池,即使我再次启动它也是如此 - When I Change the IIS Application Pool Identity User Use Custom Account it stops the Application pool even if I start it again 以指定的.net版本以编程方式创建iis 6.0网站和应用程序池 - programatically create iis 6.0 website and application pool with specified .net version IIS 6.0以编程方式 - 创建虚拟目录时出现问题而不将其设置为应用程序 - IIS 6.0 programmatically - Problem creating virtual directories AND not setting it as a Application 将IIS应用程序池帐户委派给WCF服务调用 - Delegate IIS Application Pool account to WCF service calls 如何在 web 配置中设置我的网站 iis 应用程序池设置? - How set my website iis application pool setting in web config? 将 IIS 应用程序池标识从内置帐户更改为自定义帐户会导致 503 错误 - Changing IIS application pool idenity from built in account to custom account causes 503 error 以编程方式设置IIS 6.0的服务器绑定 - Setting Server Bindings of IIS 6.0 Programmatically 使用 servermanager web 设置项目将应用程序池设置为特定的 iis 应用程序 - Setting application pool to a specific iis application using servermanager web setup project 检查IIS应用程序池的状态 - check the status of IIS Application Pool
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM