title: configuration system failed to initialize error
body: <p>I have this error that I get on this line is assigned null</p>
  
  <pre><code>db = DatabaseFactory.CreateDatabase (CadenaConexion);
  </code></pre>
  
  <p>the CadenaConexion brings data</p>
  
  <p>It is worth mentioning that I am migrating an application that was with famework 2 to one that is already made in framework 4</p>
  
  <p>The app.config is this:</p>
  
  
  
  <pre><code>    &lt;? xml version = "1.0" encoding = "utf-8"?&gt;
      &lt;configuration&gt;
        &lt;configSections&gt;
          &lt;sectionGroup name = "userSettings" type = "System.Configuration.UserSettingsGroup, System, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089"&gt;
            &lt;section name = "Collaboration E.Properties.Settings" type = "System.Configuration.ClientSettingsSection, System, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089" allowExeDefinition = "MachineToLocalUser" requirePermission = "false" /&gt;
            &lt;section name = "paths" type = "string" /&gt;
          &lt;/sectionGroup&gt;
        &lt;/configSections&gt;
        &lt;connectionStrings&gt;
          &lt;add name = "Inte" connectionString = "Server = DESAOPER; Database = eDocInteDB; User = usr_InteDB; Pwd = G0rd1t @ 5314;" providerName = "System.Data.SqlClient" /&gt;
          &lt;add name = "Prod" connectionString = "Server = SRVECOM; Database = eDocProdDB; User = Corporate Dbo; Pwd = Record" providerName = "System.Data.SqlClient" /&gt;
        &lt;/connectionStrings&gt;
        &lt;appSettings&gt;
          &lt;add key = "Integration" value = "Inte" /&gt;
          &lt;add key = "Production" value = "Prod" /&gt;
        &lt;/appSettings&gt;
        &lt;paths&gt;
          &lt;add key = "File Path" value = "% ROUTE%" /&gt;
          &lt;add key = "Delimiter" value = "
      | "/&gt;
          &lt;add key = "URLCSDSAT" value = "ftp://ftp2.sat.gob.mx/agti_service_ftp/verifica_comprobante_ftp/CSD.txt" /&gt;
          &lt;add key = "URLFOLSAT" value = "ftp://ftp2.sat.gob.mx/agti_service_ftp/verifica_comprobante_ftp/FoliosCFD.txt" /&gt;
        &lt;/paths&gt;
        &lt;runtime&gt;
          &lt;assemblyBinding xmlns = "urn: schemas-microsoft-com: asm.v1"&gt;
            &lt;dependentAssembly&gt;
              &lt;assemblyIdentity name = "DocumentFormat.OpenXml" publicKeyToken = "8fb06cb64d019a17" culture = "neutral" /&gt;
              &lt;bindingRedirect oldVersion = "0.0.0.0-2.10.0.0" newVersion = "2.10.0.0" /&gt;
              &lt;! - &lt;assemblyIdentity name = "Microsoft.Practices.ServiceLocation" publicKeyToken = "31bf3856ad364e35" culture = "neutral" /&gt;
              &lt;bindingRedirect oldVersion = "0.0.0.0-1.0.0.0" newVersion = "1.0.0.0" /&gt; -&gt;
            &lt;/dependentAssembly&gt;
          &lt;/assemblyBinding&gt;
        &lt;/runtime&gt;
        &lt;userSettings&gt;
          &lt;Collaboration E.Properties.Settings&gt;
            &lt;setting name = "Password" serializeAs = "String"&gt;
              &lt;value /&gt;
            &lt;/setting&gt;
          &lt;/ Collaboration E. Properties.Settings&gt;
        &lt;/userSettings&gt;
      &lt;/configuration&gt;
  </code></pre>
  
  <p>Everything is in c #, I have no experience in windows forms</p>
  
  <p>greetings and thanks</p>