У меня есть эта ошибка, которую я получаю в этой строке присвоено значение null
db = DatabaseFactory.CreateDatabase (CadenaConexion);
CadenaConexion приносит данные
Стоит отметить, что я переносу приложение, которое было с Famework 2 к тому, что уже сделано в фреймворке 4
app.config это:
<? xml version = "1.0" encoding = "utf-8"?>
<configuration>
<configSections>
<sectionGroup name = "userSettings" type = "System.Configuration.UserSettingsGroup, System, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089">
<section name = "Collaboration E.Properties.Settings" type = "System.Configuration.ClientSettingsSection, System, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089" allowExeDefinition = "MachineToLocalUser" requirePermission = "false" />
<section name = "paths" type = "string" />
</sectionGroup>
</configSections>
<connectionStrings>
<add name = "Inte" connectionString = "Server = DESAOPER; Database = eDocInteDB; User = usr_InteDB; Pwd = G0rd1t @ 5314;" providerName = "System.Data.SqlClient" />
<add name = "Prod" connectionString = "Server = SRVECOM; Database = eDocProdDB; User = Corporate Dbo; Pwd = Record" providerName = "System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key = "Integration" value = "Inte" />
<add key = "Production" value = "Prod" />
</appSettings>
<paths>
<add key = "File Path" value = "% ROUTE%" />
<add key = "Delimiter" value = "
| "/>
<add key = "URLCSDSAT" value = "ftp://ftp2.sat.gob.mx/agti_service_ftp/verifica_comprobante_ftp/CSD.txt" />
<add key = "URLFOLSAT" value = "ftp://ftp2.sat.gob.mx/agti_service_ftp/verifica_comprobante_ftp/FoliosCFD.txt" />
</paths>
<runtime>
<assemblyBinding xmlns = "urn: schemas-microsoft-com: asm.v1">
<dependentAssembly>
<assemblyIdentity name = "DocumentFormat.OpenXml" publicKeyToken = "8fb06cb64d019a17" culture = "neutral" />
<bindingRedirect oldVersion = "0.0.0.0-2.10.0.0" newVersion = "2.10.0.0" />
<! - <assemblyIdentity name = "Microsoft.Practices.ServiceLocation" publicKeyToken = "31bf3856ad364e35" culture = "neutral" />
<bindingRedirect oldVersion = "0.0.0.0-1.0.0.0" newVersion = "1.0.0.0" /> ->
</dependentAssembly>
</assemblyBinding>
</runtime>
<userSettings>
<Collaboration E.Properties.Settings>
<setting name = "Password" serializeAs = "String">
<value />
</setting>
</ Collaboration E. Properties.Settings>
</userSettings>
</configuration>
Все в c #, у меня нет опыта в windows формах
привет и благодарность