<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>The Way I See It</title><link>http://blogs.msdn.com/vijaysk/default.aspx</link><description>&lt;H3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Vijayshinva Karnure&lt;/H3&gt;</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/msdn/vijaysk" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>IIS 7 Tip # 11 You can restrict SSL to only the Control Channel on FTPS</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/5Yvf5gVOJaY/iis-7-tip-11-you-can-restrict-ssl-to-only-the-control-channel-on-ftps.aspx</link><pubDate>Tue, 07 Jul 2009 23:04:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9823228</guid><dc:creator>vijaysk</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9823228.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9823228</wfw:commentRss><description>&lt;p&gt;The File Transfer Protocol (FTP) has been around even before I was born :) It is a good protocol for transferring files across the network but has one major flaw. If you use authentication it sends the password in a Base64 encoded format over the wire. If someone intercepts this he/she can easily decode the password. So if someone intercepts the traffic for your FTP site that allows a user to write files he/she can get access to an username and password that has write permissions on the server.&lt;/p&gt;  &lt;p&gt;FTPS (FTP-Secure) address this flaw. FTPS allows you to use TLS or SSL cryptography to encrypt the data that is being transferred.&amp;#160; &lt;/p&gt;  &lt;p&gt;With Windows 2008 the FTP service was rewritten to support FTPS and shipped as an extension for IIS 7.0. Earlier versions of IIS only support FTP.&lt;/p&gt;  &lt;p&gt;With FTPS you no longer have to worry about someone intercepting your password because of the encryption. But encryption comes with a performance overhead. (Consider situations where users frequently transfer files in 100s of MBs to the server all that has to go through en/decryption)&lt;/p&gt;  &lt;p&gt;The best thing about the IIS FTPS extension is that you can control the encryption levels.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip11YoucanrestrictSSLtoonlytheContr_E1FF/ftps_2.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ftps" border="0" alt="ftps" src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip11YoucanrestrictSSLtoonlytheContr_E1FF/ftps_thumb.jpg" width="594" height="625" /&gt;&lt;/a&gt;&amp;#160; &lt;/p&gt;  &lt;p&gt;The FTP (even FTPS) protocol uses two channels(basically two ports) to communicate with the server. The Control Channel is used to transfer the commands (it also carries the credentials) and the Data Channel to transfer the files.&lt;/p&gt;  &lt;p&gt;In situations where protecting just the password is enough and you are not concerned about the content being transferred you can remove the encryption on the Data Channel. This will lower the CPU cycles burnt for en/decrypting the large files that are transferred.&lt;/p&gt;  &lt;p&gt;Even the Control Channel can be tweaked to just use encryption for credentials. But commands sometimes contain folder locations so its better to keep it encrypted.&lt;/p&gt;  &lt;p&gt;&lt;a title="Bookmark and Share" onclick="window.open(&amp;#39;http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url=&amp;#39;+encodeURIComponent(location.href)+&amp;#39;&amp;amp;title=&amp;#39;+encodeURIComponent(document.title), &amp;#39;addthis&amp;#39;, &amp;#39;scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100&amp;#39;); return false;" href="http://www.addthis.com/bookmark.php" target="_blank" mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;img border="0" alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width="125" height="16" mce_src="http://s9.addthis.com/button1-bm.gif" /&gt;&lt;/a&gt; &lt;!-- AddThis Button END --&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9823228" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=5Yvf5gVOJaY:Zdx1TQrl1UI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=5Yvf5gVOJaY:Zdx1TQrl1UI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=5Yvf5gVOJaY:Zdx1TQrl1UI:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=5Yvf5gVOJaY:Zdx1TQrl1UI:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=5Yvf5gVOJaY:Zdx1TQrl1UI:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/5Yvf5gVOJaY" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/Security/default.aspx">Security</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS+7+Tip/default.aspx">IIS 7 Tip</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/07/08/iis-7-tip-11-you-can-restrict-ssl-to-only-the-control-channel-on-ftps.aspx</feedburner:origLink></item><item><title>Disappearing SSL certificates from IIS 7.0 manager</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/qlW798zhAUM/disappearing-ssl-certificates-from-iis-7-0-manager.aspx</link><pubDate>Fri, 22 May 2009 21:37:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9636017</guid><dc:creator>vijaysk</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9636017.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9636017</wfw:commentRss><description>&lt;p&gt;“I install a SSL server certificate using the ‘Complete Certificate Request’ wizard in IIS manager and when I refresh the view the certificate disappears. “&lt;/p&gt;  &lt;p&gt;I have heard that a couple of times and every time I used to go “What ?” Until someone showed it to me.&lt;/p&gt;  &lt;p&gt;If you are one of those who are wondering about this read on.&lt;/p&gt;  &lt;p&gt;The &lt;strong&gt;Server Certificates &lt;/strong&gt;module in IIS manager displays a list of certificates from the &lt;strong&gt;Local Machine &lt;/strong&gt;SSL store.&lt;/p&gt;  &lt;p&gt;But it only lists the certificate if &lt;/p&gt;  &lt;p&gt;1. The certificate has a private key&lt;/p&gt;  &lt;p&gt;2. The certificate is meant for Server Authentication&lt;/p&gt;  &lt;p&gt;And this is where the disappearing act occurs. &lt;/p&gt;  &lt;p&gt;The IIS Manager enumerates all the extensions of the certificate and checks if OID 2.5.29.37 (Extended Key Usage) exists. If it does the certificate Enhanced Key Usage section must contain 1.3.6.1.5.5.7.3.1&amp;#160; (Server Authentication).&lt;/p&gt;  &lt;p&gt;In the repro’ I was shown the user had actually downloaded the intermediate certificate and used that .cer file to complete the certificate request. In this case the wizard will go thro’ all the steps but when you refresh the view the certificate will not be listed. &lt;/p&gt;  &lt;p&gt;&lt;a title="Bookmark and Share" onclick="window.open(&amp;#39;http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url=&amp;#39;+encodeURIComponent(location.href)+&amp;#39;&amp;amp;title=&amp;#39;+encodeURIComponent(document.title), &amp;#39;addthis&amp;#39;, &amp;#39;scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100&amp;#39;); return false;" href="http://www.addthis.com/bookmark.php" target="_blank" mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;img border="0" alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width="125" height="16" mce_src="http://s9.addthis.com/button1-bm.gif" /&gt;&lt;/a&gt; &lt;!-- AddThis Button END --&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9636017" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=qlW798zhAUM:HJwuuD4y2WA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=qlW798zhAUM:HJwuuD4y2WA:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=qlW798zhAUM:HJwuuD4y2WA:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=qlW798zhAUM:HJwuuD4y2WA:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=qlW798zhAUM:HJwuuD4y2WA:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/qlW798zhAUM" height="1" width="1"/&gt;</description><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/05/22/disappearing-ssl-certificates-from-iis-7-0-manager.aspx</feedburner:origLink></item><item><title>IIS 7 Tip # 10 You can generate machine keys from the IIS manager</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/tyV-3QyQGwU/iis-7-tip-10-you-can-generate-machine-keys-from-the-iis-manager.aspx</link><pubDate>Wed, 13 May 2009 22:10:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9611680</guid><dc:creator>vijaysk</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9611680.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9611680</wfw:commentRss><description>&lt;p&gt;The &lt;strong&gt;machineKey&lt;/strong&gt; element of the ASP.NET web.config specifies the algorithm and keys that ASP.NET will use for encryption. By default the validationKey and the decryptionKey keys are set to &lt;strong&gt;AutoGenerate &lt;/strong&gt;which means the runtime will generate a random key for use. This works fine for applications that are deployed on a single server. When you use webfarms a client request can land on any one of the servers in the webfarm. Hence you will have to hardcode the validationKey and the decryptionKey on all your servers in the farm with a manually generated key.&lt;/p&gt;  &lt;p&gt;There are a lot of articles that describe how to use RNGCryptoServiceProvider to generate a random key. There are also a lot of online tools that generate random keys for you. But I would suggest writing your own script because any one who has access to these keys can do evil things like tamper your forms authentication cookie or viewstate.&lt;/p&gt;  &lt;p&gt;With IIS 7 you no longer have to do this manually. The IIS 7.0 manager has a built in feature that you can use to generate these keys.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip9Youcangeneratemachinekeysfromthe_D531/machinekeys_6.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="machinekeys" border="0" alt="machinekeys" src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip9Youcangeneratemachinekeysfromthe_D531/machinekeys_thumb_2.jpg" width="651" height="453" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;It uses RNGCryptoServiceProvider internally to create a random key. The value is stored locally in the web.config of that application something like &lt;/p&gt;  &lt;div style="background-color: gainsboro; overflow: auto"&gt;   &lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;      &lt;br /&gt;&amp;lt;configuration&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;system.web&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;machineKey decryptionKey=&amp;quot;F6722806843145965513817CEBDECBB1F94808E4A6C0B2F2,IsolateApps&amp;quot; validationKey=&amp;quot;C551753B0325187D1759B4FB055B44F7C5077B016C02AF674E8DE69351B69FEFD045A267308AA2DAB81B69919402D7886A6E986473EEEC9556A9003357F5ED45,IsolateApps&amp;quot; /&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/system.web&amp;gt;       &lt;br /&gt;&amp;lt;/configuration&amp;gt;      &lt;br /&gt;&lt;/p&gt; &lt;/div&gt;  &lt;p&gt;You can copy it and paste it in the web.config file of all the servers in the webfarm.&lt;/p&gt;  &lt;p&gt;&lt;a title="Bookmark and Share" onclick="window.open(&amp;#39;http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url=&amp;#39;+encodeURIComponent(location.href)+&amp;#39;&amp;amp;title=&amp;#39;+encodeURIComponent(document.title), &amp;#39;addthis&amp;#39;, &amp;#39;scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100&amp;#39;); return false;" href="http://www.addthis.com/bookmark.php" target="_blank" mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;img border="0" alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width="125" height="16" mce_src="http://s9.addthis.com/button1-bm.gif" /&gt;&lt;/a&gt; &lt;!-- AddThis Button END --&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9611680" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=tyV-3QyQGwU:2RE-maoEruQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=tyV-3QyQGwU:2RE-maoEruQ:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=tyV-3QyQGwU:2RE-maoEruQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=tyV-3QyQGwU:2RE-maoEruQ:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=tyV-3QyQGwU:2RE-maoEruQ:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/tyV-3QyQGwU" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS+7+Tip/default.aspx">IIS 7 Tip</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/05/13/iis-7-tip-10-you-can-generate-machine-keys-from-the-iis-manager.aspx</feedburner:origLink></item><item><title>Setting SMTP RelayIpList from a script.</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/rUIgqvguZ1w/setting-smtp-relayiplist-from-a-script.aspx</link><pubDate>Thu, 07 May 2009 22:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9595198</guid><dc:creator>vijaysk</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9595198.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9595198</wfw:commentRss><description>&lt;P&gt;SMTP service running on IIS 6.0 provides you options to restrict IP addresses of computers that can relay mail messages through this server. &lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/SettingSMTPRelayIpListfromascript_E0B4/relayrestrictions_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/SettingSMTPRelayIpListfromascript_E0B4/relayrestrictions_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=relayrestrictions border=0 alt=relayrestrictions src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/SettingSMTPRelayIpListfromascript_E0B4/relayrestrictions_thumb.jpg" width=394 height=382 mce_src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/SettingSMTPRelayIpListfromascript_E0B4/relayrestrictions_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;The value(list of IP addresses) is stored in the &lt;STRONG&gt;RelayIpList &lt;/STRONG&gt;metabase property as an octet string. I was recently contacted by a server administrator to figure out if there is an automatic script that can add IP addresses to this list. He wanted to add around 200 IP address and grant them access.&lt;/P&gt;
&lt;P&gt;I have written a script that you can use in such scenarios. It reads IP addresses from a text file and populates them into the RelayIpList.&lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;USAGE : cscript ImportRelayList.vbs &lt;/P&gt;
&lt;P&gt;PREREQUISITE : This script needs ip.txt in the same folder. &lt;/P&gt;
&lt;P&gt;Store your IP addresses in ip.txt FORMAT: Each line should be IP,MASK &lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/SettingSMTPRelayIpListfromascript_E0B4/ImportRelayList_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/SettingSMTPRelayIpListfromascript_E0B4/ImportRelayList_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=ImportRelayList border=0 alt=ImportRelayList src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/SettingSMTPRelayIpListfromascript_E0B4/ImportRelayList_thumb.jpg" width=557 height=389 mce_src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/SettingSMTPRelayIpListfromascript_E0B4/ImportRelayList_thumb.jpg"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I have attached the script to this blog post. Hope it helps.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;A title="Bookmark and Share" onclick="window.open('http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url='+encodeURIComponent(location.href)+'&amp;amp;title='+encodeURIComponent(document.title), 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100'); return false;" href="http://www.addthis.com/bookmark.php" target=_blank mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;IMG border=0 alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width=125 height=16 mce_src="http://s9.addthis.com/button1-bm.gif"&gt;&lt;/A&gt; &lt;!-- AddThis Button END --&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9595198" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=rUIgqvguZ1w:5dfIQG9rKY0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=rUIgqvguZ1w:5dfIQG9rKY0:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=rUIgqvguZ1w:5dfIQG9rKY0:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=rUIgqvguZ1w:5dfIQG9rKY0:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=rUIgqvguZ1w:5dfIQG9rKY0:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/rUIgqvguZ1w" height="1" width="1"/&gt;</description><enclosure url="http://blogs.msdn.com/vijaysk/attachment/9595198.ashx" length="1513" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/Tools/default.aspx">Tools</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/05/07/setting-smtp-relayiplist-from-a-script.aspx</feedburner:origLink></item><item><title>IIS 7 Tip # 9 Set Application Pool Defaults…</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/r0OGXEpDnoU/iis-7-tip-9-set-application-pool-defaults.aspx</link><pubDate>Tue, 05 May 2009 22:57:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9589895</guid><dc:creator>vijaysk</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9589895.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9589895</wfw:commentRss><description>&lt;p&gt;When ever you create a new application pool IIS only asks you for four things 1. Name, 2. .NET Framework version, 3. Managed pipeline mode and 4. Weather to start the application pool immediately&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip9SetApplicationPoolDefaults_E053/addapppool_2.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="addapppool" border="0" alt="addapppool" src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip9SetApplicationPoolDefaults_E053/addapppool_thumb.jpg" width="324" height="287" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;What about the remaining advanced settings like the identity that application pool has to run under? The application pool inherits the rest of the settings. &lt;/p&gt;  &lt;p&gt;If you want to change the default settings that IIS uses to create a new application pool you can do it under the &lt;strong&gt;Set Application Pool Defaults…&lt;/strong&gt; section&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip9SetApplicationPoolDefaults_E053/apppooldefaults_4.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="apppooldefaults" border="0" alt="apppooldefaults" src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip9SetApplicationPoolDefaults_E053/apppooldefaults_thumb_1.jpg" width="675" height="445" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;For example if you change the Managed Pipeline Mode to Classic in the defaults and add a new application pool the mode dropdown will be set to Classic.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;a title="Bookmark and Share" onclick="window.open(&amp;#39;http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url=&amp;#39;+encodeURIComponent(location.href)+&amp;#39;&amp;amp;title=&amp;#39;+encodeURIComponent(document.title), &amp;#39;addthis&amp;#39;, &amp;#39;scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100&amp;#39;); return false;" href="http://www.addthis.com/bookmark.php" target="_blank" mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;img border="0" alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width="125" height="16" mce_src="http://s9.addthis.com/button1-bm.gif" /&gt;&lt;/a&gt; &lt;!-- AddThis Button END --&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9589895" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=r0OGXEpDnoU:uVfuFXWQ4uk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=r0OGXEpDnoU:uVfuFXWQ4uk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=r0OGXEpDnoU:uVfuFXWQ4uk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=r0OGXEpDnoU:uVfuFXWQ4uk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=r0OGXEpDnoU:uVfuFXWQ4uk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/r0OGXEpDnoU" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS+7+Tip/default.aspx">IIS 7 Tip</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/05/05/iis-7-tip-9-set-application-pool-defaults.aspx</feedburner:origLink></item><item><title>Can the validity period of the Self-Signed Certificate that IIS 7.0 manager creates be changed ?</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/ofXAK5CVUVY/can-the-validity-period-of-the-self-signed-certificate-that-iis-7-0-manager-creates-be-changed.aspx</link><pubDate>Fri, 01 May 2009 12:31:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9576799</guid><dc:creator>vijaysk</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9576799.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9576799</wfw:commentRss><description>&lt;P&gt;IIS 7.0 has a nice feature of creating self-signed certificates …&amp;nbsp; very handy for creating test certificates.&lt;/P&gt;
&lt;P&gt;I was recently asked if there is a way to modify the validity period of the certificate it creates. &lt;/P&gt;
&lt;P&gt;Unfortunately&amp;nbsp; No! &lt;/P&gt;
&lt;P&gt;The module that creates the certificate uses a simple logic of incrementing the year by 1. Something like&lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;SYSTEMTIME systemtime = new SYSTEMTIME(); &lt;/P&gt;
&lt;P&gt;systemtime.wYear = (short) (DateTime.Now.Date.Year + 1); &lt;/P&gt;
&lt;P&gt;systemtime.wMonth = (short) DateTime.Now.Date.Month; &lt;/P&gt;
&lt;P&gt;systemtime.wDay = (short) DateTime.Now.Date.Day;&lt;BR&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;It’s hardcoded and hence the validity of the certificate will always be 1 year from the current date.&lt;/P&gt;
&lt;P&gt;Also the name of the certificate will always be the FQDN. &lt;/P&gt;
&lt;P&gt;In case you want to create certificates with a shorter validity period or different names there are are a lot of tools like SelfSSL that you can use to generates self-signed certificates.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;A title="Bookmark and Share" onclick="window.open('http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url='+encodeURIComponent(location.href)+'&amp;amp;title='+encodeURIComponent(document.title), 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100'); return false;" href="http://www.addthis.com/bookmark.php" target=_blank mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;IMG border=0 alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width=125 height=16 mce_src="http://s9.addthis.com/button1-bm.gif"&gt;&lt;/A&gt; &lt;!-- AddThis Button END --&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9576799" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=ofXAK5CVUVY:HpExF88vOQ0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=ofXAK5CVUVY:HpExF88vOQ0:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=ofXAK5CVUVY:HpExF88vOQ0:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=ofXAK5CVUVY:HpExF88vOQ0:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=ofXAK5CVUVY:HpExF88vOQ0:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/ofXAK5CVUVY" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/05/01/can-the-validity-period-of-the-self-signed-certificate-that-iis-7-0-manager-creates-be-changed.aspx</feedburner:origLink></item><item><title>IIS 7 Tip # 8 You can create Self-Signed SSL certificates from the IIS manager</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/2GPRzALCqYs/iis-7-tip-8-you-can-create-self-signed-ssl-certificates-from-the-iis-manager.aspx</link><pubDate>Wed, 29 Apr 2009 22:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9576920</guid><dc:creator>vijaysk</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9576920.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9576920</wfw:commentRss><description>&lt;P&gt;IIS 7.0 manager has a nice feature of generating self-signed certificates that you can use for running tests. &lt;/P&gt;
&lt;P&gt;At the global level select &lt;STRONG&gt;Server Certificates&lt;/STRONG&gt; and in the &lt;STRONG&gt;Actions&lt;/STRONG&gt; Pane on the right you get the option to &lt;STRONG&gt;Create Self-Signed Certificate…&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip8YoucancreateSelfSignedSSLcertifi_DF67/selfsigned_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip8YoucancreateSelfSignedSSLcertifi_DF67/selfsigned_2.jpg"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=selfsigned border=0 alt=selfsigned src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip8YoucancreateSelfSignedSSLcertifi_DF67/selfsigned_thumb.jpg" width=206 height=263 mce_src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip8YoucancreateSelfSignedSSLcertifi_DF67/selfsigned_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;The wizard that pops up just asks for a friendly name for the certificate.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip8YoucancreateSelfSignedSSLcertifi_DF67/selfsignedwizard_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip8YoucancreateSelfSignedSSLcertifi_DF67/selfsignedwizard_2.jpg"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=selfsignedwizard border=0 alt=selfsignedwizard src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip8YoucancreateSelfSignedSSLcertifi_DF67/selfsignedwizard_thumb.jpg" width=613 height=263 mce_src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip8YoucancreateSelfSignedSSLcertifi_DF67/selfsignedwizard_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Note this is just a friendly name that you can use to identify the certificate. It is not the &lt;STRONG&gt;Common Name / Subject&lt;/STRONG&gt;. &lt;/P&gt;
&lt;P&gt;Once you hit OK IIS manager will create a Self-Signed certificate that has the Common Name as the FQDN of the machine and is valid for a year.&lt;/P&gt;
&lt;P&gt;Again the friendly name that you specify will not change the Common Name / Subject of the certificate meaning the &lt;STRONG&gt;Issued To:&lt;/STRONG&gt; field will always be the FQDN of the machine.&lt;/P&gt;
&lt;P&gt;Apart from creating the certificate IIS Manager also adds the certificate to the &lt;STRONG&gt;Trusted Root Certification Authorities&lt;/STRONG&gt; on the machine.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;A title="Bookmark and Share" onclick="window.open('http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url='+encodeURIComponent(location.href)+'&amp;amp;title='+encodeURIComponent(document.title), 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100'); return false;" href="http://www.addthis.com/bookmark.php" target=_blank mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;IMG border=0 alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width=125 height=16 mce_src="http://s9.addthis.com/button1-bm.gif"&gt;&lt;/A&gt; &lt;!-- AddThis Button END --&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9576920" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=2GPRzALCqYs:LCPEpevPc3k:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=2GPRzALCqYs:LCPEpevPc3k:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=2GPRzALCqYs:LCPEpevPc3k:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=2GPRzALCqYs:LCPEpevPc3k:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=2GPRzALCqYs:LCPEpevPc3k:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/2GPRzALCqYs" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS+7+Tip/default.aspx">IIS 7 Tip</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/04/29/iis-7-tip-8-you-can-create-self-signed-ssl-certificates-from-the-iis-manager.aspx</feedburner:origLink></item><item><title>IIS 7 Tip # 7 You can use the application pool identity for the anonymous authentication credentials</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/2ePxvM8bVHc/iis-7-tip-7-you-can-use-the-application-pool-identity-for-the-anonymous-authentication-credentials.aspx</link><pubDate>Fri, 03 Apr 2009 14:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9531036</guid><dc:creator>vijaysk</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9531036.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9531036</wfw:commentRss><description>&lt;p&gt;When a client accesses a web site on anonymous authentication IIS uses a pre configured account to access the corresponding files on disk. In IIS 5.0 / 6.0 we used a local account called the IUSR_machinename for anonymous authentication. With IIS 7.0 we moved to a generic built in account called IUSR which is now machine dependent. &lt;/p&gt;  &lt;p&gt;But in IIS 7.0 you also have the option to use the application pool identity as the anonymous user identity. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip7Youcanusetheapplicationpoolident_DEA0/Authentication_2.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Authentication" border="0" alt="Authentication" src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip7Youcanusetheapplicationpoolident_DEA0/Authentication_thumb.jpg" width="460" height="379" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;In IIS 6.0 if you wanted to use the application pool identity for anonymous access you would have to configure it manually under the Authentication Settings. This would mean the username and password would be saved in multiple locations. Whenever you had to change the password you would have to reset it in the application pool settings and then in the authentication settings.&lt;/p&gt;  &lt;p&gt;With IIS 7.0 you just have to configure the user identity in the application pool settings. And in the properties of the Anonymous Authentication module select the Application pool identity option.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;a title="Bookmark and Share" onclick="window.open(&amp;#39;http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url=&amp;#39;+encodeURIComponent(location.href)+&amp;#39;&amp;amp;title=&amp;#39;+encodeURIComponent(document.title), &amp;#39;addthis&amp;#39;, &amp;#39;scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100&amp;#39;); return false;" href="http://www.addthis.com/bookmark.php" target="_blank" mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;img border="0" alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width="125" height="16" mce_src="http://s9.addthis.com/button1-bm.gif" /&gt;&lt;/a&gt; &lt;!-- AddThis Button END --&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9531036" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=2ePxvM8bVHc:D9X_CJyxylE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=2ePxvM8bVHc:D9X_CJyxylE:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=2ePxvM8bVHc:D9X_CJyxylE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=2ePxvM8bVHc:D9X_CJyxylE:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=2ePxvM8bVHc:D9X_CJyxylE:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/2ePxvM8bVHc" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS+7+Tip/default.aspx">IIS 7 Tip</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/04/03/iis-7-tip-7-you-can-use-the-application-pool-identity-for-the-anonymous-authentication-credentials.aspx</feedburner:origLink></item><item><title>Getting better stack traces in Process Monitor / Process Explorer</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/ZGHXG7NcBG0/getting-better-stack-traces-in-process-monitor-process-explorer.aspx</link><pubDate>Thu, 02 Apr 2009 05:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9521849</guid><dc:creator>vijaysk</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9521849.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9521849</wfw:commentRss><description>&lt;p&gt;Process Monitor and Process Explorer are great tools for troubleshooting issues on Windows machines. Process Explorer can be used to investigate a running process from handles to dlls loaded. Process Monitor is my favourate and it can be used to monitor file system / registry activity on a machine. It logs all access to the file system / registry by all processes on the machine (can be filtered).&lt;/p&gt;  &lt;p&gt;Process Monitor also shows you the call stack of the thread that lead to the file system / registry access. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/GettingbetterstacktracesinProcessMonitor_B30/processmonitor.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="processmonitor" border="0" alt="processmonitor" src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/GettingbetterstacktracesinProcessMonitor_B30/processmonitor_thumb.jpg" width="556" height="575" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The call stack in the above image is not very helpful as it is only showing the offset addresses(under Location). Not a lot of people realize that in both Process Monitor and Process Explorer you can configure a symbol server. You can point to the public Microsoft Symbol Server at &lt;a href="http://msdl.microsoft.com/download/symbols"&gt;http://msdl.microsoft.com/download/symbols&lt;/a&gt; and Process Monitor / Process Explorer will download the necessary symbol files and show you a better call stack with all the function names instead of the address offsets.&lt;/p&gt;  &lt;p&gt;But to enable Process Monitor / Process Explorer to talk to the Microsoft Symbol Server you need to install WinDbg (Microsoft Debugging Tools For Windows) on the machine. You need this because the dbghelp.dll has to upgraded to enable it to connect to a symbol server.&lt;/p&gt;  &lt;p&gt;Once you install WinDbg in Process Monitor go to Options &amp;gt; Configure Symbols and configure the dbghelp.dll and the symbol server path.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/GettingbetterstacktracesinProcessMonitor_B30/processmonitorsymbols_1.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="processmonitorsymbols" border="0" alt="processmonitorsymbols" src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/GettingbetterstacktracesinProcessMonitor_B30/processmonitorsymbols_thumb_1.jpg" width="445" height="327" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;So here I have configured the dbghelp.dll path to point to the location where my windbg is installed. The Symbols path is pointing to the Microsoft Symbol Server … It specifies c:\symcache as the location where it can cache the symbol files it downloads.&lt;/p&gt;  &lt;p&gt;Now if you go back into Process Monitor / Process Explorer and check the call stack it will look something like this.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/GettingbetterstacktracesinProcessMonitor_B30/processmonitorsymbolsstack.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="processmonitorsymbolsstack" border="0" alt="processmonitorsymbolsstack" src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/GettingbetterstacktracesinProcessMonitor_B30/processmonitorsymbolsstack_thumb.jpg" width="556" height="579" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Now you get proper function names as per the public microsoft symbols. In the symcache folders you will see all the symbols that got downloaded.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/GettingbetterstacktracesinProcessMonitor_B30/symcache.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="symcache" border="0" alt="symcache" src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/GettingbetterstacktracesinProcessMonitor_B30/symcache_thumb.jpg" width="437" height="482" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Now this is not limited to just Microsoft symbols. If you have symbols created for your application components you can include those as well and get the function names in the call stack. &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;a title="Bookmark and Share" onclick="window.open(&amp;#39;http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url=&amp;#39;+encodeURIComponent(location.href)+&amp;#39;&amp;amp;title=&amp;#39;+encodeURIComponent(document.title), &amp;#39;addthis&amp;#39;, &amp;#39;scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100&amp;#39;); return false;" href="http://www.addthis.com/bookmark.php" target="_blank" mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;img border="0" alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width="125" height="16" mce_src="http://s9.addthis.com/button1-bm.gif" /&gt;&lt;/a&gt; &lt;!-- AddThis Button END --&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9521849" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=ZGHXG7NcBG0:KjTrdhJYVis:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=ZGHXG7NcBG0:KjTrdhJYVis:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=ZGHXG7NcBG0:KjTrdhJYVis:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=ZGHXG7NcBG0:KjTrdhJYVis:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=ZGHXG7NcBG0:KjTrdhJYVis:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/ZGHXG7NcBG0" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/Tools/default.aspx">Tools</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/Debug/default.aspx">Debug</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/WinDbg/default.aspx">WinDbg</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/Windows/default.aspx">Windows</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/04/02/getting-better-stack-traces-in-process-monitor-process-explorer.aspx</feedburner:origLink></item><item><title>IIS 7 Tip # 6 You can reset the TCP connection when “Service Unavailable” happens</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/p_BfIC42mI0/iis-7-tip-6-you-can-reset-the-tcp-connection-when-service-unavailable-happens.aspx</link><pubDate>Wed, 01 Apr 2009 08:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9516884</guid><dc:creator>vijaysk</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9516884.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9516884</wfw:commentRss><description>&lt;P&gt;Instead of returning the “Service Unavailable” message to the client you can terminate the TCP connection. This can be helpful in environments where you have a Load Balancer which ’understands’ a TCP reset instead of “Service Unavailable”. In IIS 7.0 you can set it via the IIS manager UI in the Advanced Properties of the Application Pool.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip6YoucanresettheTCPconnectionwhenS_1691/vijaysk-serviceunavailabe_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=vijaysk-serviceunavailabe border=0 alt=vijaysk-serviceunavailabe src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip6YoucanresettheTCPconnectionwhenS_1691/vijaysk-serviceunavailabe_thumb.jpg" width=457 height=279&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;This option is available in IIS 6.0 as well. But you need to set it using the adsutil.vbs script (or edit the metabase directly)&lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;cscript adsutil.vbs set w3svc/apppools/loadbalancercapabilities 1&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;A title="Bookmark and Share" onclick="window.open('http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url='+encodeURIComponent(location.href)+'&amp;amp;title='+encodeURIComponent(document.title), 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100'); return false;" href="http://www.addthis.com/bookmark.php" target=_blank mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;IMG border=0 alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width=125 height=16 mce_src="http://s9.addthis.com/button1-bm.gif"&gt;&lt;/A&gt; &lt;!-- AddThis Button END --&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9516884" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=p_BfIC42mI0:gKajLoJarSg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=p_BfIC42mI0:gKajLoJarSg:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=p_BfIC42mI0:gKajLoJarSg:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=p_BfIC42mI0:gKajLoJarSg:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=p_BfIC42mI0:gKajLoJarSg:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/p_BfIC42mI0" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS+7+Tip/default.aspx">IIS 7 Tip</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/04/01/iis-7-tip-6-you-can-reset-the-tcp-connection-when-service-unavailable-happens.aspx</feedburner:origLink></item><item><title>Caution while xcopying IIS 7.0 config files</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/hZ-ZKJsfMqo/caution-while-xcopying-iis-7-0-config-files.aspx</link><pubDate>Fri, 13 Mar 2009 23:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9473806</guid><dc:creator>vijaysk</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9473806.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9473806</wfw:commentRss><description>&lt;P&gt;Metabase.xml is the central store where IIS 6.0 stores most of its configuration information. Its a plain text file and stores all the information in a simple XML format. The XML format naturally raised a notion of being able to XCOPY the config file to another server and transferring the settings with it. But if you copy over a metabase.xml file from another server your IIS admin service will no longer start. This happens because the metabase.xml file contains ACLs that control access to any metabase key. Stored under the AdminACL tag these keys are encoded based on the machinekeys of the server. When you move the metabase.xml to another server the keys can no longer be decoded and hence your IIS Admin service will not be able to start.&lt;/P&gt;
&lt;P&gt;With IIS 7.0 we moved to a new XML based configuration store that is modeled after ASP.NET. It is no longer centralized into a single file. The hierarchical store starts with the applicationHost.config file and can be distributed among web.config files under your application. &lt;/P&gt;
&lt;P&gt;This move also enables the long lasting idea of xcopy-deployment. You can now have all the settings in a web.config along with your application content and move it around.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Another change that was made is that the local accounts/groups that IIS 6.0 used (IUSR_MACHINENAME / IIS_WPG) were replaced by built-in accounts (IUSR / IIS_IUSRS). The built-in accounts have the same SID across Windows 2008 servers and are not machine specific. &lt;/P&gt;
&lt;P&gt;So technically you now have an IIS configuration store that is virtually machine independent and you can just copy your applicationHost.config from one server to another and IIS will pick up the settings and just work.&lt;/P&gt;
&lt;P&gt;But there is a catch. Try this. &lt;/P&gt;
&lt;P&gt;On an IIS 7.0 server change the application pool identity (for the DefaultAppPool)&amp;nbsp; to a custom domain identity. (Advanced Settings &amp;gt; Application Pool Identity &amp;gt; Custom Account)&lt;/P&gt;
&lt;P&gt;Then move the applicationHost.config to a different IIS 7.0 server.&lt;/P&gt;
&lt;P&gt;When you try to run a website using the DefaultAppPool you will find that the Application will get disabled with the following error in the event log.&lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;Application pool TestApplicationPool has been disabled. Windows Process Activation Service (WAS) did not create a worker process to serve the application pool because the application pool identity is invalid.&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;So lets try to change the application pool identity to another domain account or reset the password for that account.&lt;/P&gt;
&lt;P&gt;You type in the username and password and hit OK and you will get the following error message&lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;There was an error while performing this operation.&lt;/P&gt;
&lt;P&gt;Details: Bad Data. (Exception from HRESULT: 0x80090005)&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/PrecautionwhilexcopyingIIS7.0configfiles_ABE5/clip_image002_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/PrecautionwhilexcopyingIIS7.0configfiles_ABE5/clip_image002_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=clip_image002 border=0 alt=clip_image002 src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/PrecautionwhilexcopyingIIS7.0configfiles_ABE5/clip_image002_thumb.jpg" width=389 height=211 mce_src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/PrecautionwhilexcopyingIIS7.0configfiles_ABE5/clip_image002_thumb.jpg"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Any username / password will not work. (You can however set the identity of the application pool to one of the built in accounts.)&lt;/P&gt;
&lt;P&gt;Wondering what’s going on ? Initially when you set the application pool identity to a domain account IIS has to keep a local copy of the username and password. So it stores a copy in its applicationHost.config and since it is not advisable to keep the password in clear text format it goes ahead an encrypts it. You will see something like this in the config file. &lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;&amp;lt;processModel identityType="SpecificUser" userName="microsoft\testuser" password="[enc:IISWASOnlyAesProvider:2Woq1XHFmcDxzSEKJe9q1eZsvlUEBcmb0Puy3DzkdWg=:enc]" /&amp;gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;For the encryption it uses machine specific keys in the iisConfiguration and iisWasKey containers. When the applicationHost.config is moved to a different server IIS can no longer decrypt the settings. &lt;/P&gt;
&lt;P&gt;To get this working you can export and import the keys from the original server. &lt;/P&gt;
&lt;P&gt;Export using the following commands&lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;aspnet_regiis -px "iisConfigurationKey" "D:\iisConfigurationKey.xml" -pri &lt;BR&gt;aspnet_regiis -px "iisWasKey" "D:\iisWasKey.xml" –pri &lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;And for the import use&lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;aspnet_regiis -pi "iisConfigurationKey" "D:\iisConfigurationKey.xml" &lt;BR&gt;aspnet_regiis -pi "iisWasKey" "D:\iisWasKey.xml"&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;So whenever you are trying to xcopy-deploy your application on multiple servers you need to check if there are any encrypted sections and if you do ensure you port the iisConfigurationKey and the iisWasKey as well.&lt;/P&gt;
&lt;P&gt;Also I would recommend using the Web Deployment Tool ( MSDeploy ) which makes deployment a lot easier. You can create a package (settings and content)&amp;nbsp; of the whole server / specific application and use it to deploy. But the tool is in BETA still. &lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;A title="Bookmark and Share" onclick="window.open('http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url='+encodeURIComponent(location.href)+'&amp;amp;title='+encodeURIComponent(document.title), 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100'); return false;" href="http://www.addthis.com/bookmark.php" target=_blank mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;IMG border=0 alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width=125 height=16 mce_src="http://s9.addthis.com/button1-bm.gif"&gt;&lt;/A&gt; &lt;!-- AddThis Button END --&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9473806" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=hZ-ZKJsfMqo:N7y9xzbrXnM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=hZ-ZKJsfMqo:N7y9xzbrXnM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=hZ-ZKJsfMqo:N7y9xzbrXnM:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=hZ-ZKJsfMqo:N7y9xzbrXnM:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=hZ-ZKJsfMqo:N7y9xzbrXnM:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/hZ-ZKJsfMqo" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/ASP.NET/default.aspx">ASP.NET</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/03/14/caution-while-xcopying-iis-7-0-config-files.aspx</feedburner:origLink></item><item><title>IIS 7 Tip # 5 Run a command when Rapid Fail Protection is triggered.</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/_mhwCekc7EA/iis-7-tip-5-run-a-command-when-rapid-fail-protection-is-triggered.aspx</link><pubDate>Fri, 13 Mar 2009 01:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9471052</guid><dc:creator>vijaysk</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9471052.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9471052</wfw:commentRss><description>&lt;P&gt;Rapid-Fail Protection disables application pools if they crash multiple times within in a specified time period. This prevents the failing application pool from getting into a continuous loop of crashing and restarting. This protects other application pools running on the server as repeated failures can consume lot of system resources. When rapid-fail protection kicks in it stops the application pool that is repeatedly crashing and your clients will start getting a 503 – Service Unavailable error. An administrator will have to manually enable the application pool again.&lt;/P&gt;
&lt;P&gt;You also have to option to configure an executable to run when ever rapid-fail protection is triggered. For example below I have configured the application pool to restart the IIS service using iisreset.exe … the /rebootonerror will reboot the whole server if iisreset.exe for some reason fails to restart the services.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip5RunacommandwhenRapidFailProtect_DA49/vijaysk-rapidfailover_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=vijaysk-rapidfailover border=0 alt=vijaysk-rapidfailover src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip5RunacommandwhenRapidFailProtect_DA49/vijaysk-rapidfailover_thumb.jpg" width=454 height=554&gt;&lt;/A&gt; &lt;/P&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;applicationPools&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;
       &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;add &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;name&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;DefaultAppPool&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;autoStart&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;
         &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;failure &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;autoShutdownExe&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;c:\windows\system32\iisreset.exe&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;autoShutdownParams&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;/rebootonerror&lt;/SPAN&gt;" &lt;SPAN style="COLOR: blue"&gt;/&amp;gt;
       &amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;add&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="COLOR: blue"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;applicationPools&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;
&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;This option is also available on IIS 6.0 but it is not exposed via the IIS manager. You can set is as follows &lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;cscript adsutil.vbs set W3SVC/AppPools/DefaultAppPool/autoshutdownapppoolexe “c:\windows\system32\iisreset.exe”&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;A title="Bookmark and Share" onclick="window.open('http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url='+encodeURIComponent(location.href)+'&amp;amp;title='+encodeURIComponent(document.title), 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100'); return false;" href="http://www.addthis.com/bookmark.php" target=_blank mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;IMG border=0 alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width=125 height=16 mce_src="http://s9.addthis.com/button1-bm.gif"&gt;&lt;/A&gt; &lt;!-- AddThis Button END --&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9471052" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=_mhwCekc7EA:SsD5XP7fHGc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=_mhwCekc7EA:SsD5XP7fHGc:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=_mhwCekc7EA:SsD5XP7fHGc:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=_mhwCekc7EA:SsD5XP7fHGc:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=_mhwCekc7EA:SsD5XP7fHGc:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/_mhwCekc7EA" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS+7+Tip/default.aspx">IIS 7 Tip</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/03/13/iis-7-tip-5-run-a-command-when-rapid-fail-protection-is-triggered.aspx</feedburner:origLink></item><item><title>IIS 7 Tip # 4 Application Pool Recycling Events has an UI</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/IgTaXP91bPo/iis-7-tip-4-application-pool-recycling-events-has-an-ui.aspx</link><pubDate>Mon, 09 Mar 2009 23:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9468287</guid><dc:creator>vijaysk</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9468287.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9468287</wfw:commentRss><description>&lt;P&gt;Tucked away in the IIS manager is an UI screen to configure the Events that get logged when an application pool is recycled. &lt;/P&gt;
&lt;P&gt;When you right click on the application pool and choose Recycling you get to the screen where you configure the Recycling Conditions. When you click ‘Next’ you will get a screen where you can configure the events that are logged when recycling happens.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskRecyclingEvents_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskRecyclingEvents_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=vijayskRecyclingEvents border=0 alt=vijayskRecyclingEvents src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskRecyclingEvents_thumb.jpg" width=681 height=512 mce_src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskRecyclingEvents_thumb.jpg"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can also set these settings from the Advanced Settings of an application pool&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskRecyclingEventsAdv_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskRecyclingEventsAdv_2.jpg"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=vijayskRecyclingEventsAdv border=0 alt=vijayskRecyclingEventsAdv src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskRecyclingEventsAdv_thumb.jpg" width=455 height=555 mce_src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskRecyclingEventsAdv_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;On IIS 6.0 you had to configure this using the adsutil.vbs script (or directly edit the metabase.xml)&amp;nbsp; ref: &lt;A title=http://support.microsoft.com/kb/332088 href="http://support.microsoft.com/kb/332088" mce_href="http://support.microsoft.com/kb/332088"&gt;http://support.microsoft.com/kb/332088&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also the Event Viewer on Windows 2008 has been improved and you can now configure it to send emails whenever an event is triggered. &lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskEventViewer_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskEventViewer_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=vijayskEventViewer border=0 alt=vijayskEventViewer src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskEventViewer_thumb.jpg" width=714 height=496 mce_src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip4ApplicationPoolRecyclingEventsha_E3A6/vijayskEventViewer_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;As a web administrator you might want to keep a tab on the Runtime recycling events. For example the Unhealthy ISAPI recycling usually indicates a web application ‘hang’ because of which it is being recycled. From the IIS Manager you can turn on the Runtime recycling so that those events are logged in the event viewer. Then from the Event Viewer you can attach a task to those events and configure it to send out an email. So every time there is an application pool recycle you get automatically notified via email.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;A title="Bookmark and Share" onclick="window.open('http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url='+encodeURIComponent(location.href)+'&amp;amp;title='+encodeURIComponent(document.title), 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100'); return false;" href="http://www.addthis.com/bookmark.php" target=_blank mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;IMG border=0 alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width=125 height=16 mce_src="http://s9.addthis.com/button1-bm.gif"&gt;&lt;/A&gt; &lt;!-- AddThis Button END --&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9468287" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=IgTaXP91bPo:CCOy3fOKG0c:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=IgTaXP91bPo:CCOy3fOKG0c:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=IgTaXP91bPo:CCOy3fOKG0c:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=IgTaXP91bPo:CCOy3fOKG0c:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=IgTaXP91bPo:CCOy3fOKG0c:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/IgTaXP91bPo" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS+7+Tip/default.aspx">IIS 7 Tip</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/03/10/iis-7-tip-4-application-pool-recycling-events-has-an-ui.aspx</feedburner:origLink></item><item><title>IIS 7 Tip # 3 You can now load the user profile of the application pool identity</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/y1am3ujG3no/iis-7-tip-3-you-can-now-load-the-user-profile-of-the-application-pool-identity.aspx</link><pubDate>Sun, 08 Mar 2009 07:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9463771</guid><dc:creator>vijaysk</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9463771.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9463771</wfw:commentRss><description>&lt;P&gt;IIS 6.0 does not load the user profile of the application pool identity. But with IIS 7.0 you now have a choice to load the profile if needed. This feature is disabled by default on Windows 2008. &lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip3Youcannowloadtheuserprofileofthe_FD33/loadUserProfile_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip3Youcannowloadtheuserprofileofthe_FD33/loadUserProfile_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=loadUserProfile border=0 alt=loadUserProfile src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip3Youcannowloadtheuserprofileofthe_FD33/loadUserProfile_thumb.jpg" width=454 height=421 mce_src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip3Youcannowloadtheuserprofileofthe_FD33/loadUserProfile_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;applicationPools&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;
    &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;add &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;name&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;DefaultAppPool&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;&amp;gt;
        &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;processModel &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;identityType&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;NetworkService&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;loadUserProfile&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;idleTimeout&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;00:05:00&lt;/SPAN&gt;" &lt;SPAN style="COLOR: blue"&gt;/&amp;gt;
    &amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;add&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="COLOR: blue"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;applicationPools&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt; &lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;If you change this to True the profile of your Application Pool is loaded and is available for your application. &lt;/P&gt;
&lt;P&gt;You can use this to isolate your applications even further. For example when this option is set to False ( the profile is not loaded ) your application will use the c:\windows\temp folder as its temporary directory. If you have other application pools even they will use the same c:\windows\temp folder. If you set the option to load the user profile the temporary directory will be now change to use the profile’s temporary folder C:\Users\apppooluserid\AppData\Local\Temp. &lt;/P&gt;
&lt;P&gt;If the profile is loaded you also have access to all the custom environment variables for that user.&lt;/P&gt;
&lt;P&gt;Here’s a question what do you think will the temporary folder be when the Application Pool identity is set to Network Service and Load User Profile is set to True ?&lt;/P&gt;
&lt;P&gt;It is not C:\Users\NetworkService\AppData\Local\Temp. but C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;A title="Bookmark and Share" onclick="window.open('http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url='+encodeURIComponent(location.href)+'&amp;amp;title='+encodeURIComponent(document.title), 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100'); return false;" href="http://www.addthis.com/bookmark.php" target=_blank mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;IMG border=0 alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width=125 height=16 mce_src="http://s9.addthis.com/button1-bm.gif"&gt;&lt;/A&gt; &lt;!-- AddThis Button END --&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9463771" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=y1am3ujG3no:D3raF1VpG5s:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=y1am3ujG3no:D3raF1VpG5s:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=y1am3ujG3no:D3raF1VpG5s:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=y1am3ujG3no:D3raF1VpG5s:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=y1am3ujG3no:D3raF1VpG5s:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/y1am3ujG3no" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS+7+Tip/default.aspx">IIS 7 Tip</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/03/08/iis-7-tip-3-you-can-now-load-the-user-profile-of-the-application-pool-identity.aspx</feedburner:origLink></item><item><title>IIS 7 Tip #2 You can now run 32 bit and 64 bit applications on the same server</title><link>http://feedproxy.google.com/~r/msdn/vijaysk/~3/HGLDzOHzlRA/iis-7-tip-2-you-can-now-run-32-bit-and-64-bit-applications-on-the-same-server.aspx</link><pubDate>Fri, 06 Mar 2009 20:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9463369</guid><dc:creator>vijaysk</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/vijaysk/comments/9463369.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vijaysk/commentrss.aspx?PostID=9463369</wfw:commentRss><description>&lt;P&gt;On a 64 bit Windows 2003 machine IIS 6.0 could either be run in 32 bit mode or 64 bit mode. You toggled the Enable32bitAppOnWin64 metabase key and all the worker process would run in a particular bitness mode.&lt;/P&gt;
&lt;P&gt;With IIS 7.0 the Enable32bitAppOnWin64 key has been moved to the Application Pool level. So you can now set the bitness of a particular Application Pool.&lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;appcmd set apppool /apppool.name:DefaultAppPool /enable32bitapponwin64:true&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;This will make only the DefaultAppPool to run in 32 bit mode. You can have other application pools running simultaneously in 64 bit mode.&lt;/P&gt;
&lt;P&gt;You can also list the apppools based on bitness using the appcmd command. To list all the application pools runningin 64bit mode use the following command&lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;appcmd list apppools /enable32bitapponwin64:false&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;Now since application pools can be run in different bitness mode we also need to ensure that the dlls/modules that get loaded in the process are of the correct bitness. To do this you can configure a preCondition. For example this global module entry specifies that it should only be loaded if the bitness of the application pool is 32 bit.&lt;/P&gt;
&lt;DIV style="BACKGROUND-COLOR: gainsboro; OVERFLOW: auto"&gt;
&lt;P&gt;&amp;lt;add name="ManagedEngine" image="%windir%\Microsoft.NET\Framework\v2.0.50727\webengine.dll" preCondition="integratedMode,runtimeVersionv2.0,bitness32" /&amp;gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;You can also set the application bool bitness via the IIS manager&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip2Youcannowrun32bitand64bitapplica_A903/apppool_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip2Youcannowrun32bitand64bitapplica_A903/apppool_2.jpg"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=apppool border=0 alt=apppool src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip2Youcannowrun32bitand64bitapplica_A903/apppool_thumb.jpg" width=453 height=153 mce_src="http://blogs.msdn.com/blogfiles/vijaysk/WindowsLiveWriter/IIS7Tip2Youcannowrun32bitand64bitapplica_A903/apppool_thumb.jpg"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;A title="Bookmark and Share" onclick="window.open('http://www.addthis.com/bookmark.php?wt=nw&amp;amp;pub=vijaysk&amp;amp;url='+encodeURIComponent(location.href)+'&amp;amp;title='+encodeURIComponent(document.title), 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100'); return false;" href="http://www.addthis.com/bookmark.php" target=_blank mce_href="http://www.addthis.com/bookmark.php"&gt;&lt;IMG border=0 alt="Bookmark and Share" src="http://s9.addthis.com/button1-bm.gif" width=125 height=16 mce_src="http://s9.addthis.com/button1-bm.gif"&gt;&lt;/A&gt; &lt;!-- AddThis Button END --&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9463369" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=HGLDzOHzlRA:DyC24dCs7x4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=HGLDzOHzlRA:DyC24dCs7x4:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=HGLDzOHzlRA:DyC24dCs7x4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=HGLDzOHzlRA:DyC24dCs7x4:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/msdn/vijaysk?a=HGLDzOHzlRA:DyC24dCs7x4:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/msdn/vijaysk?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/msdn/vijaysk/~4/HGLDzOHzlRA" height="1" width="1"/&gt;</description><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/vijaysk/archive/tags/IIS+7+Tip/default.aspx">IIS 7 Tip</category><feedburner:origLink>http://blogs.msdn.com/vijaysk/archive/2009/03/06/iis-7-tip-2-you-can-now-run-32-bit-and-64-bit-applications-on-the-same-server.aspx</feedburner:origLink></item></channel></rss>
