Jun 15, 2008
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...
3 comments
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...
4 comments
Filed under: JavaScript, Ahadmin, intellisense, Microsoft.ApplicationHost.AdminManager
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
Filed under: Ahadmin, ScriptWriter, AhAdminCodeGenerator
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...
2 comments
Filed under: GetCustomData, RSCA, GL_RSCA_QUERY, base64encode
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...
4 comments
Filed under: IIS News, IIS News Item
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...
10 comments
Filed under: IIS News, IIS News Item
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...
21 comments
Filed under: IIS News, IIS News Item
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...
8 comments
Filed under: IIS News, IIS News Item
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
Filed under: IIS News Item
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
Filed under: RSCA, rscaext.xml
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 ...
7 comments
Filed under: appcmd xml, appcmd piping
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...
0 comments
Filed under: Appcmd, freb, tracing
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...
6 comments
Filed under: system.webServer/httpRedirect, Redirection, HttpRedirection
Apr 14, 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...
11 comments
Filed under: AppcmdUI, Appcmd
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...
1 comments
Filed under: Ahadmin, Microsoft.ApplicationHost.AdminManager, IAppHostLocationPath, IAppHostSectionDefinition, IAppHostConfigFile