Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The reason for this is because of configuration file inheritance. The connection string at index 0 may not be in your config file, but it may have been inherited from machine.config etc. Have a look at ASP.Net config file hierarchy and inheritance: <a href="http://msdn.microsoft.com/en-us/library/ms178685.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms178685.aspx</a></p> <p>You could clear the inherited connection strings by specifying the following in your web.config</p> <pre><code> &lt;connectionStrings&gt; &lt;clear /&gt; &lt;add name=”MyConnString” connectionString=“Whatever“ /&gt; &lt;/connectionStrings&gt; </code></pre> <p><strong>EDIT: In your config, place your connectionStrings and appSettings tags directly below the configuration element. They should not be within the system.data element. They are direct children of the configuration element. And remove the extra password attribute after the providerName. I can't validate your connection string, since I don't know how you're using it.</strong></p> <pre><code>&lt;configuration&gt; &lt;connectionStrings&gt; &lt;clear /&gt; &lt;add name="cbuddydb" connectionString= "Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=myDataBase;Persist Security Info=True; User=@username;Password=@password;Option=3" providerName="MySql.Data.MySqlClient"/&gt; &lt;/connectionStrings&gt; &lt;appSettings &gt; &lt;add key="username" value ="6/0RUNnSmUBsbdNoCg+9Sw=="/&gt; &lt;add key="password" value =""/&gt; &lt;/appSettings&gt; &lt;system.data&gt; .... </code></pre> <p>You should consider encrypting sensitive information in your config file, like passwords.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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