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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21395492/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 19:54:59  来源:igfitidea点击:

ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

mysqlvb.netdatasetcrystal-reports-2008

提问by bolek evora

how can i fix this error? ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.. it is occuring in a new project that i am doing... im using vb 2008 , MYSQL as my database and windows 8.1 as my OS

我该如何解决这个错误?错误 [IM014] [Microsoft][ODBC 驱动程序管理器] 指定的 DSN 包含驱动程序和应用程序之间的架构不匹配。 Windows 8.1 作为我的操作系统

i read on forums that you just fix with the odbc administrator tool... i tried creating my DSN there but it still doesnt work... i tried opening an old project of mine it works fine.. but this new project keeps getting that error.. i need this to work so that i can do my crystal reports.. i've been trying to fix this error for a full day now and i cant fix it..

我在论坛上读到你只是用 odbc 管理员工具修复...我尝试在那里创建我的 DSN 但它仍然不起作用...我尝试打开我的一个旧项目它工作正常......但这个新项目一直在得到它错误..我需要这个工作,这样我才能做我的水晶报告..我一整天都在尝试修复这个错误,但我无法修复它..

can someone help me? THANKS..

有人能帮我吗?谢谢..

回答by

its a 64 vs 32 bit issue. You are accessing a 32 bit odbc driver on a 64 bit system.

它是 64 位与 32 位的问题。您正在 64 位系统上访问 32 位 odbc 驱动程序。

IF YOU OPEN c:\windows\system32\odbcad32.exe you will not see a driver there that is in c:\windows\syswow64\odbcad32.exe (or just the opposite)

如果您打开 c:\windows\system32\odbcad32.exe,您将看不到 c:\windows\syswow64\odbcad32.exe 中的驱动程序(或正好相反)

Check the target platform of your application, and if that doesn't fix it, you might be able to sneak by just installing the correct driver ( 64 or 32 bit )

检查您的应用程序的目标平台,如果这不能解决它,您可能可以通过安装正确的驱动程序(64 或 32 位)偷偷摸摸

回答by anhtv13

After searching on the internet I found the solution for my .vb project:

在互联网上搜索后,我找到了我的 .vb 项目的解决方案:

  1. Open ODBC Data Sources (32-bit) (location: C:\Windows\syswow64\odbcad32.exe)
  2. Open tab System DNS
  3. Add -> Sybase ACE ODBC Driver -> Fill in Name (example: DSN_32), net work address (address and port, example: 192.168.1.1,4100) and database name -> Test connection ->OK
  1. 打开 ODBC 数据源(32 位)(位置:C:\Windows\syswow64\odbcad32.exe)
  2. 打开选项卡系统 DNS
  3. 添加 -> Sybase ACE ODBC Driver -> 填写名称(例如:DSN_32)、网络地址(地址和端口,例如:192.168.1.1,4100)和数据库名称 -> 测试连接 -> 确定

enter image description here

在此处输入图片说明

  1. From your application, update your connection string to use DSN=DSN_32 Example:
  1. 在您的应用程序中,更新您的连接字符串以使用 DSN=DSN_32 示例:

value="PWD=123456;DSN=DSN_32;UID=123456;SRVR=123456;DB=123456"

value="PWD=123456;DSN=DSN_32;UID=123456;SRVR=123456;DB=123456"

enter image description here

在此处输入图片说明

Hope this helps.

希望这可以帮助。

回答by Fad Sel

RESOLVED !

解决 !

  1. Go to IIS.
  2. Choose Your app pool.
  3. Go To Advanced Settings, and
  4. Enable enable32bitAppOnWin64
  1. 转到 IIS。
  2. 选择您的应用程序池。
  3. 转到高级设置,然后
  4. 使能够 enable32bitAppOnWin64