在IIS7中设置处理程序属性

在使用appcmd执行以下命令时:

set config -section:system.webServer/handlers /"[name='FCGIEcho',path='*.exe',verb='*']".ResponsebufferLimit:0 

我收到错误消息:

 ERROR ( message:Malformed collection indexer; format is [@position,name='value', name2='value2',...]. The @position specifier is optional, and [can] be '@start', '@en d', or '@N' where N is a numeric index into the collection. ) 

我已经尝试过所有我能想到的双引号。

这是在这里提到的一个有效的属性:

http://www.iis.net/ConfigReference/system.webServer/handlers/add#005

我会很感激任何明白这个语法的人的帮助。

在咨询IIS小组后,答案在这里http://www.coastrd.com/cgioniis7

以防万一以上链接死亡。

用这个:

appcmd.exe set config /section:handlers"/[name='FCGIEcho'].ResponseBufferLimit:0"

对于configuration中的网站特定更改,它将删除处理程序模块“WebDAV”

appcmd set config "sitename" /section:system.webServer/handlers "/-[name=WebDAV]"