Page 1 of 1

UniConnectionStringBuilder Exception: Keyword not supported: 'Server'. (for MySql provider)

Posted: Fri 01 Aug 2014 15:44
by idem84
MySql connection string issue
Help me please
Thanks in advance!
Old versions(3.50.668 and previous) never throws, works ok

In version 3.50.712 throws "Keyword not supported: 'Server'". (for MySql).
Shouldn't be keyword 'Host'?
In version 3.50.678 throws "Keyword not supported: 'UserID'". (for MySql)
Shouldn't be 'User Id'?

Samplecode

var uniConnectionBuilder= new Devart.Data.Universal.UniConnectionStringBuilder();
uniConnectionBuilder.Provider = "MySql";
uniConnectionBuilder.DataSource = "127.0.0.1";
uniConnectionBuilder.UserId = "root";
uniConnectionBuilder.Password = "root";
uniConnectionBuilder.Database = "mydb";
uniConnectionBuilder.Pooling = false;
uniConnectionBuilder.Add("Connect Timeout", 25);
var connString=uniConnectionBuilder.ConnectionString; //throws here

Stacktrace

at System.Data.Common.DbConnectionStringBuilder.get_Item(String keyword)
at Devart.Common.DbConnectionStringBuilder.get_Item(String keyword)
at Devart.Data.Universal.UniConnectionStringBuilder.g(String A_0)
at Devart.Data.Universal.UniPropertyDescriptor.GetValue(Object component)
at Devart.Data.Universal.UniConnectionStringBuilder.a(Boolean A_0)
at Devart.Data.Universal.UniConnectionStringBuilder.GetNativeConnectionString()
at Devart.Data.Universal.l..ctor(cb A_0)
at Devart.Data.Universal.o.a(cb A_0, Object A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionFactory.a(DbConnectionBase A_0, cb A_1)
at Devart.Common.DbConnectionFactory.b(DbConnectionBase A_0)
at Devart.Common.DbConnectionClosed.Open(DbConnectionBase outerConnection)
at Devart.Common.DbConnectionBase.Open()
at Devart.Data.Universal.UniConnection.Open()

Re: UniConnectionStringBuilder Exception: Keyword not supported: 'Server'. (for MySql provider)

Posted: Mon 04 Aug 2014 10:32
by Pinturiccio
We have reproduced the issue. We will investigate it and post here about the results as soon as possible.

Re: UniConnectionStringBuilder Exception: Keyword not supported: 'Server'. (for MySql provider)

Posted: Wed 13 Aug 2014 10:42
by Pinturiccio
We have fixed the bug with throwing the "Keyword not supported: 'Server'" exception and the bug with throwing the "Keyword not supported: 'UserID'" exception with MySQL. We will post here when the corresponding build of dotConnect Universal is available for download.

Re: UniConnectionStringBuilder Exception: Keyword not supported: 'Server'. (for MySql provider)

Posted: Thu 14 Aug 2014 15:19
by Pinturiccio
New build of dotConnect Universal 3.50.722 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/univer ... nload.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?t=30169