Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load file or assembly System.Threading.Tasks.Extensions #699

Open
steelunicorn opened this issue May 17, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@steelunicorn
Copy link

Using release 2024.2.0
Get error when trying to connect Postgresql database.
image

To reproduce:

  1. Open designer
  2. Data -> Add data source
  3. New connection -> Postgres connection
  4. You don't even need to fill fields, just click 'Test connection'
  5. Error

Expected to get 'Hosts can't be null' error mesage from npgsql.dll

  • OS: Windows 10
  • Version 2024.2.0

Copied System.Threading.Tasks.Extensions.dll from 2022.3.0 release and that solved the issue.

@steelunicorn steelunicorn added the bug Something isn't working label May 17, 2024
@alfredoo0329
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants