Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

System.DllNotFoundException: Unable to load DLL 'libuv' #627

Closed
munyirik opened this issue Feb 12, 2016 · 5 comments
Closed

System.DllNotFoundException: Unable to load DLL 'libuv' #627

munyirik opened this issue Feb 12, 2016 · 5 comments

Comments

@munyirik
Copy link

I hit this issue when trying to run an asp.net 5 server on my Raspberry Pi 2 (with Windows IoT Core).

Repro steps:

  1. Installed arm coreclr with: dnvm install latest -r coreclr -arch arm -u
  2. Created new asp.net 5 web application in VS (with no modifications of my own) and published with: dnu publish --out C:\projects\asp5 --runtime dnx-coreclr-win-arm.1.0.0-rc2-16357.
  3. Copied the published files to RPi2 and ran the application.

Result:
.\asparm\approot\web.cmd : System.DllNotFoundException: Unable to load DLL 'libuv': The specified module could not be found. (Exception
from HRESULT: 0x8007007E)
+ CategoryInfo : NotSpecified: (System.DllNotFo...LT: 0x8007007E):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

at Microsoft.AspNet.Server.Kestrel.Networking.Libuv.NativeMethods.uv_loop_size()
at Microsoft.AspNet.Server.Kestr
el.Networking.Libuv.loop_size()
at Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle.Init(Libuv uv)
at Microsoft.AspNet.Server.Kestrel.KestrelThread.ThreadStart(Object parameter)

Workaround
Copied \approot\packages\Microsoft.AspNet.Server.Kestrel\1.0.0-rc1-final\runtimes\win10-arm\native\libuv.dll to \approot\packages\Microsoft.AspNet.Server.Kestrel\1.0.0-rc1-final\lib\dnxcore50

@munyirik
Copy link
Author

Looks like the same issue as #216

@moozzyk
Copy link
Contributor

moozzyk commented Feb 12, 2016

This was fixed post RC1

@moozzyk moozzyk closed this as completed Feb 12, 2016
@munyirik
Copy link
Author

@moozzyk where can I get RC1 (edit RC2) from?

@shahid-pk
Copy link

@munyirik you need to wait for rc2 release. until then use the workaround.

@munyirik
Copy link
Author

Got it. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants