Connector/Net no longer supports server versions prior to 5.0



  • I'm installing this on a 2008 R2 server, the install ran fine but when I browse out to the web interface I am receiving the following error.

    Server Error in '/clonedeploy' Application.

    Connector/Net no longer supports server versions prior to 5.0
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NotSupportedException: Connector/Net no longer supports server versions prior to 5.0

    Source Error:

    Line 57:
    Line 58: if (filter != null)
    Line 59: query = query.Where(filter);
    Line 60:
    Line 61: if (orderBy != null)

    Source File: c:\Program Files (x86)\clonedeploy\web\App_Code\DAL\GenericRepository.cs Line: 59

    Stack Trace:

    [NotSupportedException: Connector/Net no longer supports server versions prior to 5.0]
    MySql.Data.MySqlClient.NativeDriver.Open() +1477
    MySql.Data.MySqlClient.Driver.Open() +260
    MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +432
    MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection() +18
    MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +403
    MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +228
    MySql.Data.MySqlClient.MySqlPool.GetConnection() +106
    MySql.Data.MySqlClient.MySqlConnection.Open() +1559
    MySql.Data.MySqlClient.MySqlProviderServices.GetDbProviderManifestToken(DbConnection connection) +182
    System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection) +118

    [ProviderIncompatibleException: The provider did not return a ProviderManifestToken string.]
    System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection) +459
    System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection) +40

    [ProviderIncompatibleException: An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure.]
    System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection) +126
    System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) +83
    System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.ResolveManifestToken(DbConnection connection) +327
    System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection) +118
    System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +94
    System.Data.Entity.Internal.RetryLazy2.GetValue(TInput input) +248 System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +543 System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +26 System.Data.Entity.Internal.Linq.InternalSet1.Initialize() +72
    System.Data.Entity.Internal.Linq.InternalSet1.get_InternalContext() +21 System.Data.Entity.Infrastructure.DbQuery1.System.Linq.IQueryable.get_Provider() +64
    System.Linq.Queryable.Where(IQueryable1 source, Expression1 predicate) +85
    DAL.GenericRepository1.GetFirstOrDefault(Expression1 filter, Func`2 orderBy) in c:\Program Files (x86)\clonedeploy\web\App_Code\DAL\GenericRepository.cs:59
    BLL.Setting.GetSetting(String settingName) in c:\Program Files (x86)\clonedeploy\web\App_Code\BLL\Setting.cs:14
    Helpers.Settings.get_ForceSsL() in c:\Program Files (x86)\clonedeploy\web\App_Code\Helpers\Settings.cs:49
    views.login.Default.Page_Load(Object sender, EventArgs e) in c:\Program Files (x86)\clonedeploy\web\views\login\login.aspx.cs:19
    System.Web.UI.Control.LoadRecursive() +71
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178

    I've done some quick browsing and based on the error some people are stating I need to upgrade the database connector.

    http://downloads.mysql.com/archives/c-net/

    I'm not sure which one to use though. Any ideas?



  • This doesn't really make sense. CloneDeploy comes with a MySQL connector 6.9.7, I believe 6.9.9 is the latest, shouldn't make a difference. It also comes with MySQL 5.7 which is greater than 5.0. So there should not be a problem. Are you using your own MySQL instance?



  • I didn't think about that, but, that looks like what is happening. There actually is a MySql instance installed. I think one of our other applications could be interfering with it. I'm going to install CloneDeploy on it's own server.

    Let's go ahead and close this request out. Thanks for the feedback!