Failed to run module constructor due to (null) assembly: mscorlib.dll

Questions about Wine on Linux
Locked
ardvdz
Level 2
Level 2
Posts: 20
Joined: Mon Mar 20, 2023 10:40 pm

Failed to run module constructor due to (null) assembly: mscorlib.dll

Post by ardvdz »

i'm trying to execute this program:
https://ia801303.us.archive.org/4/items ... akhtot.zip

i get this error:

Failed to run module constructor due to (null) assembly:Z:\usr\share\wine\mono\wine-mono-9.3.0\lib\mono\4.5\mscorlib.dll type:TypeInitializationException member:(null)
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Failed to run module constructor due to (null) assembly: mscorlib.dll

Post by jkfloris »

Unfortunately, this program does not work with the built-in version of .NET (wine-mono). Please install the Microsoft version of .NET and run the program again.
(Because installing .NET can break other programs, I recommend creating a separate prefix for this program.)

Code: Select all

# Create a new prefix and install .NET
WINEPREFIX="${HOME}/Library Manager" winetricks -q dotnet48

# Download and unpack the program
cd "${HOME}/Library Manager/drive_c"
wget "https://ia801303.us.archive.org/4/items/these-DZ_prog_makhtot/these-DZ_prog_makhtot.zip"
7z x these-DZ_prog_makhtot.zip

# Run the program
WINEPREFIX="${HOME}/Library Manager" wine "Library Manager.exe"
Locked