471,326 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,326 software developers and data experts.

AppFriendlyName not applying

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?

Dec 30 '05 #1
3 2239
Another thaught, the actual site description isn't being set either.
Does anybody know what property I should use for that?

Dec 30 '05 #2

"Nick" <ni**@renhome.net> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Another thaught, the actual site description isn't being set either.
Does anybody know what property I should use for that?


Did you refresh the view in IIS Manager?

Willy.
Dec 30 '05 #3
Yeah, I've even added additional sites to the testAppPool using my
code, however they all display as "ROOT"; for example...

[ - ] Appliction Pools
| [ - ] DefaultAppPool
| |------ Default Application
| [ - ] testAppPool
| |------ ROOT
| |------ ROOT

I can successfully enter an "Application Name" in the Home Directory
tab using the IIS manager, which displayes appropriately. However, in
this case that's not really an option.

Nick

Dec 30 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Matt Feinstein | last post: by
6 posts views Thread by =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.