<?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>Search results matching tag 'Rule'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=Rule&amp;orTags=0</link><description>Search results matching tag 'Rule'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: IIS7 rewrite to insert a new vdir</title><link>http://forums.iis.net/p/1162118/1922402.aspx#1922402</link><pubDate>Tue, 27 Oct 2009 22:43:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922402</guid><dc:creator>iis9002</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Have answer for myself&lt;/p&gt;
&lt;p&gt;&amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;temp/{PATH_INFO}&amp;quot; appendQueryString=&amp;quot;true&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;But weired thing is if I go to &lt;a href="http://foo.com/anypath"&gt;http://foo.com/anypath&lt;/a&gt;, sometimes, it is correct, but sometimes it redirects to &lt;a href="http://foo.com/temp/anypath"&gt;http://foo.com/temp/anypath&lt;/a&gt;, especially after I clear cache. Could this be a bug in IIS or am I missing sth here&lt;/p&gt;</description></item><item><title>IIS7 rewrite to insert a new vdir</title><link>http://forums.iis.net/p/1162118/1922390.aspx#1922390</link><pubDate>Tue, 27 Oct 2009 20:54:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922390</guid><dc:creator>iis9002</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Hey, assume I have a site &lt;a href="http://foo.com/anypath/"&gt;http://foo.com/anypath/&lt;/a&gt;..., how do I rewrite it to &lt;a href="http://foo.com/temp/path"&gt;http://foo.com/temp/anypath&lt;/a&gt;...&lt;/p&gt;
&lt;p&gt;Here is the rule I have for now. &lt;/p&gt;
&lt;p&gt;&amp;lt;rule name=&amp;quot;test&amp;quot; stopProcessing=&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;match url=&amp;quot;^(?!.*temp).*$&amp;quot; /&amp;gt;&amp;lt;!--&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;/temp/&amp;quot; appendQueryString=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;/p&gt;
&lt;p&gt;Basically, I need to insert &amp;quot;temp&amp;quot; right after&amp;nbsp;the host while preserving everything else (both relative path and parameter). I can not hardcode &amp;quot;anypath&amp;quot;, as it is unknown to me; also. &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>trouble with skip and replace rule in msdeploy.exe.configsettings</title><link>http://forums.iis.net/p/1159005/1909309.aspx#1909309</link><pubDate>Mon, 06 Jul 2009 15:53:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909309</guid><dc:creator>cowen</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>&lt;p&gt;article &lt;a href="http://blogs.iis.net/msdeploy/archive/2008/05/23/how-to-write-skip-and-replace-rules-for-msdeploy.aspx"&gt;http://blogs.iis.net/msdeploy/archive/2008/05/23/how-to-write-skip-and-replace-rules-for-msdeploy.aspx&lt;/a&gt;&amp;nbsp;&amp;quot;How to write skip and replace rules for MSDeploy&amp;quot; fits well what I am trying to do.&lt;/p&gt;
&lt;p&gt;The article provides a command line syntax, and then the rule syntax. The command line works for me, I am having trouble creating the rule. I have found in the link above and related links some variants on the rule syntax, but no success with any of them. &lt;/p&gt;
&lt;p&gt;I list below the error, the command line that works, the rule that I have created, and finally a brief description of what I am trying to do and topology. I am hoping I have a simple syntax problem.&lt;/p&gt;
&lt;p&gt;The error I get is:&lt;/p&gt;
&lt;p&gt;C:\Program Files\IIS\Microsoft Web Deploy&amp;gt;msdeploy.exe -verb:sync -source:metake&lt;br /&gt;y=lm/w3svc/976573149 -dest:metakey=lm/w3svc/976573149,computername=wwwd&lt;br /&gt;Error:&amp;nbsp; The type initializer for &amp;#39;Microsoft.Web.Deployment.DeploymentManager&amp;#39; th&lt;br /&gt;rew an exception.&lt;br /&gt;Error:&amp;nbsp; An XML exception occurred.&lt;br /&gt;C:\Program Files\IIS\Microsoft Web Deploy\msdeploy.exe.configsettings: (line 55,&lt;br /&gt;&amp;nbsp;position 3)&lt;br /&gt;Error:&amp;nbsp; Rule &amp;#39;www140&amp;#39; of type &amp;#39;Microsoft.Web.Deployment.ReplaceRuleHandler&amp;#39; coul&lt;br /&gt;d not be loaded.&lt;br /&gt;Error:&amp;nbsp; The type &amp;#39;Microsoft.Web.Deployment.ReplaceRuleHandler&amp;#39; could not be load&lt;br /&gt;ed. The configuration settings may not be valid.&lt;br /&gt;Error:&amp;nbsp; Could not load type &amp;#39;Microsoft.Web.Deployment.ReplaceRuleHandler&amp;#39; from a&lt;br /&gt;ssembly &amp;#39;Microsoft.Web.Deployment, Version=7.1.0.0, Culture=neutral, PublicKeyTo&lt;br /&gt;ken=31bf3856ad364e35&amp;#39;.&lt;br /&gt;Error count: 1&lt;/p&gt;
&lt;p&gt;The command line that works:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;C:\Program Files\IIS\Microsoft Web Deploy&amp;gt;msdeploy.exe -verb:sync -source:metake&lt;br /&gt;y=lm/w3svc/976573149 -dest:metakey=lm/w3svc/976573149,computername=wwwd -replace&lt;br /&gt;:objectName=metaProperty,scopeAttributeName=name,scopeAttributeValue=&amp;quot;ServerBind&lt;br /&gt;ings&amp;quot;,match=172\.23\.22\.131,replace=172.23.22.141&lt;br /&gt;Action: Updating metaProperty (/lm/w3svc/976573149/ServerBindings)&lt;br /&gt;Change count: 1&lt;/p&gt;
&lt;p&gt;The rule that I have created (taken from the &amp;lt;rules&amp;gt; section of msdeploy.exe.configsettings:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;rules&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;rule name=&amp;quot;UrlScanSkipIncompat&amp;quot; enabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;rule name=&amp;quot;www140&amp;quot; type=&amp;quot;Microsoft.Web.Deployment.ReplaceRuleHandler&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isDefault=&amp;quot;true&amp;quot; objectName=&amp;quot;metaProperty&amp;quot; scopeAttributeName=&amp;quot;name&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scopeAttributeValue=&amp;quot;ServerBindings&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; match=&amp;quot;172\.23\.22\.131&amp;quot; replace=&amp;quot;172.23.22.141&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rules&amp;gt;&lt;/p&gt;
&lt;p&gt;What I am doing:&lt;/p&gt;
&lt;p&gt;I have two IIS6 servers. One, source (wwws), has some 12 application pools and about 3,000 web sites, each appPool bound to a separate IP address. I wish to replicate the entire server to a second (wwwd), forming a web farm. I have installed the msdeploy agent on wwwd, am running msdeploy.exe on wwws, have taken care that the msdeploy.exe.configsettings file is identical on the two servers. I think msdeploy is using .net 3.0, and have installed the .net 3.5 sp1 package, which installs 2.0/SP2, 3.0/SP2 and 3.5/SP1. &lt;/p&gt;
&lt;p&gt;My intention is to create 12 rules, one for each of the 12 IP addresses bound to wwws and the translation for wwwd.&lt;/p&gt;
&lt;p&gt;Thank you, cowen&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Anonymous user</title><link>http://forums.iis.net/p/1153858/1887867.aspx#1887867</link><pubDate>Wed, 17 Dec 2008 19:08:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887867</guid><dc:creator>CedricBoivin</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>How with msdeploy i can specify the new AnonymousUser and password when i migrate my website from IIS 6.0 to IIS 7.0.&lt;br /&gt;My servers are not in a domain so it&amp;#39;s not the same anonymous user.&lt;br /&gt;Thanks a lots.
</description></item><item><title>ReplaceHandler not working, rule or command</title><link>http://forums.iis.net/p/1153820/1887689.aspx#1887689</link><pubDate>Tue, 16 Dec 2008 21:29:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887689</guid><dc:creator>CedricBoivin</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>Hi&lt;br /&gt;
I&amp;#39;ve been using msDeploy for a feww days and it&amp;#39;s working fine, except the   replace rule, i am not able to execute the rule correctly. I have tried command,   rule in configuration file and nothing has worked. Here is my last rule. &lt;br /&gt;
&lt;br /&gt; 
&amp;lt;configuration &amp;gt;&amp;lt;rules &amp;gt;&amp;lt;rule name=&amp;quot;ReplaceIPAddressInBinding&amp;quot; type=&amp;quot;Microsoft.Web.Deployment.DeploymentReplaceRule&amp;quot; enabled=&amp;quot;true&amp;quot; objectName=&amp;quot;IIsWebServer&amp;quot; scopeAttributeName=&amp;quot;ServerBindings&amp;quot; scopeAttributeValue=&amp;quot;192\.168\.99\.100[:\n\c\.\wA-Z]*&amp;quot; targetAttributeName=&amp;quot;bindingInformation&amp;quot; match=&amp;quot;192\.168 \.99\.100&amp;quot; replace=&amp;quot;127.0.0.1&amp;quot; &amp;gt;&amp;lt;/rule&amp;gt;&amp;lt;/rules&amp;gt;&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I  have also tried :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;configuration&amp;gt;&amp;lt;rules &amp;gt;&amp;lt;rule name=&amp;quot;ReplaceIPAddressInBinding&amp;quot; type=&amp;quot;Microsoft.Web.Deployment.DeploymentReplaceRule&amp;quot; enabled=&amp;quot;true&amp;quot; targetAttributeName=&amp;quot;bindingInformation&amp;quot; match=&amp;quot;192\.168\.99\.100&amp;quot; replace=&amp;quot;127.0.0.1&amp;quot; &amp;gt;&amp;lt;/rule&amp;gt;&amp;lt;/rules&amp;gt;&amp;lt;/configuration&amp;gt;&lt;br /&gt;

or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;configuration&amp;gt;&amp;lt;rules &amp;gt;&amp;lt;rule name=&amp;quot;ReplaceIPAddressInBinding&amp;quot; type=&amp;quot;Microsoft.Web.Deployment.DeploymentReplaceRule&amp;quot; enabled=&amp;quot;true&amp;quot; targetAttributeName=&amp;quot;bindingInformation&amp;quot; match=&amp;quot;192\.168\.99\.100&amp;quot; replace=&amp;quot;127.0.0.1&amp;quot; &amp;gt;&amp;lt;/rule&amp;gt;&amp;lt;/rules&amp;gt;&amp;lt;/configuration&amp;gt;
&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;configuration&amp;gt;&amp;lt;rules &amp;gt;&amp;lt;rule name=&amp;quot;ReplaceIPAddressInBinding&amp;quot; type=&amp;quot;Microsoft.Web.Deployment.DeploymentReplaceRule&amp;quot; enabled=&amp;quot;true&amp;quot; objectName=&amp;quot;metaProperty&amp;quot; targetAttributeName=&amp;quot;bindingInformation&amp;quot; match=&amp;quot;192\.168\.99\.100&amp;quot; replace=&amp;quot;127.0.0.1&amp;quot; &amp;gt;&amp;lt;/rule&amp;gt;&amp;lt;/rules&amp;gt;&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;br /&gt; 

my command line is 

&lt;br /&gt;
&lt;br /&gt;
msdeploy -verb:migrate -source:metakey =LM/W3SVC/719185767,computerName=http://192.168.99.100:8081/msdeploy/ -dest:meta key=LM/W3SVC/719185767/ -disableLink:ContentExtension -verbose

&lt;br /&gt;
&lt;br /&gt;
i have also try to add command line&lt;br /&gt;
&lt;br /&gt; 
replace -replace:ObjectName=metaProperty,targetAttributeName=bindingInformation,match=192\.168\.99\.100,replace=192.168.0.9 

&lt;br /&gt;
&lt;br /&gt;
nothing work, anybody know why ?</description></item><item><title>Re: Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7</title><link>http://forums.iis.net/p/1152546/1882641.aspx#1882641</link><pubDate>Wed, 22 Oct 2008 19:22:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1882641</guid><dc:creator>melvebak</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>&lt;p&gt;I think I have it figured out.&amp;nbsp;I am not sure why I keep getting that.&amp;nbsp; &amp;nbsp;Thanks for your response.&lt;/p&gt;
&lt;p&gt;-failureLevel:Never is the key to step over the dependencies you have one machine and no longer need on the other.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To use the remote server allows no archive on the servers&lt;/strong&gt;&lt;br /&gt;msdeploy -verb:migrate -source:metakey=lm/w3svc/986238554,computerName=compName,username=username,password=password&amp;nbsp; -dest:metakey=lm/w3svc/986238554 -failureLevel:Never &amp;gt; msdeploymigrate4.log&lt;/p&gt;
&lt;p&gt;OR another way is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;To make an archive from existing server&lt;/strong&gt;&lt;br /&gt;msdeploy -verb:sync&amp;nbsp; -source:metakey=lm/w3svc/754995972 -dest:archivedir=e:\archWebsite2&amp;nbsp; &amp;gt; msdeploymigrate2.log&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;to load to new server&lt;/strong&gt;&lt;br /&gt;msdeploy -verb:migrate -source:archivedir=d:\archWebsite2 -dest:metakey=lm/w3svc/754995972 -failureLevel:Never &amp;gt; msdeploymigrate22.log&lt;/p&gt;</description></item><item><title>Changing IP address of bindings during migration</title><link>http://forums.iis.net/p/1147991/1863670.aspx#1863670</link><pubDate>Thu, 14 Feb 2008 14:59:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1863670</guid><dc:creator>alexthissen</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Another issue we run into during migration is that the new IIS7 servers use a different cluster IP address in their server binding. So, during migration we would like to replace the old IP address 192.168.0.100 to the new one, say 192.168.0.110. I am pretty sure that a replace rule is what we need, but am not sure on the exact syntax of the -replace option. The documentation that I found was in Chapter 3 of the MS Deploy Walkthroughs&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Is the match pattern specified as a regular expression?&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Can you perform a global replace if multiple matches are made?&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;How to specify the ServerBindings attribute for the IIS6 configuration of a particular Web Site in the metabase?&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Again, any help would be appreciated. Thanks in advance.&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;</description></item></channel></rss>