error CT0201: Package "MySQL.Data.EntityFramework" not supported.

Created at 23 Jan 2023, 06:36
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
MongolTrader's avatar

MongolTrader

Joined 12.02.2015

error CT0201: Package "MySQL.Data.EntityFramework" not supported.
23 Jan 2023, 06:36


When i try to use in my bot using MySQL data i cant run it. In VisualStudio it build ok but on Ctrader platform says 

error CT0201: Package "MySQL.Data.EntityFramework" not supported. 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using MySql.Data.MySqlClient;

namespace cAlgo.Robots
{
    [Robot(AccessRights = AccessRights.None)]
    public class db : Robot
    {
        
        protected override void OnStart()
        {

            System.Diagnostics.Debugger.Launch();

        }

        protected override void OnBar()
        {
            string connetionString = null;
            MySqlConnection cnn;
            connetionString = "server=localhost;uid=root;pwd=\"\";database=fxdata";
            cnn = new MySqlConnection(connetionString);
            try
            {
                cnn.Open();
                MessageBox.Show("Connection Open!");
                cnn.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Can not open connection!");
            }

        }

        protected override void OnStop()
        {
            
        }
    }
}


@MongolTrader
Replies

jalmir.coelho@gmail.com
23 Mar 2023, 01:19

Same problem
In this version of ctrader I am not able to connect mysql either.
I have the same problem

@jalmir.coelho@gmail.com