Welcome to MSDN Blogs
Sign in
|
Join
|
Help
Kanwaljeet Singla's Weblog
This Blog
About
Email
Syndication
RSS 2.0
Atom 1.0
Search
Tags
AdvancedLogging
Appcmd
Configuration
Custom Errors
FastCGI
IIS 7.5
IIS7
MSDeploy
PHP
Tracing
WinCache
Recent Posts
Feature additions and bug fixes coming up in WinCache
Migrating FastCGI configuration from IIS 5.1/6.0 to IIS 7.0/7.5
How WinCache make PHP run faster
FastCGI ISAPI 1.5 Beta for WinXP and Win2K3
Using advanced logging to log custom module data
Archives
October 2009 (1)
September 2009 (2)
April 2009 (3)
March 2009 (1)
February 2009 (1)
January 2009 (2)
December 2008 (2)
June 2008 (3)
February 2008 (2)
December 2007 (2)
July 2007 (2)
June 2007 (1)
May 2007 (2)
April 2007 (1)
February 2007 (2)
December 2006 (2)
November 2006 (2)
August 2006 (3)
June 2006 (3)
New features in configuration system and appcmd in IIS 7.5
Following new features have been added to IIS configuration system and appcmd command line tool in IIS 7.5.
Configuration System
1.
Configuration system tracing and logging
In IIS 7.5, IIS native configuration system can generate trace events capturing all IIS configuration activity. Because all IIS administrative tools (WMI, appcmd, MWA, UI, Powershell etc) call into native configuration system, events are generated irrespective of which administrative tool is used to read/write IIS configuration. Tracing is not enabled by default. You can go to “Application and Service Logs->Microsoft->Windows->IIS-Configuration” in event viewer and enable tracing. IIS generates 4 kinds of events. These are
administrative
,
operational
,
analytic
and
debug
. Right click on areas in event viewer and select “enable log” for categories you want to enable tracing.
2.
Ability to work with multiple .Net versions
IIS configuration system has the ability to work with multiple .net versions. For this configuration system honors metadata
defaultManagedRuntimeVersion
. If set, IIS will use this information to find which machine.config and root web.config it should work against. Default version assumed is v2.0. If you want to make configuration system go against other .net version, you are required to set
defaultManagedRuntimeVersion
metadata. If the configuration path identifies an application, configuration system automatically figures out the version by checking
managedRuntimeVersion
set for the application pool for the application. All administrative tools are updated to allow working with different versions of NetFx.
3.
Shared configuration now can be configured to use polling instead of change notifications to track changes to applicationHost.config file. This can be configured by specifying “
enableUncPolling
” and “pollingPeriod” properties in
configurationRedirection
section. Default value of
enableUncPolling
is false which means the feature is not turned on by default.
4.
“
availableReadableMetadata
” and “
availableWritableMetadata
” metadata properties are available in IAppHostAdminManager, IAppHostElement, IAppHostMethod, IAppHostProperty interfaces. These can be used to find what readable and writable metadata is available for each object.
Appcmd
1. Appcmd now has a
bility to add <clear/> tag in the collections using '~'. Command to clear <error> collection entries in httpErrors section will be following.
appcmd set config /section:httpErrors /~
2. Previously appcmd could only add one type of addElement collection type which limited its utility for authorization section as the addElement could be allow or deny. Now appcmd can be used to add element of a paricular type. Command to add deny entry in authorization section will be as following.
appcmd set config /section:authorization /+deny[verbs='put']
appcmd set config /section:authorization /-deny[verbs='get']
3.
/clr
switch can be used to specify which version of .net framework you want to work against when dealing with machine.config and web.config. If this switch is not specified, version dotnet version 2.0 will be assumed.
appcmd list config /section:profile /clr:4 (or v4 or 4.0).
4.
/admin
switch can be used to map configuration path MACHINE/WEBROOT to administration.config. This enables appcmd to be used against administration.config. So command to read moduleProviders section from administration.config will be
“appcmd list config /section:moduleProviders /admin”
Hope this helps.
Kanwal
Published Wednesday, March 25, 2009 7:01 PM by
kjsingla
Filed under:
Configuration
,
Appcmd
,
IIS 7.5
Comments
No Comments
Anonymous comments are disabled