mercredi 9 mai 2018

Trying to deploy web.config Connection string to different Environment

Getting this errorenter image description here while publishing the QA environment to test if connection string changes or not, Here is the code for web.QA.config

  <connectionStrings>
    <add name="LoggingConnectionString"
      connectionString="Data Source=abcdzxxxxxxxx"
        xdt:Transform="Replace" xdt:Locator="Match(name)"/>
  </connectionStrings>

And here is the Main web.config file's connection String

<connectionStrings>
   <add name="LoggingConnection" connectionString="abcdzxxxxxxxx" />
</connectionStrings>

Still the connection string from web.config is being called.

Aucun commentaire:

Enregistrer un commentaire