﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>C-J Berg commented on I hate IIS today</title><description>What I meant was that it's not a standard section in IIS7; you used the standard name for IIS6 (hence the "misspelled").
  
  
Anyhow, if you want to manipulate the handlers section, Microsoft provides an assembly for that purpose: Microsoft.Web.Administration.dll (found in %SystemRoot%\System32\InetSrv). Its ServerManager lets you read the app's host config, and you can also update and save it. (It can also be used to control any other aspect of IIS7, so you no longer need to use WMI/ADSI to configure sites.)
</description><link>http://ayende.com/3360/i-hate-iis-today#comment9</link><guid>http://ayende.com/3360/i-hate-iis-today#comment9</guid><pubDate>Tue, 10 Jun 2008 22:06:19 GMT</pubDate></item><item><title>Ayende Rahien commented on I hate IIS today</title><description>Damn!
  
You are correct.
  
Thanks!
</description><link>http://ayende.com/3360/i-hate-iis-today#comment8</link><guid>http://ayende.com/3360/i-hate-iis-today#comment8</guid><pubDate>Tue, 10 Jun 2008 21:20:21 GMT</pubDate></item><item><title>Ricardo Stuven commented on I hate IIS today</title><description>&gt; And I _am_ using system.webServer/handlers
  
  
Your code and the error message say: "system.webServer/httpHandlers"
</description><link>http://ayende.com/3360/i-hate-iis-today#comment7</link><guid>http://ayende.com/3360/i-hate-iis-today#comment7</guid><pubDate>Tue, 10 Jun 2008 21:04:49 GMT</pubDate></item><item><title>Ayende Rahien commented on I hate IIS today</title><description>That is not what I want, I want to read the data from the IIS7 data, in integrated mode.
  
And I _am_ using system.webServer/handlers, but that is not readable, unfortunately.
</description><link>http://ayende.com/3360/i-hate-iis-today#comment6</link><guid>http://ayende.com/3360/i-hate-iis-today#comment6</guid><pubDate>Tue, 10 Jun 2008 20:18:46 GMT</pubDate></item><item><title>Ayende Rahien commented on I hate IIS today</title><description>C-J Berg,
  
Um, no, it _is_ a standard section, and notice what I am trying to do:
  
_Microsoft.Web.Administration.WebConfigurationManager_, this is using the IIS7 API, and I am trying to read the IIS 7 data.
  
</description><link>http://ayende.com/3360/i-hate-iis-today#comment5</link><guid>http://ayende.com/3360/i-hate-iis-today#comment5</guid><pubDate>Tue, 10 Jun 2008 20:18:01 GMT</pubDate></item><item><title>Ricardo Stuven commented on I hate IIS today</title><description>For backward compatibility, you should change to "Classic" ASP.NET integration mode... or keep it "Integrated" and change the config file (system.web/httpHandlers -&gt; system.webServer/handlers)
  
  
See http://learn.iis.net/page.aspx/243/aspnet-integration-with-iis7/
</description><link>http://ayende.com/3360/i-hate-iis-today#comment4</link><guid>http://ayende.com/3360/i-hate-iis-today#comment4</guid><pubDate>Tue, 10 Jun 2008 19:18:33 GMT</pubDate></item><item><title>C-J Berg commented on I hate IIS today</title><description>So you are trying to read a non-standard section (or misspelled, but IIS cannot know that) that's not declared in configSections, and you then get upset because IIS tells you so, in plain english even? :-)
  
  
Try this:
  
WebConfigurationManager.GetSection("system.webServer/handlers");
</description><link>http://ayende.com/3360/i-hate-iis-today#comment3</link><guid>http://ayende.com/3360/i-hate-iis-today#comment3</guid><pubDate>Tue, 10 Jun 2008 19:16:01 GMT</pubDate></item><item><title>Ayende Rahien commented on I hate IIS today</title><description>IIS7 
</description><link>http://ayende.com/3360/i-hate-iis-today#comment2</link><guid>http://ayende.com/3360/i-hate-iis-today#comment2</guid><pubDate>Tue, 10 Jun 2008 16:58:13 GMT</pubDate></item><item><title>Joao Braganca commented on I hate IIS today</title><description>That should be system.webServer/handlers for IIS7 or system.web/httpHandlers for IIS6.
</description><link>http://ayende.com/3360/i-hate-iis-today#comment1</link><guid>http://ayende.com/3360/i-hate-iis-today#comment1</guid><pubDate>Tue, 10 Jun 2008 16:52:50 GMT</pubDate></item></channel></rss>