FastReport icon indicating copy to clipboard operation
FastReport copied to clipboard

error datasource MySQL connection for MariaDB

Open anovsiradj opened this issue 1 year ago • 3 comments

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 image

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.

anovsiradj avatar May 23 '24 09:05 anovsiradj

I got the same problem here.. Snipaste_2024-05-27_18-07-31

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

netenken avatar May 27 '24 10:05 netenken

In fact, I have the same problem. I suspect that the program is unable to read the MySQL Data client

sifaqes avatar Jul 07 '24 14:07 sifaqes

Estou com o mesmo problema, alguém chegou a alguma concluisão

luizppuhl avatar Jul 20 '24 19:07 luizppuhl

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:

  1. Download the latest release of FastReport that works on your machine, in my case it was the 2023.3 version
  2. 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
  3. 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)
  4. 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.

alfredoo0329 avatar Nov 23 '24 06:11 alfredoo0329

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

BogdanStegachev avatar Dec 19 '24 12:12 BogdanStegachev

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

BogdanStegachev avatar May 28 '25 11:05 BogdanStegachev