Kanwaljeet Singla's Blog Posts

Tool to generate strongly typed classes for configuration sections

I wrote a simple tool to generate strongly typed classes for IIS configuration sections which can then be used with MWA to enable intellisense. This tool should be able to generate very logical intuitive type names in most cases. Generated code is similar...

MWA and intellisense for configuration sections

Microsoft.Web.Administration (MWA) returns generic ConfigurationSection, ConfigurationElementCollection, ConfigurationElement classes for dealing with different configuration sections. Using these classes directly requires you to remember attribute/collection...

Response caching in IIS7

IIS caches everything it can to save CPU cycles wherever possible. IIS6 had user-mode file cache, token cache, URI cache, metadata cache and kernel-mode http.sys response cache. These caches are mostly unchanged in IIS 7.0 other than following changes...

Feature delegation of custom module in UI

I was at TechEd developers last week and one question that came up was what it takes for custom modules to show up in "Features Delegation" UI. I had image copyright walkthrough setup on the machine and in spite of having the custom schema xml and <section>...

What notifications are delivered to IIS7 native modules

Here is the output of getmreg tool for all the modules listed under <system.webServer/globalModules> section in IIS7 full install. This tells what notifications are delivered to native modules shipped with IIS7. 1. UriCacheModule - getmreg.exe...

Tool to find native module's pipeline events registration (source code)

// // Filename - getmreg.cxx // // Build this as an executable. // Keep this exe and module dll // in the same folder // // Run using // getmreg.exe <path to module> // // This tool uses hostable web core functionality // of IIS7. So this will only...

Sample forms authentication test in C#

This sample test is doing the following: 1. Sending request to a page which requires forms authentication. This results in 302 to login page. 2. Send request to login page. 3. Parse response from 2 and create response entity containing username/password...

Execution order of modules in IIS7

Each request received by IIS 7.0 goes through multiple stages in the IIS request pipeline (read more about request pipeline here ). In IIS, request processing move from one stage to the next stage in a fixed sequence. If any of the modules in system.webServer...

Changes to compression in IIS7

Compression module provides IIS the capability to serve compressed responses to compression enabled clients. Clients which can accept compressed responses send Accept-Encoding header indicating compression schemes they can handle. If IIS can compress...

« Previous  1 2 3

Microsoft Communities