I'm having the following error while executing some integration tests:
The assembly with display name 'System' failed to load in the 'Load' binding context of the AppDomain with ID 4. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'System, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
These tests used to work in the past and I don't know how can be that such a basic dll is not found. Moreover, the System assembly has been already loaded:
By the way, the code executing is creating AppDomains to execute Integration tests in case this matters.
EDIT: Looks like we have the required frameworks installed:
I finally found the problem: the app.config was corrupted due to a "too wide" search and replace and seems that this was the culprit of the strange System load.