From 29eb9e659bbb766e9922a6418a0ac523907437de Mon Sep 17 00:00:00 2001 From: Sergey Date: Tue, 14 Aug 2012 17:53:32 +0300 Subject: [PATCH] [WebsitePanel.Setup] CreateIIS7ApplicationPool - ProcessModel.LoadUserProfile = true; --- .../Sources/WebsitePanel.Setup/Common/WebUtils.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/WebsitePanel.Installer/Sources/WebsitePanel.Setup/Common/WebUtils.cs b/WebsitePanel.Installer/Sources/WebsitePanel.Setup/Common/WebUtils.cs index c3a92a05..d7566462 100644 --- a/WebsitePanel.Installer/Sources/WebsitePanel.Setup/Common/WebUtils.cs +++ b/WebsitePanel.Installer/Sources/WebsitePanel.Setup/Common/WebUtils.cs @@ -864,12 +864,13 @@ namespace WebsitePanel.Setup ServerManager serverManager = new ServerManager(); ApplicationPool pool = serverManager.ApplicationPools.Add(name); - if (!String.IsNullOrEmpty(username)) - { - pool.ProcessModel.IdentityType = ProcessModelIdentityType.SpecificUser; - pool.ProcessModel.UserName = username; - pool.ProcessModel.Password = password; - } + if (!String.IsNullOrEmpty(username)) + { + pool.ProcessModel.IdentityType = ProcessModelIdentityType.SpecificUser; + pool.ProcessModel.UserName = username; + pool.ProcessModel.Password = password; + pool.ProcessModel.LoadUserProfile = true; + } else { pool.ProcessModel.IdentityType = ProcessModelIdentityType.NetworkService; @@ -961,6 +962,7 @@ namespace WebsitePanel.Setup pool.ProcessModel.IdentityType = ProcessModelIdentityType.SpecificUser; pool.ProcessModel.UserName = username; pool.ProcessModel.Password = password; + pool.ProcessModel.LoadUserProfile = true; } else {