question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linux, Kestrel/libuv related: System.DllNotFoundException: WS2_32.dll

See original GitHub issue

Steps to reproduce

Try to run existing net451 MVC application with RTM bits on Linux. The RC2 bits worked fine on same machine. Application runs fine on Windows 7 and 10 with RTM bits. This is probably related to: https://github.com/aspnet/KestrelHttpServer/issues/730

Expected behavior

Application runs normally.

Actual behavior

Unhandled Exception:
System.AggregateException: One or more errors occurred. ---> System.DllNotFoundException: WS2_32.dll

Full stacktrace: https://gist.github.com/nmilosev/7c18f53d4e7184c0ec159390e67625bc

project.json: https://gist.github.com/nmilosev/29971e0f7a691f6b0f3016730e9fb628

Environment data

dotnet --info output:

[nmilosev@toshiba-qosmio-x70-a-12x AlfaEvid]$ dotnet --info
.NET Command Line Tools (1.0.0-preview3-003180)

Product Information:
 Version:            1.0.0-preview3-003180
 Commit SHA-1 hash:  d4193cd5c1

Runtime Environment:
 OS Name:     fedora
 OS Version:  24
 OS Platform: Linux
 RID:         fedora.24-x64

uname -a output:

Linux toshiba-qosmio-x70-a-12x 4.6.3-300.fc24.x86_64 dotnet/sdk#4283 SMP Fri Jun 24 20:52:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Also a note here: on kernel 4.6.3: I have to run:

export COMPlus_INTERNAL_ThreadSuspendInjection=0

otherwise I get a Segmentation fault on trying to run or restore an application.

mono -V output:

[nmilosev@toshiba-qosmio-x70-a-12x AlfaEvid]$ mono -V
Mono JIT compiler version 4.2.4 (tarball Thu Jun 23 18:49:17 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            sgen

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
blackdwarfcommented, Jul 28, 2016

It seems that this issue has been resolved with @pompomJuice’s workarounds. Will close. If the issue still reproes, please reopen on aspnet/Kestrel.

1reaction
tactical-dronecommented, Jul 14, 2016

Kestrel had some serious issues running on linux/dotnet core rc2/mono/net451. Release 1.0.0 fixed everything (wow!), but it still does not run out of the box. The required steps to make aspnet core run on ubuntu linux net451 are:

  1. Install Mono 4.4
  2. Install latest CLI debs found here
  3. Install libuv found here
  4. Install System Native using this
  5. Apply hacks described here (workaround for cli not being able to extract environment variables on mono/net451)

Boom, it works! @nmilosev linkz

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found