Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>We were getting an error related to this after a recent release of code to one of our development environments. We have an application that is a child of another application. This relationship has been working fine for YEARS until yesterday.</p> <p>The problem: <br/> We were getting a yellow stack trace error due to duplicate keys being entered. This is because both the web.config for the child and parent applications had this key. But this existed for many years like this without change. Why all of sudden its an issue now?</p> <p>The solution: <br /> The reason this was never a problem is because the keys AND values were always the same. Yesterday we updated our SQL connection strings to include the Application Name in the connection string. This made the string unique and all of sudden started to fail.</p> <p>Without doing any research on the exact reason for this, I have to assume that when the child application inherits the parents web.config values, it ignores identical key/value pairs.</p> <p>We were able to solve it by wrapping the connection string like this <br/></p> <pre><code> &lt;location path="." inheritInChildApplications="false"&gt; &lt;connectionStrings&gt; &lt;!-- Updated connection strings go here --&gt; &lt;/connectionStrings&gt; &lt;/location&gt; </code></pre> <p><strong>Edit: </strong> I forgot to mention that I added this in the PARENTS web.config. I didn't have to modify the child's web.config.</p> <p>Thanks for everyones help on this, saved our butts.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload