Kanwaljeet Singla's Blog Posts

GenSCode updated to help use AhAdmin in C#, JavaScript

As promised in my previous post , I updated genscode tool to provide intellisense for AhAdmin code in C# and JavaScript. GenSCode now accepts an optional codetype switch which can be AhAJavaScript to help use AhAdmin in JavaScript, AhACSharp to help use...

Enabling intellisense for AhAdmin code in scripts

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...

Tool to generate AhAdmin code for actions in IIS7 UI

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...

Exposing runtime data from IIS worker processes

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...

What to expect from IIS7 custom error module

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...

How configuration system merges sections

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...

List of registry keys affecting IIS7 behavior

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...

Ins & Outs of hostable web core

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...

How to read/write administration.config

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...

Working with RSCA using configuration APIs

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...

Things you can do by piping appcmd commands

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 ...

Steps to enable tracing using appcmd

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...

Client-side redirection using HttpRedirection module

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...

AppcmdUI - appcmd command autocompletion tool

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...

Using ahadmin to read/write IIS configuration - Part 2

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...

1 2  Next »

Page view counter