0
我正在使用代碼在iis 6.0中創建應用程序池,但尚未找到在應用程序池中設置用戶帳戶的方法(默認爲網絡服務)。如何使用C#設置要在應用程序池中使用的用戶帳戶?在IIS 6.0應用程序池中設置用戶帳戶
我正在使用代碼在iis 6.0中創建應用程序池,但尚未找到在應用程序池中設置用戶帳戶的方法(默認爲網絡服務)。如何使用C#設置要在應用程序池中使用的用戶帳戶?在IIS 6.0應用程序池中設置用戶帳戶
你必須對ApplicationPool實例做一個
InvokeSet("WAMUserName", new Object[] { "username" })
-edit:看到此相關的問題:How can I change the username/password of an ApplicationPool in IIS from C#?