Replacing the Bindings file values with

Topics: Bindings File, Settings Management and SSO
Apr 19, 2012 at 8:31 PM
Edited Apr 19, 2012 at 8:31 PM

I have the following in the btdproj file :

 

tion="'$(Configuration)' == ''">Debug</Configuration>

 

    <Platform Condition="'$(Platform)' == ''">x86</Platform>
    <SchemaVersion>1.0</SchemaVersion>
    <ProjectName>InterfaceTest</ProjectName>
    <ProjectVersion>1.0</ProjectVersion>
    <IncludeComponents>True</IncludeComponents>
    <IncludeSSO>False</IncludeSSO>
    <IncludeSchemas>True</IncludeSchemas>
    <IncludeTransforms>False</IncludeTransforms>
    <IncludeOrchestrations>True</IncludeOrchestrations>
    <UsingMasterBindings>True</UsingMasterBindings>
    <IncludeMessagingBindings>True</IncludeMessagingBindings>
    <ApplyXmlEscape>True</ApplyXmlEscape>
    <SkipIISReset>True</SkipIISReset>
    <EnableXmlPreprocess>True</EnableXmlPreprocess>

1. the portbindings.xml that is generated has   <Address>${DbName}</Address>.
2. The env specific file generated is as follows :
<?xml version="1.0" encoding="utf-8"?>
<!--
  This file was auto-generated by the Environment Settings Spreadsheet to XML Exporter (http://envsettingsmanager.codeplex.com).

  Input File: SettingsFileGenerator.xml
  Created: 4/19/2012 04:19 PM
-->
<settings>
  <!--Environment: Local Development-->
  <property name="DbName">TestDbName</property>

</settings>
But when I deploy the bindings the DbName is not getting replaced. The port binding shows up as such like {$DbName} with out 
substituting the value from the TestDbName.

 



Coordinator
Apr 19, 2012 at 9:59 PM

The directive ${DbName} is in PortBindingsMaster.xml and it's still appearing in PortBindings.xml, correct?  It doesn't look like you have RequireXmlPreprocessDirectives in your .btdfproj.  The default is true.  Are you surrounding your ${DbName} with the preprocessor comment, like <!-- ifdef ${_xml_preprocess} -->?  If not, then you need to set RequireXmlPreprocessDirectives to false.

Have you looked at the BasicMasterBindings sample app?

Thanks,
Tom