473,320 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 2283
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Matt Feinstein | last post by:
Is there an optimal way to apply a function to the elements of a two-d array? What I'd like to do is define some function: def plone(x): return x+1 and then apply it elementwise to a 2-D...
1
by: Neil Zanella | last post by:
Hello, I would like to use CSS to apply a width of 100% to all <input> elements, but to only those that have an type attribute set to "text", without affecting check boxes, radio buttons, etc......
1
by: Steve Pugh | last post by:
I have some styles which IE (Win - tested in 5, 5.5 and 6) is only applying to the first letter of the element. Basic stuff like font-weight and font-size applied to a <p> or <hx> element via...
1
by: Jonathan | last post by:
I have a specific situation where I am applying padding to text inside of a "P" tag, where if the text wraps then the second line of text ignores the padding. Here is a snippet of what I am doing:...
1
by: philjhanna | last post by:
Hi I'm having a problem applying return false to a div via addEventListener. I'm adding this so that I can drag (click-hold-move) over an image. (Its so that I can add zooming to the image)...
1
by: florian.boldt | last post by:
Hi Folks, one of our developers uses a statement with a where clause which usually does not match to any rows. In case of one or more rows found she wrote a an expression in the select clause...
6
by: Orgun | last post by:
Hi, I sent this message to the moderated c++ group too but it is waiting for moderator approval and I wanted to send here too. I am new to Design Patterns. I want to write a simple...
6
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
Hi - I have 4 webservers in my webfarm. All Win2k3 web edition. Before yesterday, none of them were service packed. I have now applied SP2 to two of them, and I'm getting a very weird MSDTC...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.