<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS7 - Configuration &amp; Scripting</title><link>http://forums.iis.net/1046.aspx</link><description>Forum aimed at understanding the system.Webserver or system.ApplicationHost using a text editor or scripting</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>WCF - Enable compression for XML / JSON</title><link>http://forums.iis.net/thread/1925553.aspx</link><pubDate>Fri, 20 Nov 2009 08:53:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925553</guid><dc:creator>LesterDK</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1925553.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1925553</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi once again,&lt;/p&gt;

&lt;p&gt;&amp;nbsp;I have come to my attention that ySlow says my xml responses are not compressed within my restful WCF service.&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;Seen loads of info on creating compression channels etc, but figured IIS7 where the WCF service is hosted should be able to do it by itself via dynamic compression and probably a mimetype.&lt;/p&gt;

&lt;p&gt;Reading other forums some say it can be done, some say it can&amp;#39;t, so I&amp;#39;m seeking The One true answer (besides 42 ofcourse) to this question.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&amp;nbsp;What I do know, or think I know atleast:&lt;/b&gt;&lt;/p&gt;

&lt;pre&gt;Content-Type: application/xml; charset=utf-8&lt;br /&gt;Server: Microsoft-IIS/7.0&lt;/pre&gt;
applicationHost.config seems to be the place to setup this kind of stuff, would rather like it in my web.config tough.
&lt;pre&gt;&amp;nbsp;I got the section&lt;/pre&gt;
&lt;pre&gt;            &amp;lt;dynamicTypes&amp;gt;&lt;br /&gt;                &lt;b&gt;&amp;lt;add mimeType=&amp;quot;application/xml&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;/b&gt;  added by me&lt;br /&gt;                &amp;lt;add mimeType=&amp;quot;text/*&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;                &amp;lt;add mimeType=&amp;quot;message/*&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;                &amp;lt;add mimeType=&amp;quot;application/x-javascript&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;                &amp;lt;add mimeType=&amp;quot;*/*&amp;quot; enabled=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;            &amp;lt;/dynamicTypes&amp;gt; &lt;/pre&gt;
But does no good, in the website that hosts the WCF the following is in the web.config
&lt;pre&gt;&lt;b&gt;&amp;lt;urlCompression doDynamicCompression=&amp;quot;true&amp;quot; /&amp;gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;Seen arguments saying it should be&lt;/pre&gt;
&lt;pre&gt;&lt;b&gt;&amp;lt;urlCompression doDynamicCompression=&amp;quot;false&amp;quot; dynamicCompressionBeforeCache=&lt;/b&gt;&lt;b&gt;&amp;quot;true&amp;quot; /&amp;gt;&lt;/b&gt;&lt;/pre&gt;
&lt;p&gt;but neither work for me.&lt;br /&gt; &lt;br /&gt;So I&amp;#39;m really hoping someone got a clear as day solution to enable my responses to accept compression, maybe even enabling deflate aswell as gzip.&lt;/p&gt;</description></item><item><title>Possible bug: Unable to set the "debug" attribute in the "compilation" section in web.config</title><link>http://forums.iis.net/thread/1924758.aspx</link><pubDate>Sat, 14 Nov 2009 16:41:43 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924758</guid><dc:creator>kevin_k</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1924758.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1924758</wfw:commentRss><description>
&lt;p&gt;
&lt;span class="Apple-style-span" style="background-color:transparent;border-collapse:separate;font-family:&amp;#39;Times New Roman&amp;#39;;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium;"&gt;&lt;span class="Apple-style-span" style="font-family:Tahoma,Arial,Helvetica;font-size:12px;white-space:pre-wrap;"&gt;There seems to be a bug in the APPCMD tool that prevents me from changing the &amp;quot;debug&amp;quot; attribute of the &amp;quot;compilation&amp;quot; section of a web.config file. I can change other attributes such as &amp;quot;batch&amp;quot; and &amp;quot;defaultLanguage&amp;quot; but the &amp;quot;debug&amp;quot; attribute refuses to change.&lt;br /&gt;&lt;br /&gt;For example, the following commands work just fine:&lt;br /&gt;&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:compilation /batch:false&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:compilation /defaultLanguage:&amp;quot;c#&amp;quot;&lt;br /&gt;&lt;br /&gt;But changing the &amp;quot;debug&amp;quot; attribute doesn&amp;#39;t:&lt;br /&gt;&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:compilation /debug:false&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:compilation /debug:true&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve even tried more explicit section paths:&lt;br /&gt;&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:system.web/compilation /debug:false&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:system.web/compilation /debug:true&lt;br /&gt;&lt;br /&gt;I have confirmed this to be the case on IIS7.0 running on Windows 2008 Standard Edition SP2 and IIS 7.5 running on Windows 7 Ultimate Edition.&lt;br /&gt;&lt;p&gt;I also checked the schema file for ASP.NET (C:\Windows\System32\inetsrv\config\schema\ASPNET_schema.xml) and there is no restriction on this setting.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="background-color:transparent;border-collapse:separate;font-family:&amp;#39;Times New Roman&amp;#39;;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium;"&gt;&lt;span class="Apple-style-span" style="font-family:Tahoma,Arial,Helvetica;font-size:12px;white-space:pre-wrap;"&gt;Thanks&lt;br /&gt;Kevin&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br class="Apple-interchange-newline" /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>Change HTTPERR Location </title><link>http://forums.iis.net/thread/1925643.aspx</link><pubDate>Fri, 20 Nov 2009 19:14:53 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925643</guid><dc:creator>vlozupone1</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1925643.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1925643</wfw:commentRss><description>&lt;h1 style="MARGIN:12pt 0in 3pt;"&gt;&lt;span style="mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&lt;font size="5"&gt;&lt;font face="Cambria"&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;If I want to change/add the location, is this valid for IIS 7?&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 style="MARGIN:12pt 0in 3pt;"&gt;&lt;span style="mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&lt;font size="5"&gt;&lt;font face="Cambria"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/h1&gt;
&lt;h1 style="MARGIN:12pt 0in 3pt;"&gt;&lt;span style="mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&lt;font size="5"&gt;&lt;font face="Cambria"&gt;Change HTTPERR Location&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Create a new Datatype called ErrorLoggingDir&lt;/font&gt;&lt;/p&gt;
&lt;table class="MsoNormalTable" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:#cccccc 1pt solid;mso-cellspacing:0in;mso-yfti-tbllook:1184;mso-padding-alt:0in 0in 0in 0in;" cellspacing="0" cellpadding="0" class="MsoNormalTable"&gt;

&lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;"&gt;
&lt;td class="" style="BORDER-RIGHT:#cccccc 1pt solid;PADDING-RIGHT:3.75pt;BORDER-TOP:#cccccc 1pt solid;PADDING-LEFT:3.75pt;BACKGROUND:#cccccc;PADDING-BOTTOM:3.75pt;BORDER-LEFT:#cccccc 1pt solid;PADDING-TOP:3.75pt;BORDER-BOTTOM:#cccccc;"&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;b&gt;&lt;span style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;ErrorLoggingDir&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr style="mso-yfti-irow:1;"&gt;
&lt;td class="" style="BORDER-RIGHT:#cccccc 1pt solid;PADDING-RIGHT:3.75pt;BORDER-TOP:#cccccc 1pt solid;PADDING-LEFT:3.75pt;PADDING-BOTTOM:3.75pt;BORDER-LEFT:#cccccc 1pt solid;PADDING-TOP:3.75pt;BORDER-BOTTOM:#cccccc;BACKGROUND-COLOR:transparent;"&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;LINE-HEIGHT:140%;"&gt;&lt;span style="FONT-SIZE:8.5pt;LINE-HEIGHT:140%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Registry Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="mso-yfti-irow:2;"&gt;
&lt;td class="" style="BORDER-RIGHT:#cccccc 1pt solid;PADDING-RIGHT:3.75pt;BORDER-TOP:#cccccc 1pt solid;PADDING-LEFT:3.75pt;BACKGROUND:#e9e9e6;PADDING-BOTTOM:3.75pt;BORDER-LEFT:#cccccc 1pt solid;PADDING-TOP:3.75pt;BORDER-BOTTOM:#cccccc;"&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;LINE-HEIGHT:140%;"&gt;&lt;span style="FONT-SIZE:8.5pt;LINE-HEIGHT:140%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Data Type: REG_STRING&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="mso-yfti-irow:3;"&gt;
&lt;td class="" style="BORDER-RIGHT:#cccccc 1pt solid;PADDING-RIGHT:3.75pt;BORDER-TOP:#cccccc 1pt solid;PADDING-LEFT:3.75pt;PADDING-BOTTOM:3.75pt;BORDER-LEFT:#cccccc 1pt solid;PADDING-TOP:3.75pt;BORDER-BOTTOM:#cccccc;BACKGROUND-COLOR:transparent;"&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;LINE-HEIGHT:140%;"&gt;&lt;span style="FONT-SIZE:8.5pt;LINE-HEIGHT:140%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Default Value: &lt;i&gt;g:&lt;/i&gt;\logfiles&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="mso-yfti-irow:4;mso-yfti-lastrow:yes;"&gt;
&lt;td class="" style="BORDER-RIGHT:#cccccc 1pt solid;PADDING-RIGHT:3.75pt;BORDER-TOP:#cccccc 1pt solid;PADDING-LEFT:3.75pt;BACKGROUND:#e9e9e6;PADDING-BOTTOM:3.75pt;BORDER-LEFT:#cccccc 1pt solid;PADDING-TOP:3.75pt;BORDER-BOTTOM:#cccccc;"&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;LINE-HEIGHT:140%;"&gt;&lt;span style="FONT-SIZE:8.5pt;LINE-HEIGHT:140%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Range: N/A&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Appcmd help on text string carriage return line feed</title><link>http://forums.iis.net/thread/1925442.aspx</link><pubDate>Thu, 19 Nov 2009 18:50:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925442</guid><dc:creator>brandon.mcgarvey</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1925442.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1925442</wfw:commentRss><description>&lt;p&gt;I am trying to add a carriage return line feed to a string value on my FTP site&amp;nbsp;via appcmd. I&amp;nbsp;am trying&amp;nbsp;to add a banner message like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;%windir%\System32\inetsrv\appcmd.exe set site&amp;nbsp;MyFTPSite /ftpServer.messages.bannerMessage:&amp;quot;Warning! Unauthorized use is strictly prohibited.&amp;quot;&lt;/p&gt;
&lt;p&gt;I wish to have a carriage return, line feed after &amp;quot;Warning!&amp;quot;, but I cannot figure out what escape characters to use for a carriage return, line feed. When I add the welcome message with&amp;nbsp;CR/LF&amp;nbsp;through the IIS MMC, this is how it looks in the applicationHost.config:&lt;/p&gt;
&lt;p&gt;&amp;lt;messages bannerMessage=&amp;quot;Warning!&lt;strong&gt;&amp;amp;#xD;&amp;amp;#xA;&amp;amp;#xD;&amp;amp;#xA;&lt;/strong&gt;Unauthorized use is strictly prohibited.&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any help appreciated. Thanks.&lt;/p&gt;</description></item><item><title>Need Native API to setup my site as Classic Mode in ISS 7</title><link>http://forums.iis.net/thread/1925454.aspx</link><pubDate>Thu, 19 Nov 2009 20:01:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925454</guid><dc:creator>lenininy2k</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1925454.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1925454</wfw:commentRss><description>Hi,

Anybody know how to setup my site as Classic Mode in ISS 7 using Native Calls?

Thanks
Lakshmi</description></item><item><title>Programmatically require SSL in IIS7</title><link>http://forums.iis.net/thread/1925273.aspx</link><pubDate>Wed, 18 Nov 2009 17:18:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925273</guid><dc:creator>aclcarter</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1925273.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1925273</wfw:commentRss><description>&lt;p&gt;Does anyone know how to programmatically set the system.webServer/security/access sslFlags using the Microsoft.Web.Administration classes?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to write some code to automatically install an SSL enabled web application and am having difficulty with this one step. I&amp;#39;ve found elsewhere on this site mvolo&amp;#39;s instructions on binding an SSL certificate to a site using custom configuration methods, but can&amp;#39;t find anywhere instructions on how to modify the sslFlags (short of forking a process to call appcmd, which feels like cheating!).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Many thanks,&lt;/p&gt;
&lt;p&gt;Andy&lt;/p&gt;</description></item><item><title>adminscripts missing</title><link>http://forums.iis.net/thread/1924782.aspx</link><pubDate>Sat, 14 Nov 2009 22:51:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924782</guid><dc:creator>tompark28</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1924782.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1924782</wfw:commentRss><description>&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Dont know if anyone knows of away to replace or find the following file location that should be in the &amp;#39;C:\interpub\&amp;#39; im missing the following sub follder:&lt;/p&gt;
&lt;p&gt;c:\interpub\adminscripts\&lt;/p&gt;
&lt;p&gt;&amp;nbsp;can anyone help me?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>pkgmgr.exe versus ServerManagerCmd.exe</title><link>http://forums.iis.net/thread/1924925.aspx</link><pubDate>Mon, 16 Nov 2009 16:28:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924925</guid><dc:creator>sammy_1</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1924925.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1924925</wfw:commentRss><description>&lt;p&gt;All&lt;/p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I need to automate the install of some features on IIS 7.0 like the Web-Http-Redirect Web-Custom-Logging and so on.&amp;nbsp; &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;W&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;hich API should I use? and why, pkgmgr.exe or ServerManagerCmd.exe? &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;What is the official recommendations from the expert?&lt;/span&gt; 
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I used pkgmgr.exe for long time but now it has been failing silently on some of the systems.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>FTP command filtering using appcmd</title><link>http://forums.iis.net/thread/1925274.aspx</link><pubDate>Wed, 18 Nov 2009 17:24:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925274</guid><dc:creator>brandon.mcgarvey</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1925274.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1925274</wfw:commentRss><description>&lt;p&gt;I am trying to figure out how to add FTP&amp;nbsp;command filters using appcmd.exe. I just flat out do not understand the syntax for the command. The syntax that I believe I need to use is one of these:&lt;/p&gt;
&lt;p&gt;appcmd.exe set site&amp;nbsp;MyFTPSite /ftpServer.security.commandFiltering.[command=&amp;#39;string&amp;#39;].command&lt;/p&gt;
&lt;p&gt;appcmd.exe set site MyFTPSite /ftpServer.security.commandFiltering.[command=&amp;#39;string&amp;#39;].allowed&lt;/p&gt;
&lt;p&gt;My goal is to deny MKDIR command. I tried the command below, but it tells me that it cannot find requested collection element. How do I add an element to the collection. I am familiar with adding collections with &amp;quot;appcmd set config&amp;quot;, but this method doesn&amp;#39;t seem the same.&lt;/p&gt;
&lt;p&gt;appcmd.exe set site MyFTPSite /ftpServer.security.commandFiltering.[command=&amp;#39;MKDIR&amp;#39;].allowed:&amp;quot;false&amp;quot;&lt;/p&gt;
&lt;p&gt;If someone can&amp;nbsp;reply back with an example of the syntax, I&amp;#39;d greatly appreciate it. Thanks.&lt;/p&gt;</description></item><item><title>IIS 7 Kernel Mode Output Caching - Undocumented Behaviou</title><link>http://forums.iis.net/thread/1887522.aspx</link><pubDate>Mon, 15 Dec 2008 01:12:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887522</guid><dc:creator>David Taylor</dc:creator><slash:comments>4</slash:comments><comments>http://forums.iis.net/thread/1887522.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1887522</wfw:commentRss><description>&lt;font size="2"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;After a few days of searching the web and reading articles, I need some help from the IIS team.&lt;/p&gt;
&lt;p&gt;I am basically wondering if it is possible to get the kernel mode output caching to implement the policy specified for a dynamic page on the first rather than the second request.&lt;/p&gt;
&lt;p&gt;If I change applicationHost.config serverRuntime requentHitThreshold=&amp;quot;1&amp;quot;, this will mean that a policy specified for a static page (such as hello.txt) will be implemented correctly; i.e: kernel caching until the page is changed (or caching with a duration of 2 minutes). This is what I expected.&lt;/p&gt;
&lt;p&gt;However even with the requestHitThreshold change, dynamic pages operate differently. It appears the page is first kernel mode cached with a duration of 5 seconds (I can see it in the cache with the 5 second duration), and if it is hit a second time, the policy specified in web.config is then used (such as 2 minute caching, or cache until the page is changed, etc).&lt;/p&gt;
&lt;p&gt;While I do appreciate the intelligence behind your implementation, and it would be the best thing to do 95% of the time....I would like to know if this behaviour can be changed so the policy specified is implemented on the first request for dynamic pages (such as ASMX or ASPX files).&lt;/p&gt;
&lt;p&gt;Thanks for any assistance.&lt;/p&gt;
&lt;p&gt;David Taylor&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Adding New Web Site / Application Pool / FTP Site in VBScript</title><link>http://forums.iis.net/thread/1924568.aspx</link><pubDate>Fri, 13 Nov 2009 01:30:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924568</guid><dc:creator>michaelblitz</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1924568.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1924568</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I created a new site, application pool, and ftp site through inetmgr and then compared a before and after applicationhost.config file.&lt;/p&gt;&lt;p&gt;it added the following: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;add name=&amp;quot;test.acme.com&amp;quot; /&amp;gt; into the &amp;lt;applicationPools&amp;gt;&amp;lt;/applicationPools&amp;gt; tag&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;site name=&amp;quot;test.acme.com&amp;quot; id=&amp;quot;5&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;application path=&amp;quot;/&amp;quot; applicationPool=&amp;quot;test.acme.com&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;virtualDirectory path=&amp;quot;/&amp;quot; physicalPath=&amp;quot;e:\www\LocalUser\test&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/application&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;bindings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;binding protocol=&amp;quot;http&amp;quot; bindingInformation=&amp;quot;*:80:test.acme.com&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/bindings&amp;gt;&lt;br /&gt;&amp;lt;/site&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;location path=&amp;quot;ftp.acme.com/LocalUser/test&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.ftpServer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;security&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authorization&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;remove users=&amp;quot;administrator&amp;quot; roles=&amp;quot;&amp;quot; permissions=&amp;quot;Read, Write&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add accessType=&amp;quot;Allow&amp;quot; users=&amp;quot;test&amp;quot; permissions=&amp;quot;Read, Write&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/authorization&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/security&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/system.ftpServer&amp;gt;&lt;br /&gt;&amp;lt;/location&amp;gt; &lt;/p&gt;&lt;p&gt;I&amp;#39;ve found VBScript code to add an applicationPool and sitename but nothing for location.&amp;nbsp; Can someone point me in the right direction?&amp;nbsp; Also, this script is used to generate a site so the id tag will have to increase by 1 every time I create a site.&amp;nbsp; How can my script account for this as well?&lt;/p&gt;&lt;p&gt;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>How change asp.net version in iis 7.5</title><link>http://forums.iis.net/thread/1924851.aspx</link><pubDate>Mon, 16 Nov 2009 01:28:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924851</guid><dc:creator>yugicm</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1924851.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1924851</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;i just install windows 7, and i got iis 7.5. then i install all of my application software, like sql server 2005 and visual studio 2005. in the beginning all just fine, it seems that the default asp.net configuration is version 2. then i install the .net framework 1.1, because i have an application runs on the fw. now the problem come, everytime i open my project (web app) in&amp;nbsp; visual studio, there&amp;#39;s always warning that my application(web app) configuration is based on version 1.1, then i was asking to change to version 2, i always answer yes, but every time i close and open the application, the same question appear. &lt;/p&gt;&lt;p&gt;i already try to configure in iis. i already set the default website application pool is DefaultAppPool, which was in .net 2 and integrated pipeline. and i also set my application to whether DefaultAppPool or ASP.NET 2.0. but why everytime i open my web application project, there&amp;#39;s always a warning, that my application configuration is using the .net 1.1. is there any other way, how to change this problem. please help. thanks&lt;/p&gt;&lt;p&gt;yugi &lt;br /&gt;&lt;/p&gt;</description></item><item><title>root\MicrosoftIISv2 in IIS 7.0 </title><link>http://forums.iis.net/thread/1908827.aspx</link><pubDate>Wed, 01 Jul 2009 08:25:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908827</guid><dc:creator>vineetd</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1908827.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1908827</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Does the WMI namespace root\\MicrosoftIISv2 exist in IIS 7.0? Do we need to do something special so that it is present on a system or is it not present at all in IIS 7.0??&lt;/p&gt;&lt;p&gt;&amp;nbsp;Please help.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Vineet &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Create website using C# in IIS 7</title><link>http://forums.iis.net/thread/1878141.aspx</link><pubDate>Tue, 02 Sep 2008 06:50:28 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878141</guid><dc:creator>satya.ambatipudi</dc:creator><slash:comments>5</slash:comments><comments>http://forums.iis.net/thread/1878141.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1878141</wfw:commentRss><description>&lt;p&gt;hi all,&lt;/p&gt;&lt;p&gt;how can create website using C# in IIS 7.&lt;/p&gt;&lt;p&gt;i got the code for this.&lt;/p&gt;&lt;p&gt; http://learn.iis.net/page.aspx/285/sample-hosting-provisioning-scenario/#CreateSite&amp;nbsp;&lt;/p&gt;&lt;p&gt;But even i included the namespace web.admin&amp;nbsp; i could not get servermanager class.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Application Pool reset</title><link>http://forums.iis.net/thread/1924158.aspx</link><pubDate>Wed, 11 Nov 2009 00:48:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924158</guid><dc:creator>imperalix</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1924158.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1924158</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m trying to script setting the application pool recycle times.&amp;nbsp; I used the following command.&amp;nbsp; I have noticed that it appends the time and does not override it.&amp;nbsp; Is there a way to override and not append?&amp;nbsp; Thanks.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;%windir%\system32\inetsrv\appcmd.exe set config -section:system.applicationHost/applicationPools /+&amp;quot;[name=&amp;#39;Default&amp;#39;].recycling.periodicRestart.schedule.[value=&amp;#39;01:05:00&amp;#39;]&amp;quot; /commit:apphost &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Backing up IIS 7.5 configuration.</title><link>http://forums.iis.net/thread/1923869.aspx</link><pubDate>Mon, 09 Nov 2009 09:19:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923869</guid><dc:creator>kav</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1923869.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1923869</wfw:commentRss><description>&lt;p&gt;Hi, I would like to know if you can back up the whole of IIS 7.5 configuration settings and simply copy them back to a new windows build.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have Windows 7 x64 and have spent sometime making the configuration changes for multiple sites and ensuring that classic ASP and that the Access JET engine and 32 bit compatibility are all working.&lt;/p&gt;
&lt;p&gt;I probably would struggle changing settings again (finding where to change them) when I do a fresh&amp;nbsp;Windows 7 install. The reason I ask is that Im getting an SSD soon and will be reinstalling Win7 on that.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;nbsp;would like to just copy back&amp;nbsp;the configuration for IIS and have everything running again. 90% of the filepaths will be unchanged.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any help will be great, thx.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Getting the XML Membership Provider to work with Forms Authentication</title><link>http://forums.iis.net/thread/1862279.aspx</link><pubDate>Mon, 21 Jan 2008 20:29:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1862279</guid><dc:creator>drichfield</dc:creator><slash:comments>4</slash:comments><comments>http://forums.iis.net/thread/1862279.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1862279</wfw:commentRss><description>&lt;p&gt;I have followed the instructions&amp;nbsp;in the &amp;quot;How to Take Advantage of the IIS7 Integrated Pipeline&amp;quot; (&lt;a href="http://www.iis.net/articles/view.aspx/IIS7/Extending-IIS7/Getting-Started/How-to-Take-Advantage-of-the-IIS7-Integrated-Pipel"&gt;http://www.iis.net/articles/view.aspx/IIS7/Extending-IIS7/Getting-Started/How-to-Take-Advantage-of-the-IIS7-Integrated-Pipel&lt;/a&gt;)&amp;nbsp;article and I am getting the following error when trying to access .NET users in the ISM:&lt;/p&gt;
&lt;p&gt;&amp;quot;This feature cannot be used because the default provider type could not be determined to check whether it is a trusted provider&amp;quot;.&amp;nbsp; You can use this feature only when the default provider is a trusted provider.&amp;nbsp; If you are a server administrator, you can make a provider a trusted provider by adding the provider type to the trusted providers list in the Administration.config file.&amp;nbsp; The provider has to be strongly typed and added to the GAC.&amp;quot;&lt;/p&gt;
&lt;p&gt;I do get the login page when accessing the app from a web browser, but when I submit the form, I get the following error:&lt;/p&gt;
&lt;p&gt;&amp;quot;Could not load type &amp;#39;AspNetReadOnlyXmlMembershipProvider&amp;#39;.&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am new to .NET providers and would appreciate assistance with getting the XML provider to work.&amp;nbsp; I am running Windows 2008 Standard RC1.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>HELP REMOVING CONFIG FROM APPLICATIONHOST</title><link>http://forums.iis.net/thread/1923225.aspx</link><pubDate>Tue, 03 Nov 2009 14:10:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923225</guid><dc:creator>festivis</dc:creator><slash:comments>5</slash:comments><comments>http://forums.iis.net/thread/1923225.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1923225</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m using appcmd to set config in the applicationHost file for various applications. This works fine. However, I also have scripts that uninstall the applications. I use appcmd delete app &amp;quot;App Name&amp;quot;. The problem is when executing this cmd is does not remove&amp;nbsp;any config that may have been set in the applicationHost file. I noticed when deleting the app in IIS mgmt console it DOES remove any config from the applicationHost file. I also tried using the appcmd clear config with the /delete parameter but I get a &amp;quot;the data is invalid&amp;quot; error.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can anyone help me?&lt;/p&gt;</description></item><item><title>IIS7 &amp; Trend Micro Officescan 8</title><link>http://forums.iis.net/thread/1863387.aspx</link><pubDate>Sat, 09 Feb 2008 22:56:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1863387</guid><dc:creator>Derice</dc:creator><slash:comments>6</slash:comments><comments>http://forums.iis.net/thread/1863387.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1863387</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have instaleld IIS7 on my new Windows Server 2008 server. (Selected all options in the add features)&lt;br /&gt;Works as expected.&lt;/p&gt;
&lt;p&gt;I decided to test Trend Micro Officescan 8 on it by running it&amp;#39;s installer.&lt;br /&gt;The installer completed succesfully.&lt;br /&gt;How ever when I try to open the Trend Micro Officescan 8 webconsole it doesn&amp;#39;t start but prompts me to download a file called cgiChkMasterPwd.exe&lt;br /&gt;This executable isn&amp;#39;t offered for download on my Windows Server 2003 / IIS6 machine.&lt;/p&gt;
&lt;p&gt;Is there an option in IIS7 to run it in IIS6 compatible mode (such as the IIS5 isolation mode in IIS6?) or do I have to wait for Trend Micro to make the Officescan Server version compatible with IIS7?&lt;/p&gt;</description></item><item><title>Two sites with same virtual directory unable to have unique configurations</title><link>http://forums.iis.net/thread/1923451.aspx</link><pubDate>Thu, 05 Nov 2009 04:35:48 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923451</guid><dc:creator>SQLRocks</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1923451.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1923451</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve got two sites on the same IIS7 server and they both have a virtual directory called &amp;quot;photos&amp;quot; which points to the same UNC path and directory. Both sites serve content from the &amp;quot;photos&amp;quot; virtual directory just fine.&lt;/p&gt;
&lt;p&gt;On &amp;quot;Site 1&amp;quot; I want to set the content to expire for the &amp;quot;photos&amp;quot; virtual directory to 20 minutes. When I do that a web.config file is generated in the physical location that maps to the &amp;quot;photos&amp;quot; virtual directory. Now both &amp;quot;Site 1&amp;quot; and &amp;quot;Site 2&amp;quot; have the same 20 minute expiration althugh my intent was NOT to have a 20 minute expiration for the &amp;quot;photos&amp;quot; virtual under &amp;quot;Site 2&amp;quot;.&lt;/p&gt;
&lt;p&gt;I want both sites to share the same virtual directory (and no, it&amp;#39;s not practical to copy the files to different locations) and yet I want each site to have it&amp;#39;s own unique content expiration time. On the surface it appears that this can&amp;#39;t be done.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any way around this issue?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;-Phil&lt;/p&gt;</description></item><item><title>Compression of 404 error text</title><link>http://forums.iis.net/thread/1923450.aspx</link><pubDate>Thu, 05 Nov 2009 04:21:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923450</guid><dc:creator>SQLRocks</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1923450.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1923450</wfw:commentRss><description>&lt;p&gt;I was looking at the compression of content returned from my IIS7 websites and compressions is generally working well EXCEPT for the case of detailed error messages, such as 404 errors. &lt;/p&gt;
&lt;p&gt;The 404 errors have a content-type of &amp;quot;text/html; charset=utf-8&amp;quot;, which is different than most of the content returned by my asp and asp.net pages (&amp;quot;text/html&amp;quot;). &lt;/p&gt;
&lt;p&gt;&amp;nbsp;It seemed it might be just as easy as adding another MIMEtype to account for the utf-8 charset, but alas that doesn&amp;#39;t seem to be doing it for me. Any ideas of what I need to do to get 404 errors to be sent back compressed? &lt;/p&gt;
&lt;p&gt;Here are the current compression settings I have which are working great for everything except the 404 errors: &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;httpCompression directory=&amp;quot;%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scheme name=&amp;quot;gzip&amp;quot; dll=&amp;quot;%Windir%\system32\inetsrv\gzip.dll&amp;quot; dynamicCompressionLevel=&amp;quot;6&amp;quot; staticCompressionLevel=&amp;quot;9&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dynamicTypes&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add mimeType=&amp;quot;text/*&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add mimeType=&amp;quot;text/html; charset=utf-8&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add mimeType=&amp;quot;message/*&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add mimeType=&amp;quot;application/x-javascript&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add mimeType=&amp;quot;*/*&amp;quot; enabled=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dynamicTypes&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;staticTypes&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add mimeType=&amp;quot;text/*&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add mimeType=&amp;quot;text/html; charset=utf-8&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add mimeType=&amp;quot;message/*&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add mimeType=&amp;quot;application/javascript&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add mimeType=&amp;quot;*/*&amp;quot; enabled=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/staticTypes&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/httpCompression&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks, Phil&lt;/p&gt;</description></item><item><title>Remote and automated IIS 7 management from build server - permissions issue</title><link>http://forums.iis.net/thread/1923341.aspx</link><pubDate>Wed, 04 Nov 2009 10:21:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923341</guid><dc:creator>wimdows</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1923341.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1923341</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve posted the following &lt;a href="http://stackoverflow.com/questions/1672751/remote-and-automated-iis-7-management-from-build-server-permissions-issue"&gt;question on StackOverflow&lt;/a&gt;:&lt;br /&gt;&lt;/p&gt;&lt;div class="post-text"&gt;
                &lt;p&gt;Here&amp;#39;s the scenario:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Win2003 Build Server (CCNET)&lt;/li&gt;&lt;li&gt;IIS7 target deployment server&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;The various MSBuild tasks (Sdc.Tasks, MSBuild Community, MSBuild
Extension Pack) for doing this (creating VDirs, setting AppPool
properties) are not suitable for at least one or more of the following
reasons:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;No support for IIS 7.&lt;/li&gt;&lt;li&gt;No possibility to pass domain username/password to perform the operation.&lt;/li&gt;&lt;li&gt;Microsoft.Web.Management.dll is not available on build server.&lt;/li&gt;&lt;li&gt;&amp;#39;Access Denied&amp;#39; error.&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;There are no issues creating Vdirs on IIS 6 - though we&amp;#39;re actually
shelling out to iisvdir.vbs, as using any of the MSBuild task as
described above seem to either not support domain username/password
auth when performing the operation or will simply throw a basic &amp;#39;Access
Denied&amp;#39; message (despite having the appropriate permissions on the IIS
6 metabase).&lt;/p&gt;

&lt;p&gt;Also - bear in mind that the various methods work perfectly on IIS 7
if not specifying a specific domain user/pw as long as the current
authentication context has the correct permissions, but for obvious
reasons we don&amp;#39;t want all of our CCNET build to run in that context.&lt;/p&gt;

&lt;p&gt;I&amp;#39;ve even used psexec.exe to run appcmd.exe on the box remotely,
which also works fine if the current security context has appropriate
permission, but as soon as you specify username/password on psexec, you
get an error message saying &amp;quot;Cannot read configuration file due to
insufficient permissions.&amp;quot; The user specified is a domain account, and
is part of the local Administrators group on the 2008 server.&lt;/p&gt;

&lt;p&gt;Also - I&amp;#39;ve ended up rolling my own RunAs MSBuild task, inheriting
from the Exec task and using programmatic impersonation. I then use
this to call psexec without specifying the username and password in
psexec, but by impersonating when shelling to psexec, but I&amp;#39;m simply
getting an exitcode of 1 - without any more details.&lt;/p&gt;

&lt;p&gt;As you see, I&amp;#39;ve pretty much exhausted all options, or so I reckon.&lt;/p&gt;

&lt;p&gt;If you can think of anything else, or have achieved managing IIS7
remotely, from an automated process on a non IIS7 box (using a specific
non local admin user), please let me know. &lt;br /&gt;&lt;/p&gt;

            &lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>IIS7 w/ Perl for Movable Type 4.25</title><link>http://forums.iis.net/thread/1898577.aspx</link><pubDate>Sun, 29 Mar 2009 21:52:53 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1898577</guid><dc:creator>dabruzere</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1898577.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1898577</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m having a heck of a time getting Movable Type to continue to work properly. I have it all set up working, then all the sudden, I start getting 502 errors; like Perl doesn&amp;#39;t like IIS or something?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not exactly that great with IIS or Perl at this point, but I can manage to get whatever information you may need to help. I provided the error I get from the localhost IE window below.&lt;/p&gt;
&lt;p&gt;Thanks for any help someone can provide.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Damon&lt;/p&gt;
&lt;p&gt;___________________________________________________________________________&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Abbreviated Install steps:&lt;/p&gt;
&lt;p&gt;- Downloaded Fresh MT-4.25-en files&lt;br /&gt;- Created new site folder C:\inetpub\blogsite\&lt;br /&gt;- Copied MT files in to .\mt directory&lt;br /&gt;- (IIS 7) Created new Site (blog.domain.com)&lt;br /&gt;- (IIS 7) In &amp;quot;Handler Mappings,&amp;quot; Created .pl &amp;amp; .cgi Script Maps to perl.exe &amp;quot;%s&amp;quot; %s (Make sure to add exception for ISAPI)&lt;br /&gt;- (IIS 7) Create virtual directory for /mt folder (Point /mt to physical folder location (/mt maps to C:\inetpub\blogsite\mt\)&lt;br /&gt;- (IIS 7) Add permissions for IUSR account with proper permissions (PERMIT: read &amp;amp; execute, List folder content, read, write)&lt;br /&gt;- (MYSQL) In &amp;quot;Catalog,&amp;quot; create new Database Schemata (movabletype)&lt;br /&gt;- (MYSQL) In &amp;quot;User Administration,&amp;quot; give mt_user privileges to the &amp;quot;movabletype&amp;quot; Database Schemata (SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, ALTER, CREATE_TMP_TABLE)&lt;br /&gt;- (IE7) Navigate to url - &amp;quot;http://blog.domain.com/mt/&amp;quot;&lt;br /&gt;- (MT) Go through MT wizard&lt;br /&gt;- (MT) Site was created&lt;/p&gt;
&lt;p&gt;Error Summary&lt;/p&gt;
&lt;h2&gt;HTTP Error 502.2 - Bad Gateway&lt;/h2&gt;
&lt;h3&gt;The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are &amp;quot;&amp;quot;.&lt;/h3&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class="content-container"&gt;
Detailed Error Information
&lt;div id="details-left"&gt;
&lt;table class="" cellspacing="0" cellpadding="0"&gt;

&lt;tr class="alt"&gt;
&lt;th class=""&gt;Module&lt;/th&gt;
&lt;td class=""&gt;CgiModule&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th class=""&gt;Notification&lt;/th&gt;
&lt;td class=""&gt;ExecuteRequestHandler&lt;/td&gt;&lt;/tr&gt;
&lt;tr class="alt"&gt;
&lt;th class=""&gt;Handler&lt;/th&gt;
&lt;td class=""&gt;CGI Script Map&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th class=""&gt;Error Code&lt;/th&gt;
&lt;td class=""&gt;0xc00000fd&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;div id="details-right"&gt;
&lt;table class="" cellspacing="0" cellpadding="0"&gt;

&lt;tr class="alt"&gt;
&lt;th class=""&gt;Requested URL&lt;/th&gt;
&lt;td class=""&gt;http://blog.domain.com:80/mt/mt.cgi&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th class=""&gt;Physical Path&lt;/th&gt;
&lt;td class=""&gt;C:\inetpub\blog.domain.com\mt\mt.cgi&lt;/td&gt;&lt;/tr&gt;
&lt;tr class="alt"&gt;
&lt;th class=""&gt;Logon Method&lt;/th&gt;
&lt;td class=""&gt;Anonymous&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th class=""&gt;Logon User&lt;/th&gt;
&lt;td class=""&gt;Anonymous&lt;/td&gt;&lt;/tr&gt;
&lt;tr class="alt"&gt;
&lt;th class=""&gt;Failed Request Tracing Log Directory&lt;/th&gt;
&lt;td class=""&gt;&lt;a&gt;&lt;font color="#007eff"&gt;C:\inetpub&lt;/font&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;Most likely causes: 
&lt;ul&gt;
&lt;li&gt;The CGI process was shut down or terminated unexpectedly before it finished processing the request. 
&lt;li&gt;The CGI process has a flaw and does not return a complete set of HTTP headers. &lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Things you can try:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Check the event logs on the system to see whether the CGI process is shutting down unexpectedly. 
&lt;li&gt;Troubleshoot the CGI application to determine why it is not sending a complete set of HTTP headers. &lt;/li&gt;&lt;/ul&gt;</description></item><item><title>dontLog</title><link>http://forums.iis.net/thread/1923073.aspx</link><pubDate>Mon, 02 Nov 2009 14:01:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923073</guid><dc:creator>bpw</dc:creator><slash:comments>4</slash:comments><comments>http://forums.iis.net/thread/1923073.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1923073</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to understand the dontLog feature. I&amp;#39;ve&amp;nbsp;switched off logging in certain directories using&amp;nbsp;IIS manager, but they&amp;#39;re still being logged. The web.config in the dontLog directories contains:&lt;/p&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="1"&gt;&lt;font color="#a31515" size="1"&gt;system.webServer&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt; 
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="1"&gt;&lt;font color="#a31515" size="1"&gt;httpLogging&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="1"&gt;&lt;font color="#ff0000" size="1"&gt;dontLog&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt; /&amp;gt;&lt;/p&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="1"&gt;&lt;font color="#a31515" size="1"&gt;system.webServer&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;I also read that I must modify the &amp;#39;applicationHost.config&amp;#39; file at &amp;#39;C:\Windows\System32\inetsrv\config&amp;#39; by setting &amp;#39;overrideModeDefault&amp;#39; to &amp;#39;Allow&amp;#39;. The values in this file that relate to logging are:&lt;/p&gt;
&lt;p&gt;&amp;lt;section name=&amp;quot;httpLogging&amp;quot; overrideModeDefault=&amp;quot;Allow&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;add name=&amp;quot;HttpLoggingModule&amp;quot; image=&amp;quot;%windir%\System32\inetsrv\loghttp.dll&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;httpLogging dontLog=&amp;quot;false&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;add name=&amp;quot;HttpLoggingModule&amp;quot; lockItem=&amp;quot;true&amp;quot; /&amp;gt; &amp;#39; do I need to set this to false?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using AWStats to view the logs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can anyone spot anything wrong with this approach?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;</description></item><item><title>how do I stop and start an FTP site programmatically?</title><link>http://forums.iis.net/thread/1923061.aspx</link><pubDate>Mon, 02 Nov 2009 13:17:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923061</guid><dc:creator>M.P</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1923061.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1046&amp;PostID=1923061</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m using FTP7 (or FTP7.5).&amp;nbsp;I&amp;nbsp;create an FTP site using MWA (C#), but when I try to get (ftpsite is a Site object): &lt;/p&gt;
&lt;p&gt;ftpsite.State&lt;/p&gt;
&lt;p&gt;it fails with exception: The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It also fails on ftpsite.Stop and ftpsite.Start methods, but with no exception message.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also noticed that in applicationHost.config, the attribute &amp;quot;serverAutoStart&amp;quot; has no effect on FTP sites.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So how can I get FTP site state and stop or start it?&lt;/p&gt;</description></item></channel></rss>