连接MySQL 提示错误"未能加载文件或程序集“MySql.Data, Ve
CodeSmith4.1.3版本连接MySQL 提示错误未能加载文件或程序集“MySql.Data, Version=5.1.4.0, Culture=neutral,........”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 解决方法: 下载MySQL.Data.dll(5.1.4)程序集 ,地址是ftp.ntu.edu.tw
CodeSmith4.1.3版本连接MySQL 提示错误"未能加载文件或程序集“MySql.Data, Version=5.1.4.0, Culture=neutral,........”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。"
解决方法:
下载MySQL.Data.dll(5.1.4)程序集 ,地址是 ftp.ntu.edu.tw/pub/MySQL/Downloads/Connector-Net/mysql-connector-net-5.1.4-noinstall.zip
将MySQL.Data.dll放在CodeSmith目录中Bin目录下,重新运行,问题解决!
注意:下载MySQL.Data.dll版本必须和的连接错误提示中的版本号对应,下载地址"5.1.4"改为你所需版本号即可
提示"未能加载文件或程序集“MySql.Data, Version=5.0.7.0, Culture=neutral,PublicKeyToken=c5687fc88969c44d”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自HRESULT:0x80131040)"
把MySQL.Data.dll,复制到CodeSmith下的Bin目录,再调用还是错误,百思不得其解,
后来看MySQL.Data.dll文件版本是5.2.1.0,比错误提示的大,看来要下一个5.0.7.0的试试,
下载地址是 http://ftp.ntu.edu.tw/pub/MySQL/Downloads/Connecto r-Net/mysql-connector-net-5.0.7-noinstall.zip ,
将其中的MySQL.Data.Dll文件重新复制到CodeSmith下的Bin目录,再配置测试,OK了.
看来CodeSmith将数据库程序调用写死了,应该设置成配置文件,让用户自己定义版本,这样才更灵活.
http://www.cnblogs.com/68681395/archive/2010/09/26/1835971.html
未能加载文件或程序集“Oracle.DataAccess, Version=2.111.7.0, Culture=neutral, PublicKeyToken=89b483f429c47342”或它的某一个依赖项。试图加载格式不正确的程序
对于64位的操作系统:Oracle.DataAccess.dll iis的应用程序池的高级选项
这里要设置为true,上面的是32位的数据库,上次的出错,就是这个解决。但是当数据库为64位的时候:Oracle.DataAccess.dll,要换成当前数据库的这个文件,同时把那个地方设置为false
最近在做ASP.Net开发中使用Oracle,其中用到了Oracle提供的数据库提供程序ODP.NET,具体用到了Oracle.DataAccess.dll这个组件。在实践中,碰到过几次都出现“未能加载文件或程序集”Oracle.DataAccess,
Version=2.112.1.0 …””,如上图所示。在此,问题和解决方法总结如下:
1. 问题出现的可能原因
(1)引用出错:无法加载时,可能是Oracle.DataAccess.dll引用的路径不正确;
(2)版本不匹配:在开发中引用的Oracle.DataAccess.dll与Oracle中的版本不匹配。所谓版本不匹配,一方面是指版本号不匹配;另一方面是64位和32位不匹配,使用64位的Oracle时一定要使用相应64位的Oracle.DataAccess.dll。
2. 解决办法
(1)检查引用是否出错时很简单,就看引用路径中是否存在Oracle.DataAccess.dll这个文件;
(2)Oracle.DataAccess.dll 一般位于Oracle安装目录 “../product/11.2.0/dbhome_1/ODP.NET/bin/2.x/”中,在开发时使用与程序中连接Oracle对应的Dll即可。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Laravel is a PHP framework for easy building of web applications. It provides a range of powerful features including: Installation: Install the Laravel CLI globally with Composer and create applications in the project directory. Routing: Define the relationship between the URL and the handler in routes/web.php. View: Create a view in resources/views to render the application's interface. Database Integration: Provides out-of-the-box integration with databases such as MySQL and uses migration to create and modify tables. Model and Controller: The model represents the database entity and the controller processes HTTP requests.

MySQL and phpMyAdmin are powerful database management tools. 1) MySQL is used to create databases and tables, and to execute DML and SQL queries. 2) phpMyAdmin provides an intuitive interface for database management, table structure management, data operations and user permission management.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

Article summary: This article provides detailed step-by-step instructions to guide readers on how to easily install the Laravel framework. Laravel is a powerful PHP framework that speeds up the development process of web applications. This tutorial covers the installation process from system requirements to configuring databases and setting up routing. By following these steps, readers can quickly and efficiently lay a solid foundation for their Laravel project.

In MySQL, the function of foreign keys is to establish the relationship between tables and ensure the consistency and integrity of the data. Foreign keys maintain the effectiveness of data through reference integrity checks and cascading operations. Pay attention to performance optimization and avoid common errors when using them.

The main difference between MySQL and MariaDB is performance, functionality and license: 1. MySQL is developed by Oracle, and MariaDB is its fork. 2. MariaDB may perform better in high load environments. 3.MariaDB provides more storage engines and functions. 4.MySQL adopts a dual license, and MariaDB is completely open source. The existing infrastructure, performance requirements, functional requirements and license costs should be taken into account when choosing.

Abstract of the first paragraph of the article: When choosing software to develop Yi framework applications, multiple factors need to be considered. While native mobile application development tools such as XCode and Android Studio can provide strong control and flexibility, cross-platform frameworks such as React Native and Flutter are becoming increasingly popular with the benefits of being able to deploy to multiple platforms at once. For developers new to mobile development, low-code or no-code platforms such as AppSheet and Glide can quickly and easily build applications. Additionally, cloud service providers such as AWS Amplify and Firebase provide comprehensive tools

SQL is a standard language for managing relational databases, while MySQL is a database management system that uses SQL. SQL defines ways to interact with a database, including CRUD operations, while MySQL implements the SQL standard and provides additional features such as stored procedures and triggers.
