Does Wine support ASP.NET Core x64?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Ilarion
Level 1
Level 1
Posts: 5
Joined: Wed May 25, 2022 7:21 am

Does Wine support ASP.NET Core x64?

Post by Ilarion »

Hallo,

Does Wine support apps built with ASP.NET Core x64?

I intended to run a ASP.Net Core (.Net Core 6.0) App with x64 via Wine. Will it be possible with Wine?
The app was published as self-contained during the attemplts.

Thank You.
User avatar
alexis92
Level 1
Level 1
Posts: 7
Joined: Thu Apr 28, 2022 7:53 am

Re: Does Wine support ASP.NET Core x64?

Post by alexis92 »

Any updates on this? Can't seem to find an answer anywhere else online.
qwertymnb
Level 4
Level 4
Posts: 236
Joined: Sun Jan 17, 2016 4:36 pm

Re: Does Wine support ASP.NET Core x64?

Post by qwertymnb »

Well, do you have an example application that we could test, as I do not even know what is is exactly ;)
Ilarion
Level 1
Level 1
Posts: 5
Joined: Wed May 25, 2022 7:21 am

Re: Does Wine support ASP.NET Core x64?

Post by Ilarion »

Hallo qwertymnb,

I would like to give an access to test web api app. Here is the link to download the test app: https://wetransfer.com/downloads/447dbb ... ient_email

If you start the app, the app selects random port and you can call an end point using curl e.g. http://localhost:[port]/WeatherForecast.

Thank You.
qwertymnb
Level 4
Level 4
Posts: 236
Joined: Sun Jan 17, 2016 4:36 pm

Re: Does Wine support ASP.NET Core x64?

Post by qwertymnb »

Hi, I gave the test-app a try and AFAICT it seems to work (?),

When I ran it :
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: Z:\tmp\publish\

I don`t have curl on my machine, so I downloaded windows curl (https://curl.se/windows/dl-7.83.1_3/cur ... -mingw.zip)

Then 'wine curl.exe "http://localhost:5000/WeatherForecast"' gave:
[{"date":"2022-06-01T08:31:05.9674835+02:00","temperatureC":-9,"temperatureF":16
,"summary":"Scorching"},{"date":"2022-06-02T08:31:05.9674935+02:00","temperature
C":-4,"temperatureF":25,"summary":"Sweltering"},{"date":"2022-06-03T08:31:05.967
4948+02:00","temperatureC":44,"temperatureF":111,"summary":"Scorching"},{"date":
"2022-06-04T08:31:05.9674951+02:00","temperatureC":-12,"temperatureF":11,"summary":"Scorching"},"date":"2022-06-05T08:31:05.9674955+02:00","temperatureC":0,"te mperatureF":32,"summary":"Scorching"}]

That`s expected output (I guess?)

After ctrl^c TestWebApi.exe I got:
curl: (7)Failed to connect to localhost port 5000 after 0 ms: Connection refused

I guess that`s also expected behaviour, otherwise just comment

Two remarks:

- 1. There was printed also a warning:
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.

I don`t know if this affects the program/results?

- 2. As the program seems to be similar/rely on dotnet core (right?) be aware of bug
https://bugs.winehq.org/show_bug.cgi?id=52396. Though this program doesn`t seem to be affected by it. (But if you run into problems, try out a 32-bit build app to check.)

regards
Ilarion
Level 1
Level 1
Posts: 5
Joined: Wed May 25, 2022 7:21 am

Re: Does Wine support ASP.NET Core x64?

Post by Ilarion »

Hallo qwertymnb,

Thank You for the post!

Sorry for stupid question: Did you run the test-app with wine also?

I got errors like this:

ine-test
wine: created the configuration directory '/root/.wine'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0048:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0048:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0048:err:systray:initialize_systray Could not create tray window
0048:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0048:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0040:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0040:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0050:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0050:err:ole:apartment_createwindowifneeded CreateWindow failed with error 3
0050:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
0050:err:ole:apartment_createwindowifneeded CreateWindow failed with error 14007
0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x800736b7
0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x800736b7
0050:err:ole:apartment_get_local_server_stream Failed: 0x800736b7
0050:trace:seh:dispatch_exception code=6ba flags=0 addr=000000007B01192E ip=000000007B01192E tid=0050
0050:warn:seh:dispatch_exception unknown exception (code=6ba) raised
.... and so on.

Also, I don't get the error like in the known bug.

Maybe it is important to say, that I try to run the app with wine in a docker-wine image (https://hub.docker.com/r/scottyhardy/docker-wine/).

The installations are following:

# Install wine
ARG WINE_BRANCH="stable"
RUN wget -nv -O- https://dl.winehq.org/wine-builds/winehq.key | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
&& echo "deb https://dl.winehq.org/wine-builds/ubuntu/ $(grep VERSION_CODENAME= /etc/os-release | cut -d= -f2) main" >> /etc/apt/sources.list \
&& dpkg --add-architecture i386 \
&& apt-get update \
&& DEBIAN_FRONTEND="noninteractive" apt-get install -y --install-recommends winehq-${WINE_BRANCH} \
&& rm -rf /var/lib/apt/lists/*

# Install winetricks
RUN wget -nv -O /usr/bin/winetricks https://raw.githubusercontent.com/Winet ... winetricks \
&& chmod +x /usr/bin/winetricks

# Download gecko and mono installers
COPY download_gecko_and_mono.sh /root/download_gecko_and_mono.sh
RUN chmod +x /root/download_gecko_and_mono.sh \
&& /root/download_gecko_and_mono.sh "$(wine --version | sed -E 's/^wine-//')"



I am just wondering what the difference in the way You and I running the app. Can it be the version of wine?

Thank You.
qwertymnb
Level 4
Level 4
Posts: 236
Joined: Sun Jan 17, 2016 4:36 pm

Re: Does Wine support ASP.NET Core x64?

Post by qwertymnb »

Hi,
Sorry for stupid question: Did you run the test-app with wine also?

Yes I did (I used wine-7.9)
0048:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
That doesn`t look right does it? I never did anything with docker nor do I know really something about it. What wine version does it use?

May I ask why not install "regular" wine and give it a try?
Ilarion
Level 1
Level 1
Posts: 5
Joined: Wed May 25, 2022 7:21 am

Re: Does Wine support ASP.NET Core x64?

Post by Ilarion »

Hallo qwertymnb,

I use also the version 7.9. The image tries to go for latest stable version that is 7.9 how I can see it in image after building it/ installations run.

Do you mean I should try to run in a virtuall machine, I think I can try it, thank You for the idea.

Did you installed winetricks or mono to get the app running ?

Thank You.
qwertymnb
Level 4
Level 4
Posts: 236
Joined: Sun Jan 17, 2016 4:36 pm

Re: Does Wine support ASP.NET Core x64?

Post by qwertymnb »

Hi lliaron,
Do you mean I should try to run in a virtuall machine, I think I can try it, thank You for the idea.
No , i really meant just install wine on your distro ( like with apt if you`re on debian/ubuntu).
Did you installed winetricks or mono to get the app running ?
No, no winetricks verbs needed. (BTW, mono is installed by default)

Regards
Ilarion
Level 1
Level 1
Posts: 5
Joined: Wed May 25, 2022 7:21 am

Re: Does Wine support ASP.NET Core x64?

Post by Ilarion »

Hallo qwertymnb,

Can You maybe say what I can do against following error?


0048:fixme:heap:GetNumaHighestNodeNumber semi-stub: 000000000019EFDC
0048:fixme:seh:WerRegisterRuntimeExceptionModule (L"Z:\\app\\Debug\\net6.0\\publish\\mscordaccore.dll", 0000000001630000) stub
0048:warn:seh:OutputDebugStringA "Profiler was prevented from loading notification profiler due to app settings.\n Process ID (decimal): 68. Message ID: [0x2509].\n"
0048:trace:seh:dispatch_exception code=40010006 flags=0 addr=000000007B014B76 ip=000000007B014B76 tid=0048
0048:warn:seh:dispatch_exception "Profiler was prevented from loading notification profiler due to app settings.\n Process ID (decimal): 68. Message ID: [0x2509].\n"
0048:trace:seh:call_stack_handlers found wine frame 000000000019E890 rsp 000000000019E9F0 handler 000000007B084B40
0048:trace:seh:call_teb_handler calling TEB handler 000000007B084B40 (rec=000000000019E7F0, frame=000000000019E890 context=000000000019DD00, dispatch=000000000019DBD0)
0048:trace:seh:RtlRestoreContext returning to 000000007B084ADA stack 000000000019E7C0
0048:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0048:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000019DD60) :semi-stub
0048:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000019DD60) :semi-stub
0048:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000019DD60) :semi-stub
0048:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000019DD60) :semi-stub
0048:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000019DD60) :semi-stub
0048:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000019DD60) :semi-stub
0048:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000019DD60) :semi-stub
0048:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000019DD60) :semi-stub
0054:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000F03FD90) :semi-stub
0058:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000F23FC90) :semi-stub
005c:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000F43FB90) :semi-stub
0060:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000F63FA90) :semi-stub
0064:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000F83F990) :semi-stub
0068:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000FA3F890) :semi-stub
006c:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000FC3F790) :semi-stub
0070:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000FE3F690) :semi-stub
0048:trace:seh:RtlInstallFunctionTableCallback 10c70003 10c70000 524288 00000000017227C0 00000000002FFA70 L"Z:\\app\\Debug\\net6.0\\publish\\mscordaccore.dll"
0048:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000019ED10) :semi-stub
0048:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000019EC10) :semi-stub
0048:fixme:ntdll:RtlGetCurrentProcessorNumberEx (000000000019EB90) :semi-stub
Fatal error. Failed to load JIT compiler
0048:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
0048:fixme:advapi:ReportEventW (00000000CAFE4242,0x0001,0x0000,0x000003ff,0000000000000000,0x0001,0x00000000,000000000019CC50,0000000000000000): stub
0048:err:eventlog:ReportEventW L"Application: TestWebApi.exe\nCoreCLR Version: 6.0.522.21309\n.NET Version: 6.0.5\nDescription: The process was terminated due to an internal error in the .NET Runtime at IP 00000000017D7D39 (0000000001630000) with exit code 80131506.\n"
0048:fixme:advapi:DeregisterEventSource (00000000CAFE4242) stub
0048:fixme:seh:RaiseFailFastException (000000000019D9A0, 000000000019DA40, 0) stub


Thank You.
qwertymnb
Level 4
Level 4
Posts: 236
Joined: Sun Jan 17, 2016 4:36 pm

Re: Does Wine support ASP.NET Core x64?

Post by qwertymnb »

Hi llarion,

Not sure but maybe you`re running into that bug I mentioned before https://bugs.winehq.org/show_bug.cgi?id=52396

You could do a quick test and see if it runs with lutris wine version that has a fix for this bug.
(Just unzip following in for example /tmp after download:
https://github.com/GloriousEggroll/wine ... _64.tar.xz

Then do for example

Code: Select all

WINEPREFIX=~/.wine_throw_me_away /tmp/lutris-GE-Proton7-16-x86_64/bin/wine TestApp.exe
assuming your executable is called TestApp.exe

If it doesn`t run then I wouldn`t know really.

Regards
sakdene05
Newbie
Newbie
Posts: 1
Joined: Fri Sep 09, 2022 2:08 pm

Re: Does Wine support ASP.NET Core x64?

Post by sakdene05 »

I am just wondering what the difference in the way You and I running the app. Can it be the version of wine?
hellodear.in

teatv download
qwertymnb
Level 4
Level 4
Posts: 236
Joined: Sun Jan 17, 2016 4:36 pm

Re: Does Wine support ASP.NET Core x64?

Post by qwertymnb »

sakdene05 wrote: Mon Sep 12, 2022 7:12 am I am just wondering what the difference in the way You and I running the app. Can it be the version of wine?

Might be so. Try run it in wine Staging, current version wine-7.17 (Staging)
This version has a fix for the bug I was talking about.
Locked