[英]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.