Hi Guys,
I'm trying to set the property of AppFriendlyName to a
IIsWebServerSetting class in an IIsWebServer. However, when I take a
look in IIS manager, under the AppPool tree it just says "ROOT" instead
of the name I have specified.
*****************************************
string theDomain = "test.com";
// Default path specifies server and service.
ManagementPath thePath = _defaultPath.Clone();
thePath.RelativePath = "IIsWebServer='W3SVC/3'";
thePath.ClassName = "IIsWebServerSetting";
ManagementObject siteSettings = new ManagementObject(thePath);
// testAppPool exists, and site is added with name as "ROOT".
theProperties["AppPoolId"].Value = "testAppPool";
// Dosen't appear to get applied, name stays as "ROOT".
siteSettings.Properties["AppFriendlyName"].Value = theDomain;
// This line throws no exceptions.
siteSettings.Put();
*****************************************
Any ideas people?