Warning: Could not load file or assembly WindowsBase, Version=4.0.0.0

Hi, on ubuntu 16.04, with libmono 6.8.0.96-0xamarin4+ubuntu1604b1 and the latest Duplicati beta, I get this warning, only on one of two backup jobs:

LimitedWarnings: [ 2020-01-31 10:10:00 +01 - [Warning-Duplicati.Library.DynamicLoader.DynamicLoader`1-SoftError]: Impossibile caricare processo tipo System.Reactive.Concurrency.DispatcherScheduler assembly /usr/share/Duplicati/updates/2.0.5.1/System.Reactive.dll, messaggio di errore: Could not load type of field ‘System.Reactive.Concurrency.DispatcherScheduler:k__BackingField’ (0) due to: Could not load file or assembly ‘WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies.]

Do I need to get worried? Thanks

Error when launching server solved this by installing mono-complete. Which mono package do you run?

Prerequisites suggests mono-devel, but it’s possible that it’s not enough. Still, I think yours is first report.

Is this two jobs on the same system with the same destination type, and are any of them an S3 backup? System.Reactive came in with S3 MinIO, but I’m not sure which of your warning lines was the initial one.

Thanks for responding.

Both the jobs are on the same Ubuntu system, with the same mono installation, and connecting to Wasabi S3.

Today, however, the warning has not appeared, even though I have not installed mono-complete. The only packet that was updated after the previous warning was firefox.

Anyway, if the warning pops up again I will dig more the issue.

ive been getting the same since updating to the newest beta after it was released:

2020-02-09 03:00:00 -06 - [Warning-Duplicati.Library.DynamicLoader.DynamicLoader`1-SoftError]: Failed to load process type System.Reactive.Concurrency.DispatcherScheduler assembly /usr/share/Duplicati/updates/2.0.5.1/System.Reactive.dll, error message: Could not load type of field ‘System.Reactive.Concurrency.DispatcherScheduler:k__BackingField’ (0) due to: Could not load file or assembly ‘WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies.

i cant remember if i installed mono-complete or mono-devel but my mono install is:

Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:20:20 UTC 2020)
Copyright © 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: hybrid
GC: sgen (concurrent by default)

it doesnt happen every time my backup is ran but like every other time:

The warning appeared again on only one of my two backup jobs. So indeed it is not easy to reproduce. I also have Mono JIT compiler version 6.8.0.105.

I’m getting these same errors also, Ubuntu 19.10 64bit intel with 2.0.5.1_beta_2020-01-18.

I just installed mono-complete (must have had -devel before) and will see if that fixes it. Only every 2-4 backups contains the warning, which is pretty bizarre.

2020-02-11 02:00:00 -05 - [Warning-Duplicati.Library.DynamicLoader.DynamicLoader`1-SoftError]: Failed to load process type System.Reactive.Concurrency.DispatcherScheduler assembly /usr/share/Duplicati/updates/2.0.5.1/System.Reactive.dll, error message: Could not load type of field 'System.Reactive.Concurrency.DispatcherScheduler:<Dispatcher>k__BackingField' (0) due to: Could not load file or assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Has mono-complete solved the problem? I would prefer not to install a lot of new libraries just for eliminating a warning, also considering that I was able to correctly restore files from the job that raised the warning.

This page hints at some problem when there are multiple copies of the library.

On my ubuntu installation I found Duplicati both in /usr/share/Duplicati and in /home/$USER/.config/Duplicati . I do not know why. Since the files in my home folder are much older and not updated, I temporarily removed the /home/$USER/.config/Duplicati folder. I rerun the job and it has not raised the warning. Let’s see how it behaves next time.

Yes, it looks like that fixed it. No errors since then and it’s been a week.

Thanks. Regarding me removing the $HOME Duplicati folder, it was useless. The problem is here again. So apparently installing mono-complete is the only solution.