I was running wine 5.0.2 on ubuntu 20.04 and dotnet was working fine with it. However I had to re-install my os and upon installing the new version of wine 6, dotnet does not seem to work. I tried to install dotnet 45 through winetricks and during the installation, I got this:

And when I went to run the .exe that requires dotnet, I got this:

I have no idea why this is happening, since dotnet was working just fine with wine 5. Any help would be much appreciated. Thank you!