Jun 09, 2008
MWA (Microsoft.Web.Administration) is pretty popular among developers who wish to read/write IIS configuration because of ease of writing managed code (which enables its use in powershell as well) and also because it provides a more intuitive wrapper...
5 comments
Tags: AhadminIntellisense
Jun 04, 2008
Attachment: AhAdminCodeGeneratorInstall.zip
If you ever write AhAdmin code, this is for you.I have written a tool which generates equivalent JavaScript/C#/VB.Net AhAdmin code for actions done in IIS7 UI. IIS7 configuration system gives access to IIS config files via a set of COM APIs. You can read...
3 comments
Tags: AhadminAhAdminCodeGenerator
May 27, 2008
Dynamic properties feature in IIS7 configurtion system lets you expose dynamic data as configuration system properties. RscaExt.xml which is part of IIS7 has all the RSCA (runtime status and control APIs) functionality exposed as dynamic properties through...
3 comments
Tags: RSCA
Feb 18, 2008
IIS7 custom error module work in SendResponse stage with priority high (priority high in send response actually means lowest priority) which makes it one of the last modules to run in the pipeline. It produces custom errors only if current statusCode...
7 comments
Tags: CustomErrors
Feb 11, 2008
One of the things which was not clear to me when IIS7 configuration system was written was how configuration system merges all the configuration data available and then decide what values are effective for the current request. One of confusions came from...
11 comments
Tags: Configuration system
Dec 30, 2007
Few months ago, I fired procmon and collected all the registry keys IIS7 processes read. I then gathered the information about these registry keys from different people in the team and also collected available information on the internet. I have been...
24 comments
Tags: IIS registry keys
Dec 20, 2007
I started writing an application which uses hostable web core (HWC) functionality of IIS7 and before making it available for download I thought it will be useful to write about HWC in detail. Hostable web core enables processes other than w3wp.exe to...
11 comments
Tags: HWC
Jul 26, 2007
IIS7 configuration system understands machine.config, web.config and applicationHost.config but does not handle administration.config natively. This means reading and writing administration.config is little difficult. If you use AhAdmin directly and call...
4 comments
Tags: Administration.config
Jul 25, 2007
One of the new features in IIS7 in windows server 2008 enable people to extend existing IIS configuration sections. If you have a schema file in schema folder which defines section already defined in IIS_Schema.xml, IIS configuration system will merge...
4 comments
Tags: RSCA
Jun 17, 2007
Here are some of the cool things you can do by piping appcmd commands together in IIS7. Application Pools 1. Recycle all application pools (replace recycle with start/stop to start/stop all apppools) appcmd list apppool /xml | appcmd recycle apppool ...
10 comments
Tags: Appcmd
May 17, 2007
Here are the steps you need to enable tracing for a site using appcmd. 1. Enable tracing for site. 2. Enable tracing for all request paths and for all response codes. 3. Appcmd leaves verbosity to default value “warning”. Get the providers count to change...
1 comments
Tags: AppcmdTracing
May 03, 2007
HttpRedirection module allows you to do client side redirection as per various configuration rules. There are not many changes from what IIS6 had but I thought it will be good to revisit its configuration and behavior in IIS7. Redirection module is not...
10 comments
Tags: HttpRedirection
Apr 15, 2007
Attachment: AppcmdUIInstall.zip
Do you always find yourself using “/?” in appcmd to find what switches you need? Do you always run “appcmd list” commands to see the list of apppools/sites/apps/traces etc before actually running the command? Do you always end up opening schema when working...
12 comments
Tags: AppcmdUIAppcmd
Feb 26, 2007
Continuing my ahadmin drill down, lets see how to use available interfaces to work with section groups, section definitions, locations and metadata. IAppHostConfigFile interface Working with section groups, section definitions and locations require you...
7 comments
Tags: AhadminMicrosoft.ApplicationHost.AdminManager
Feb 25, 2007
The Application Host Administration API (ahadmin.idl) interface library can be accessed using native code and any COM-interop means like script or managed code. This blog post details how to use this interface in scripts (all samples are in javascript...
3 comments
Tags: AhadminMicrosoft.ApplicationHost.AdminManager