Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/315.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# c“表适配器和”;指定的DSN包含驱动程序和应用程序之间的架构不匹配;_C#_Postgresql_Architecture_Odbc_Tableadapter - Fatal编程技术网

C# c“表适配器和”;指定的DSN包含驱动程序和应用程序之间的架构不匹配;

C# c“表适配器和”;指定的DSN包含驱动程序和应用程序之间的架构不匹配;,c#,postgresql,architecture,odbc,tableadapter,C#,Postgresql,Architecture,Odbc,Tableadapter,首先,我想说的是,这个问题与为x86选择x64驱动程序或viceversa无关。这不是odbc32的问题 昨天我们需要对这个糟糕的Windows10进行紧急格式化。我做到了,并开始安装我的程序。都很好。我准备好了VisualStudio comunity 2015,以便继续使用我的项目,安装进展顺利,像往常一样安装了postgresql odbc连接器。但是现在,昨天运行的项目perfecty给了我这个错误 只是为了确保这不是一个连接器问题,启动了一个新项目,添加了数据集,来自服务器的表,新的d

首先,我想说的是,这个问题与为x86选择x64驱动程序或viceversa无关。这不是odbc32的问题

昨天我们需要对这个糟糕的Windows10进行紧急格式化。我做到了,并开始安装我的程序。都很好。我准备好了VisualStudio comunity 2015,以便继续使用我的项目,安装进展顺利,像往常一样安装了postgresql odbc连接器。但是现在,昨天运行的项目perfecty给了我这个错误

只是为了确保这不是一个连接器问题,启动了一个新项目,添加了数据集,来自服务器的表,新的datagrid…所有这些都工作得很好

每次代码调用Tableadaper.Fill()方法时,它都返回异常:

错误[IM014][Microsoft][ODBC驱动程序管理器]指定的DSN包含驱动程序和应用程序之间的体系结构不匹配

我试着用新的转接器替换这些转接器,但没有效果。有什么想法吗

private void form_comp_consulta_Load(object sender, EventArgs e)
    {

        arteconf_baseDataSet.EnforceConstraints = false;

        proveedoresTableAdapter.Fill(arteconf_baseDataSet.proveedores);  //Error comes from this line, in all formularies. Every time a TableAdapter.Fill() is used.
        componentesTableAdapter.Fill(arteconf_baseDataSet.componentes);

        this.ActiveControl = textBox_comp_consulta_buscar;

    }