error datasource MySQL connection for MariaDB
Describe the bug
i am trying to connect to MariaDB datasource using MySQL Connection using Designer.exe from FastReport.Community.2024.2.0.zip.
but i dont know why, i can connect to MariaDB using Designer.exe from FastReport.Community.2023.3.0.zip.
To Reproduce Steps to reproduce the behavior:
- Data
- Add Data Source
- New Connection
- choose MySQL Connection
- (fill host,user,pass,dbname)
- click Ok or "Test Connection"
Expected behavior A clear and concise description of what you expected to happen.
Stacktrace
- ...
- ...
Screenshots
Device (please complete the following information):
- OS: Windows 11 Pro
- Version: FastReport.Community.2024.2.0.zip
- MariaDB: 11.3.1-MariaDB
Additional context Add any other context about the problem here.
I got the same problem here..
Device (please complete the following information):
OS: Windows 10 Pro Version: FastReport.Community.2024.2.0.zip DB: even no need to enter server address, just press test button , the error occured
In fact, I have the same problem. I suspect that the program is unable to read the MySQL Data client
Estou com o mesmo problema, alguém chegou a alguma concluisão
I had the same error when connecting to MySQL from FastReport 2025.1, but with another component "System.Diagnostics.DiagnosticSource". I solved it by following the next steps:
- Download the latest release of FastReport that works on your machine, in my case it was the 2023.3 version
- Once you uncompress the .zip file, search the .dll file of the package the error tells you FastReport doesn´t find a match for "System.Diagnostics.DiagnosticSource.dll" or "System.Runtime.CompilerServices.Unsafe.dll" in your case
- Copy that file to the FastReport version folder you are trying to run and replace it with the file you copied from the previous version (2023.3 -> 2025.1)
- Open FastReport Designer again (2025.1) and the error should appear no more
Also, you would want to check if the "PublicKeyToken" that the error throws you appears in the file "Designer.exe.config" so you can be sure it will work. Otherwise, you could look for the .dll file in NuGet. However, I didn´t have to do it so I wouldn´t be sure if that could work. Good luck.
Hello!
Thank you for your request, I have reproduced the problem described above and started a task in our development department, expect changes in the next versions of FastReport Community Edition
Best regards, Bogdan
Hello!
Our developers managed to solve the problem according to your request, expect changes in the next versions of FastReport Community Edition
Best regards, Bogdan