HELP. Can't get ANY version of DotNet to install.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

I'm using Winetricks with a 64-bit default prefix.

I've tried every version of "dotnet" listed in Winetricks but I simply can not get any of them to install. I even tried installing DotNet4.8 downloaded directly from MS, but the app gives an error saying "Wrong OS".

I *know* it worked once before, and don't remember having this much trouble.

Any ideas? Thx.
barhamd
Newbie
Newbie
Posts: 4
Joined: Mon Feb 21, 2022 5:55 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by barhamd »

Is that running on x86 or ARM with box86?
It sounds very similar to the issues I've asked about trying to get .NET 3.5 SP1 installed on Pi ,no answers yet :-(

David
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 103
Joined: Sat Sep 04, 2021 9:35 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by JoseskVolpe »

Make sure you have a WoW64 enabled Wine build and 32-Bits dependencies
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

Thx for the reply. Where do I "enable" WoW64?
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 103
Joined: Sat Sep 04, 2021 9:35 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by JoseskVolpe »

That's the way Wine has been compiled, but that also depends on the operating system, MacOS for example doesn't support WoW64 yet because it lacks 32-Bits support. ¿What's your operating system?
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

I'm using Ubuntu Linux 20.04.
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 103
Joined: Sat Sep 04, 2021 9:35 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by JoseskVolpe »

Check if you have wine32 installed alongside wine64, also, make sure you enabled i386

Code: Select all

sudo dpkg --add-architecture i386 
For full instructions: https://wiki.winehq.org/Ubuntu
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

(Sorry for the late reply.)

Thanks for the follow-up.

I followed the instructions at the wiki link and installed the latest "stable" branch for Ubu 20.04 LTS, but it didn't help. Attempting to install DotNet under the default (64bit) prefix fails. I forgot to mention previously that I was already able to install it under a 32bit Prefix, but that doesn't help me. I believe that means I already had "wine32" installed alongside wine64?

Any ideas on what else I should try? Thx.
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 103
Joined: Sat Sep 04, 2021 9:35 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by JoseskVolpe »

Well :S
¿What's the output when you use winetricks?
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

The Win installer runs, but fails almost immediately saying "Wrong OS." :(
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 103
Joined: Sat Sep 04, 2021 9:35 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by JoseskVolpe »

Try going to winecfg and set Windows version to Windows 10, winetricks will change it if it's needed
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

Thx for the reply.

I need to correct myself. I thought the error was "Wrong OS", but I might have been thinking of something else. OS mode is set to Win10 (also tried Win7 & WinXP.)

When I try to install dotnet48 under the default (64bit) Wine prefix, I get a litany of Winetricks warning messages and the version of dotnet that it tries to install drops to 4.0. This is about as far as I get:

Image

Followed by:
Image
Image


So then I also tried installing dotnet35sp1:

Image

Nothing works. Any ideas? Thx.

FOLLOW-UP: I noticed the last warning mentions "Wine-7.0", so I reinstalled Wine v5.0 and now get this (app never launches. Dozens of warnings ending with:
Image

(I never "canceled" anything much less even saw a button giving me the option.)
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 103
Joined: Sat Sep 04, 2021 9:35 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by JoseskVolpe »

Well, damn :/
¿What does it says in the log file?

and yeah, you'll not be able to install dotnet35 due that (also, don't downgrade Wine), but newer versions would be enough for any application that's broken on Wine Mono
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: HELP. Can't get ANY version of DotNet to install.

Post by jkfloris »

Is it possible to install .Net if you use winetricks "quiet" mode?

Code: Select all

# Make sure winetricks is up to date
sudo winetricks --self-update

# Install .Net in a clean test prefix
WINEPREFIX=${HOME}/dotnet-test winetricks -q dotnet40
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

JoseskVolpe wrote: Fri Mar 04, 2022 12:42 pm Well, damn :/
¿What does it says in the log file?
When I was still able to get as far as the Windows launcher, the log file provided nothing helpful. It says everything is just fine until it suddenly ends for no apparent reason (according to the log.)

Now I can't even get that far, (since rolling Wine back to v5.0) with that "user canceled" popup. :(
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

jkfloris wrote: Sat Mar 05, 2022 4:38 am Is it possible to install .Net if you use winetricks "quiet" mode?

Code: Select all

# Install .Net in a clean test prefix
WINEPREFIX=${HOME}/dotnet-test winetricks -q dotnet40
Thx for the reply. Installing from the terminal produces about 100 errors like this one:

Code: Select all

0055:err:ole:CoReleaseMarshalData StdMarshal ReleaseMarshalData failed with error 0x8001011d
I can't confirm if it worked, though it seems doubtful.

What is most annoying is I can install dotnet48 under a 32bit Wine prefix, but that's it. Everything else I need (like DirectX, DxVk, etc) all successfully installed under my 64bit prefix (but won't install under a 32bit prefix. I tried.

I know dotnet48 worked once before (under a 64bit prefix.) I don't know why I can't install it now.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: HELP. Can't get ANY version of DotNet to install.

Post by jkfloris »

I also get those error messages when .Net 4.0 is installed and I think they are "normal".
but won't install under a 32bit prefix. I tried.
Can you post a terminal output?
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

jkfloris wrote: Sun Mar 06, 2022 3:38 pm Can you post a terminal output?
Thx for the reply.

I deleted the old "dotnet-test" folder and re-ran the command, directing the output to a file.

Let me know if anything pops out at you. Thx.

ADDENDUM: Looking at the file, the output is very different this time. The install went quicker and is not flooded with a hundred "error" lines. :( Here is the same output, copied directly from the terminal using the mouse. This shows all the errors.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: HELP. Can't get ANY version of DotNet to install.

Post by jkfloris »

The log files look normal.

What program are you trying to run? What does not work?
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

The second log is full of errors and in the end, dotnet fails to install. That's not normal.

As for the app: Anything that requires dotnet (I'm a programmer and need it when writing my own apps.)
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: HELP. Can't get ANY version of DotNet to install.

Post by jkfloris »

For comparison, I am posting the output I get when installing dotnet40. In my opinion, they are the same.
install_dotnet40.tar.xz
(7.14 KiB) Downloaded 412 times
You can check if the installation was successful with:

Code: Select all

WINEPREFIX=${HOME}/dotnet-test wine uninstaller --list
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

(sorry for the last reply. Family stuff.)

Here is the result of issuing the above command:

Code: Select all

WINEPREFIX=${HOME}/dotnet-test wine uninstaller --list
wine: created the configuration directory '/home/mugsy/dotnet-test'
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0012:err:ole:get_local_server_stream Failed: 80004002
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0014:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0014:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0014:err:ole:get_local_server_stream Failed: 80004002
Could not find Wine Gecko. HTML rendering will be disabled.
Could not find Wine Gecko. HTML rendering will be disabled.
wine: configuration in L"/home/mugsy/dotnet-test" has been updated.
Either the test could not be completed, or dotnet didn't install. (Contents of my "dotnet-test" folder):

Code: Select all

dir dotnet-test
dosdevices  drive_c  system.reg  userdef.reg  user.reg
Image

Any ideas? Thx.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: HELP. Can't get ANY version of DotNet to install.

Post by jkfloris »

It looks like you removed the "dotnet-test" folder.
Wine has created it again for you with a clean wine prefix.

Would you like to try the following steps? Preferably with Wine 7.0
(It is not a problem if you have removed the dotnet-test folder in the meantime)

Code: Select all

# Install the .Net 4.0 Framework in the dotnet-test prefix
WINEPREFIX=${HOME}/dotnet-test winetricks -q dotnet40

# Check if the installation was successful
WINEPREFIX=${HOME}/dotnet-test wine uninstaller --list

# Run your .Net program
WINEPREFIX=${HOME}/dotnet-test wine program.exe
The screenshot is of your default wine prefix. It does not appear to have a .Net Framework installed on it.
Mugsy323
Level 2
Level 2
Posts: 34
Joined: Sat Nov 06, 2021 4:29 pm

Re: HELP. Can't get ANY version of DotNet to install.

Post by Mugsy323 »

(Thx for the reply. Sorry for the slow response but Dad is in the hospital.)

I had deleted "dotnet-test" after it failed the first time. Sorry.

The check seems to confirm DotNet 4.0 was installed to the "dotnet-test" wineprefix, but that doesn't help me since I already have DirectX, DxVk, and numerous VB libraries installed under my default ".wine" prefix, so I can't start using a different prefix. My apps won't run w/o all those other libraries (crash.)

I tried issuing the same commands to install dotnet40 to my default prefix, but the installer says "DotNet is already installed" (Winetricks still says otherwise, same as above screenshot.)

I tried installing "dotnet48" to my ".wine" prefix using the terminal command, but at the end of the install, I get:

Code: Select all

warning: dotnet40 install completed, but installed file /home/mugsy/.wine/dosdevices/c:/windows/Microsoft.NET/Framework/v4.0.30319/ngen.exe not found
So still no DotNet. Any ideas? Thx.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: HELP. Can't get ANY version of DotNet to install.

Post by jkfloris »

If you use winetricks to install the .Net 4.8 Framework, then .Net 4.0 is installed first.
You can try to force a reinstall of .Net in the deafult wine prefix with the --force option.

Code: Select all

winetricks --force -q dotnet48
# or install .Net 4.0 first
winetricks --force -q dotnet40
winetrcks -q dotnet48
Locked