<?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 'replace'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=replace&amp;orTags=0</link><description>Search results matching tag 'replace'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><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>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><item><title>Feature request: advanced replace</title><link>http://forums.iis.net/p/1147990/1863669.aspx#1863669</link><pubDate>Thu, 14 Feb 2008 14:52:07 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1863669</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;When migrating from IIS6 to IIS7 host header names are also migrated. In IIS6 we used Punycode host headers to encode IDN domain names. As I have seen so far IIS7 does not support Punycode in host headers anymore. Therefore, we want to do a Punycode decode while replacing the host headers during migration.&lt;/p&gt;
&lt;p&gt;Given the syntax for the -replace option I assume that it is kind of hard to call&amp;nbsp;a routine or method to perform an operation on the matched text to replace. That would be a nice feature: ability to use external methods during replace -or- the ability to write your own managed plugins to do so yourself.&amp;nbsp;If there is another way to do advanced replace, that would be welcome as well.&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;</description></item></channel></rss>