This post originated from an RSS feed registered with .NET Buzz
by Doug Thews.
Original Post: Accessing IIS App Name
Feed Title: IlluminatiLand
Feed URL: http://apps5.oingo.com/apps/domainpark/domainpark.cgi?client=netw8744&s=JETBRAINS.COM
Feed Description: A technology blog for people enlightened enough to think for themselves
A friend of mine asked me about how he could get access to the IIS App Name - the value that you set to an IIS application using the IIS Manager MMC snap-in. At first, I thought it would be part of the AppDomain class (possibly FriendlyName), but that turns out to be just the unique value generated by .NET as it sets up AppDomains and Applications within the domain.
Someone else pointed out a way to access the IIS Metabase directly using the System.DirectoryServices namespace, but I was hoping that there was some other way to do it without having to iterate through the metabase. I'll keep poking around, but if you've got a technique, I'd certainly like to hear about it.