473,544 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AppFriendlyName not applying

Hi Guys,

I'm trying to set the property of AppFriendlyName to a
IIsWebServerSet ting 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.Cl one();
thePath.Relativ ePath = "IIsWebServer=' W3SVC/3'";
thePath.ClassNa me = "IIsWebServerSe tting";
ManagementObjec t siteSettings = new ManagementObjec t(thePath);

// testAppPool exists, and site is added with name as "ROOT".
theProperties["AppPoolId"].Value = "testAppPoo l";

// Dosen't appear to get applied, name stays as "ROOT".
siteSettings.Pr operties["AppFriendlyNam e"].Value = theDomain;

// This line throws no exceptions.
siteSettings.Pu t();
*************** *************** ***********

Any ideas people?

Dec 30 '05 #1
3 2288
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.n et> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.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?

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 "Applicatio n Name" in the Home Directory
tab using the IIS manager, which displayes appropriately. However, in
this case that's not really an option.


Dec 30 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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 numarray. I intend to treat the function as a variable, so ufuncs are probably not appropriate-- I
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... How can this be accomplished with CSS? Thanks,
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 either a class selector or a straight element selector. Searching for this bug has been somewhat fruitless as all I find are pages talking about the...
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: <style TYPE="text/css" TITLE="patient_info"> div.questionDiv { border: 1px solid #CCCCCC; width:100%; } p.questionHeaderLabel {
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) Adding onmousemove="return false" onmousedown="return false" allows this to happen but I want to add events with addEventListener/attachEvent instead....
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 which evaluates to a "division by zero" on purpose to raise an alarm (dirty) This is the statement: SELECT
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 DeviceManager which is only interested in CD/DVD devices. I want to get the list of CD/DVD devices and "be informed when a disc inserted into a device". I am...
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 error on them now. The error occurs when I attempt a series of SQL statements wrapped in a TransactionScope(). It's executing against a different...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.