<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Web.config transformation</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Web.config transformation</description>
  <pubDate>Wed, 13 May 2026 22:45:59 -700</pubDate>
  <lastBuildDate>Thu, 18 Aug 2011 15:06:39 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2805</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Web.config transformation :   I was just messing around...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11464#11464</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 2805<br /><strong>Posted:</strong> 18-Aug-2011 at 3:06pm<br /><br />I was just messing around with this when I came across this post and thought I add my 2 cents. <div>&nbsp;</div><div>The Web.config transformation files need to use the correct namespace for the ideablade section. So, if you have this in your web.config for example:</div><div>&nbsp;</div><div><div><pre style=": white; color: black; font-family: C&#111;nsolas;"><span style="color: blue;">	&lt;</span><span style="color: rgb163, 21, 21;">ideablade.configuration</span><span style="color: blue;"> </span><span style="color: red;">version</span><span style="color: blue;">=</span>"<span style="color: blue;">6.00</span>"<span style="color: blue;"> </span><span style="color: red;">xmlns</span><span style="color: blue;">=</span><span style="color: blue;"><a href="http://schemas.ideablade.com/2010/IdeaBladeC&#111;nfig" target="_blank">http://schemas.ideablade.com/2010/IdeaBladeConfig</a></span><span style="color: blue;">&gt;</span><span style="color: blue;">		&lt;</span><span style="color: rgb163, 21, 21;">edmKeys</span><span style="color: blue;">&gt;</span><span style="color: blue;">			&lt;!--</span><span style="color: green;"> Security EDM Key </span><span style="color: blue;">--&gt;</span><span style="color: blue;">			&lt;</span><span style="color: rgb163, 21, 21;">edmKey</span><span style="color: blue;"> </span><span style="color: red;">name</span><span style="color: blue;">=</span>"<span style="color: blue;">Security</span>"<span style="color: blue;"> </span><span style="color: red;">connection</span><span style="color: blue;">=</span>"..." /&gt;</pre><pre style=": white; color: black; font-family: C&#111;nsolas;"><span style="color: blue;">		&lt;/</span><span style="color: rgb163, 21, 21;">edmKeys</span><span style="color: blue;">&gt;</span><span style="color: blue;">	&lt;/</span><span style="color: rgb163, 21, 21;">ideablade.configuration</span><span style="color: blue;">&gt;</span></pre></div></div><div>&nbsp;</div><div>And say you want to replace the connection string in that edmKey, the transformation file would look like this:</div><div>&nbsp;</div><div><pre style=": white; color: black; font-family: C&#111;nsolas;"><span style="color: blue;">&lt;?</span><span style="color: rgb163, 21, 21;">xml</span><span style="color: blue;"> </span><span style="color: red;">version</span><span style="color: blue;">=</span>"<span style="color: blue;">1.0</span>"<span style="color: blue;"> </span><span style="color: red;">encoding</span><span style="color: blue;">=</span>"<span style="color: blue;">utf-8</span>"<span style="color: blue;">?&gt;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">configuration</span><span style="color: blue;"> </span><span style="color: red;">xmlns:xdt</span><span style="color: blue;">=</span>"<span style="color: blue;">http://schemas.microsoft.com/XML-Document-Transform</span>"<span style="color: blue;">&gt;</span>  <span style="color: blue;">  &lt;</span><span style="color: rgb163, 21, 21;">ideablade.configuration</span><span style="color: blue;"> </span><span style="color: red;">version</span><span style="color: blue;">=</span>"<span style="color: blue;">6.00</span>"<span style="color: blue;"> </span><span style="color: red;">xmlns</span><span style="color: blue;">=</span><span style="color: blue;"><a href="http://schemas.ideablade.com/2010/IdeaBladeC&#111;nfig" target="_blank">http://schemas.ideablade.com/2010/IdeaBladeConfig</a></span><span style="color: blue;">&gt;</span> <span style="color: blue;">    &lt;</span><span style="color: rgb163, 21, 21;">edmKeys</span><span style="color: blue;">&gt;</span><span style="color: blue;">      &lt;</span><span style="color: rgb163, 21, 21;">edmKey</span><span style="color: blue;"> </span><span style="color: red;">name</span><span style="color: blue;">=</span>"<span style="color: blue;">Security</span>"<span style="color: blue;"> </span><span style="color: blue;">                 </span><span style="color: red;">connection</span><span style="color: blue;">=</span>"<span style="color: blue;">..."</span></pre><pre style=": white; color: black; font-family: C&#111;nsolas;"><span style="color: blue;"></span><span style="color: blue;">                 </span><span style="color: red;">xdt:Transform</span><span style="color: blue;">=</span>"<span style="color: blue;">SetAttributes</span>"<span style="color: blue;"> </span><span style="color: red;">xdt:Locator</span><span style="color: blue;">=</span>"<span style="color: blue;">Match(name)</span>"<span style="color: blue;"> /&gt;</span> <span style="color: blue;">    &lt;/</span><span style="color: rgb163, 21, 21;">edmKeys</span><span style="color: blue;">&gt;</span><span style="color: blue;">  &lt;/</span><span style="color: rgb163, 21, 21;">ideablade.configuration</span><span style="color: blue;">&gt;</span>  <span style="color: blue;">&lt;/</span><span style="color: rgb163, 21, 21;">configuration</span><span style="color: blue;">&gt;</span></pre></div><div>&nbsp;</div><div>This transformation works when you actually build the deployment package, but IntelliSense complains about xdt:Transform and xdt:Locator not being defined. At this point it looks like a bug in IntelliSense. As I said the transformations do actually work.</div><div>&nbsp;</div><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;</pre>]]>
   </description>
   <pubDate>Thu, 18 Aug 2011 15:06:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11464#11464</guid>
  </item> 
  <item>
   <title>Web.config transformation : I found the problem, and it seems...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11199#11199</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1097" rel="nofollow">robertg</a><br /><strong>Subject:</strong> 2805<br /><strong>Posted:</strong> 07-Jul-2011 at 3:01pm<br /><br /><P>I found the problem, and it seems to be with the version and xmlns statements in the config file. When I remove them, and have sections that look like this, the transformation works:</P><DIV>&nbsp;</DIV><DIV>From my Web.Config:</DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><P><FONT color=#000000 face=Verdana>&lt;ideablade.configuration&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;objectServer serviceName="EntityService.svc" remoteBaseURL="<a href="http://www.oldserveraddress.com/" target="_blank">http://www.oldserveraddress.com/</A>" /&gt;<BR>&lt;/ideablade.configuration&gt;<BR></FONT></FONT></FONT></FONT></P></DIV><DIV>&nbsp;</DIV><DIV>From my Web.Release.Config:</DIV><DIV>&nbsp;</DIV><DIV>&lt;ideablade.configuration&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;objectServer serviceName="EntityService.svc"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; remoteBaseURL=http://www.newserveraddress.com/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xdt:Transform="SetAttributes()" xdt:Locator="Match(serviceName)"/&gt;<BR>&lt;/ideablade.configuration&gt;</DIV><DIV><BR>&nbsp;</DIV><DIV>We'll open a defect to try to determine why the transformation won't work when the xmlns is declared, but in the meanwhile, this seems to be the way to do it.</DIV><span style="font-size:10px"><br /><br />Edited by robertg - 07-Jul-2011 at 3:04pm</span>]]>
   </description>
   <pubDate>Thu, 07 Jul 2011 15:01:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11199#11199</guid>
  </item> 
  <item>
   <title>Web.config transformation : Oh, I see! I&amp;#039;m reading the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11198#11198</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1097" rel="nofollow">robertg</a><br /><strong>Subject:</strong> 2805<br /><strong>Posted:</strong> 07-Jul-2011 at 12:21pm<br /><br />Oh, I see! I'm reading the MSDN documentation on this right now, and it turns out that the Locator is optional anyway (who knew?), so I think we can simplify things by leaving it out. Also, it looks like since you just want to replace one attribute, we probably want to use the appropriate declaration, rather than trying to replace the entire object. <DIV>&nbsp;</DIV><DIV>So, I think we could try something like this:</DIV><DIV>&nbsp;</DIV><DIV>&lt;configuration xmlns:xdt="<a href="http://schemas.microsoft.com/XML-&#068;ocument-Trans&#102;orm" target="_blank">http://schemas.microsoft.com/XML-Document-Transform</A>"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;ideablade.configuration&gt;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;objectServer&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; remoteBaseURL="<a href="http://www.newserveraddress.com/" target="_blank"><FONT face="">http://www.newserveraddress.com/</FONT></A>"</DIV><DIV>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xdt:Transform="SetAttributes(remoteBaseUrl)"&gt;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;/&gt;</DIV><DIV>&nbsp;&nbsp;&nbsp; &lt;/ideablade.configuration&gt;</DIV><DIV>&lt;/configuration&gt;</DIV><DIV>&nbsp;</DIV><DIV>That way, we should be specifying that we want to transform the remoteBaseUrl property of ideablade.configuration.objectserver, and leaving everything else as it is.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Edit: Testing, and this doesn't work as expected. I'm mucking with it now and will post when it does work.</DIV><span style="font-size:10px"><br /><br />Edited by robertg - 07-Jul-2011 at 12:35pm</span>]]>
   </description>
   <pubDate>Thu, 07 Jul 2011 12:21:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11198#11198</guid>
  </item> 
  <item>
   <title>Web.config transformation :   Yes, sorry, when I was trying...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11197#11197</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1120" rel="nofollow">scottarlp</a><br /><strong>Subject:</strong> 2805<br /><strong>Posted:</strong> 07-Jul-2011 at 11:49am<br /><br />Yes, sorry, when I was trying to copy/paste and protect the innocent, I accidently left that out of my example config. I'm kind of amazed that given VS2010 being out for a while and this built in studio feature being a god send for deployment that IB hasn't shown something about it somewhere. I'm no pro on all the XML tag definitions, so I'm not sure what to even google for IB's custom XML section and how it interfaces with another section (the transformation).<div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 07 Jul 2011 11:49:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11197#11197</guid>
  </item> 
  <item>
   <title>Web.config transformation : I&amp;#039;m no expert in this, but...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11196#11196</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1097" rel="nofollow">robertg</a><br /><strong>Subject:</strong> 2805<br /><strong>Posted:</strong> 07-Jul-2011 at 11:41am<br /><br />I'm no expert in this, but doesn't your locator declaration &nbsp;need to be something like xdt:Locator="Match(serviceName)" /&gt;?]]>
   </description>
   <pubDate>Thu, 07 Jul 2011 11:41:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11196#11196</guid>
  </item> 
  <item>
   <title>Web.config transformation :   Does anyone have an example...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11149#11149</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1120" rel="nofollow">scottarlp</a><br /><strong>Subject:</strong> 2805<br /><strong>Posted:</strong> 30-Jun-2011 at 1:23pm<br /><br />Does anyone have an example of the transformation of the web.config for the objectServer? I can transform elements of the config except for the IdeaBlade section. It has something to do with the custom section name, but I can't figure out a syntax to make it work. The xdt: elements are unknown within the ideablade section.<div>&nbsp;</div><div>Example web.config (shortened). Here's the original.</div><div><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"></font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"><p>&lt;configuration&gt;<br>&lt;section name="ideablade.configuration" type="IdeaBlade.Core.Configuration.IdeaBladeSection, IdeaBlade.Core" /&gt;<br>&lt;/configSections&gt;</p><p>&lt;ideablade.configuration version="6.00" xmlns="<a href="http://schemas.ideablade.com/2010/IdeaBladeC&#111;nfig" target="_blank">http://schemas.ideablade.com/2010/IdeaBladeConfig</a>"&gt;<br>&lt;objectServer serviceName="EntityService.svc" remoteBaseURL="<a href="http://localhost" target="_blank">http://localhost</a>" serverPort="80"&gt;<br>&lt;clientSettings isDistributed="true" /&gt;<br>&lt;/objectServer&gt;<br>&lt;/ideablade.configuration&gt;</p><p>&lt;/configuration&gt;</p><p><font color="#000000">Then I want to do a transformation basically to change the remoteBaseURL when I publish. </font></p><p>&lt;configuration xmlns:xdt="<a href="http://schemas.microsoft.com/XML-&#068;ocument-Trans&#102;orm" target="_blank">http://schemas.microsoft.com/XML-Document-Transform</a>"&gt;<br>&lt;configSections&gt;<br>&lt;section name="ideablade.configuration" type="IdeaBlade.Core.Configuration.IdeaBladeSection, IdeaBlade.Core"/&gt;<br>&lt;/configSections&gt;</p><p>&lt;ideablade.configuration version="6.00" xmlns="<a href="http://schemas.ideablade.com/2010/IdeaBladeC&#111;nfig" target="_blank">http://schemas.ideablade.com/2010/IdeaBladeConfig</a>"&gt;<br>&lt;objectServer serviceName="EntityService.svc" remoteBaseURL="<a href="http://server" target="_blank">http://server</a>" serverPort="80"<br>xdt:Transform="Replace" xdt:"Match(serviceName)"&gt;<br>&lt;clientSettings isDistributed="true" /&gt;<br>&lt;/objectServer&gt;<br>&lt;/ideablade.configuration&gt;</p><p>&lt;/configuration&gt;</p><p></font></font></font>&nbsp;</p><p><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"></font></font></font></p><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"></font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font></div>]]>
   </description>
   <pubDate>Thu, 30 Jun 2011 13:23:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2805&amp;PID=11149#11149</guid>
  </item> 
 </channel>
</rss>