This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19339|Reply: 0

[Source] No object named 'MySql-5.7.17' is defined : Cannot find definition for object...

[Copy link]
Posted on 5/18/2017 2:07:27 PM | | |
No object named 'MySql-5.7.17' is defined : Cannot find definition for object [MySql-5.7.17]
Error thrown by a dependency of object 'MySql-5.7.17' defined in 'assembly [Spring.Data, Version=1.1.2.20125, Culture=neutral, PublicKeyToken=65e474d141e25e07], resource [ Spring.Data.Common.dbproviders.xml]' : Unsatisfied dependency expressed through constructor argument with index 2 of type [System.Type] : Could not convert constructor argument value [ MySql.Data.MySqlClient.MySqlConnection, MySql.Data, Version=5.0.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d] to required type [System.Type] : Cannot convert property value of type [System.String] to required type [System.Type] for property ''.
while resolving 'constructor argument with name dbmetadata' to '(inner object)' defined in 'assembly [Spring.Data, Version=1.1.2.20125, Culture=neutral, PublicKeyToken= 65e474d141e25e07], resource [Spring.Data.Common.dbproviders.xml]'
The main reason is that Spring cannot initialize the database provider when configuring the DbProvider.

Check out the Spring Support Database Provider:

SqlServer-1.1 - Microsoft SQL Server, provider V1.0.5000.0 in framework .NET V1.1
SqlServer-2.0 (aliased to System.Data.SqlClient) - Microsoft SQL Server, provider V2.0.0.0 in framework .NET V2.0
SqlServerCe-3.1 - Microsoft SQL Server Compact Edition, provider V9.0.242.0
SqlServerCe-3.5.1 (aliased to System.Data.SqlServerCe) - Microsoft SQL Server Compact Edition, provider V3.5.1.0
OleDb-1.1 - OleDb, provider V1.0.5000.0 in framework .NET V1.1
OleDb-2.0 (aliased to System.Data.OleDb) - OleDb, provider V2.0.0.0 in framework .NET V2.0
OracleClient-2.0 (aliased to System.Data.OracleClient) - Oracle, Microsoft provider V2.0.0.0
OracleODP-2.0 (aliased to System.DataAccess.Client) - Oracle, Oracle provider V2.102.2.20 (Oracle 10g)
OracleODP-11-2.0 - Oracle, Oracle provider V2.111.7.20 (Oracle 11g)
MySql - MySQL, MySQL provider 1.0.10.1
MySql-1.0.9 - MySQL, MySQL provider 1.0.9
MySql-5.0 - MySQL, MySQL provider 5.0.7.0
MySql-5.0.8.1 - MySQL, MySQL provider 5.0.8.1
MySql-5.1 - MySQL, MySQL provider 5.1.2.2
MySql-5.1.4 - MySQL, MySQL provider 5.1.2.2
MySql-5.2.3 - MySQL, MySQL provider 5.2.3.0
MySql-6.1.3 (aliased to MySql.Data.MySqlClient) - MySQL, MySQL provider 6.1.3.0
Npgsql-1.0 - Postgresql provider 1.0.0.0 (and 1.0.0.1 - were build with same version info)
Npgsql-2.0-beta1 - Postgresql provider 1.98.1.0 beta 1
Npgsql-2.0 - Postgresql provider 2.0.0.0
DB2-9.0.0-1.1 - IBM DB2 Data Provider 9.0.0 for .NET Framework 1.1
DB2-9.0.0-2.0 (aliased to IBM. Data.DB2) - IBM DB2 Data Provider 9.0.0 for .NET Framework 2.0
DB2-9.1.0-1.1 - IBM DB2 Data Provider 9.1.0 for .NET Framework 1.1
DB2-9.1.0.2 (aliased to IBM. Data.DB2.9.1.0) - IBM DB2 Data Provider 9.1.0 for .NET Framework 2.0
iDB2-10.0.0.0 - IBM iSeries DB2 Data Provider 10.0.0.0 for .NET Framework 2.0
SQLite-1.0.43 - SQLite provider 1.0.43 for .NET Framework 2.0
SQLite-1.0.44 - SQLite provider 1.0.44 for .NET Framework 2.0
SQLite-1.0.47 - SQLite provider 1.0.47 for .NET Framework 2.0
SQLite-1.0.56 - SQLite provider 1.0.56 for .NET Framework 2.0
SQLite-1.0.65 (aliased to System.Data.SQLite) - SQLite provider 1.0.65 for .NET Framework 2.0
file:///http://www.springframework.net/docs/1.3.0/reference/html/images/admons/note.pngNoteThe default parameter prefix used in SQLite is : and not @, please write your SQL accordingly or define a provider definition for SQLite.
Firebird-2.1 (aliased to Firebird-2.1) - Firebird Server, provider V2.1.0.0 in framework .NET V2.0
SybaseAse-12 - Sybase ASE provider for ASE 12.x
SybaseAse-15 - Sybase ASE provider for ASE 15.x
SybaseAse-AdoNet2 - Sybase ADO.NET 2.0 provider for ASE 12.x and 15.x
Odbc-1.1 - ODBC provider V1.0.5000.0 in framework .NET V1.1
Odbc-2.0 - ODBC provider V2.0.0.0 in framework .NET V2
Cache-2.0.0.1 (aliased to InterSystems.Data.CacheClient) - Cache provider Version 2.0.0.1 in framework .NET V2



http://www.springframework.net/docs/1.3.0/reference/html/dbprovider.html





Previous:The difference between time formatting hh:mm:ss and HH:mm:ss
Next:nhibernate cannot successfully create a table structure in a MySQL database
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com