本文介绍了DNX红隼" System.EntryPointNotFoundException:uv_loop_size"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行哟ASPNET创建了一个未经修改的Web API应用程序。

我得到这个错误:

  System.EntryPointNotFoundException:uv_loop_size
  在(包装管理到本机)Microsoft.AspNet.Server.Kestrel.Networking.Libuv + NativeDarwinMonoMethods:uv_loop_size()
  在Microsoft.AspNet.Server.Kestrel.Networking.Libuv.loop_size()&所述; 0x42615b8 + 0x00014>上述<文件名未知>:0
  在Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle.Init(Microsoft.AspNet.Server.Kestrel.Networking.Libuv UV)< 0x4261528 + 0x0002b>上述<文件名未知>:0
  在Microsoft.AspNet.Server.Kestrel.KestrelThread.ThreadStart(System.Object的参数)LT; 0x4261160 + 0x0005f>上述<文件名未知>:0

任何想法?

dnvm列表输出:

 活动版本运行架构OperatingSystem的别名
------ ------- ------- ------------ --------------- --- -
       1.0.0-RC1决赛coreclr 64达尔文
       1.0.0-RC1决赛单的Linux / OSX
  * 1.0.0-rc2-16177单的Linux / OSX默认

单版

 单JIT编译器版本4.2.1(显式/ 6dd2d0d周二11月10日18时01分18秒美国东部时间2015年)

更新

我跑

 出口DYLD_FALLBACK_LIBRARY_PATH=/Users/Andy/.dnx/packages/Microsoft.AspNet.Server.Kestrel/1.0.0-rc1-final/runtimes/osx/native/

这结束了​​运行DNX网页的时候给了我一个不同的错误:

  System.DllNotFoundException:libc.dylib
  在(包装管理到本机)System.IO.KeventWatcher:kqueue的()
  在System.IO.KeventWatcher.GetInstance(IFileWatcher&安培;观察者)LT; 0x105a29310 + 0x000f3>上述<文件名未知>:0
  在System.IO.FileSystemWatcher.InitWatcher()&所述; 0x105a28fa0 + 0x0012c>上述<文件名未知>:0
  在System.IO.FileSystemWatcher..ctor(System.String路径,System.String过滤器)LT; 0x105a28d00 + 0x00114>上述<文件名未知>:0
  在System.IO.FileSystemWatcher..ctor(System.String路径)LT; 0x105a28cc0 + 0x00023>上述<文件名未知>:0
  在(包装远程-调用,以检查)System.IO.FileSystemWatcher:.ctor(字符串)
  在Microsoft.AspNet.FileProviders.PhysicalFilesWatcher..ctor(System.String根)LT; 0x105a285b0 + 0x00154>上述<文件名未知>:0
  在Microsoft.AspNet.FileProviders.PhysicalFileProvider..ctor(System.String根)LT; 0x105a282d0 + 0x000e4>上述<文件名未知>:0
  在Microsoft.AspNet.Hosting.HostingEnvironmentExtensions.Initialize(IHostingEnvironment hostingEnvironment,System.String applicationBasePath,IConfiguration配置)LT; 0x105a27f20 + 0x001ea>上述<文件名未知>:0
  在Microsoft.AspNet.Hosting.WebHostBuilder.Build()&所述; 0x105a1a860 + 0x000b8>上述<文件名未知>:0
  在Microsoft.AspNet.Hosting.WebApplication.Run(System.Type的startupType,System.String []参数)< 0x105560990 + 0x00216>上述<文件名未知>:0
  在Microsoft.AspNet.Hosting.WebApplication.Run(System.String []参数)< 0x10555fef0 + 0x0001a>上述<文件名未知>:0
  在Microsoft.AspNet.Hosting.Program.Main(System.String []参数)< 0x10555fec0 + 0x00014>上述<文件名未知>:0
  在Microsoft.AspNet.Server.Kestrel.Program.Main(System.String []参数)< 0x10555fc90 + 0x000b5>上述<文件名未知>:0
  在(包装管理到本机)System.Reflection.MonoMethod:InternalInvoke(System.Reflection.MonoMethod,对象,对象[],System.Exception的&安培;)
  在System.Reflection.MonoMethod.Invoke(System.Object的OBJ,的BindingFlags invokeAttr,System.Reflection.Binder粘结剂,System.Object的[]参数,System.Globalization.CultureInfo文化)LT; 0x1050027a0 + 0x000b7>上述<文件名未知>:0
---从previous位置堆栈跟踪,其中引发异常的结尾---
   在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()上述<文件名不明>:0行
   在Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(System.Reflection.Assembly组装,System.String [] ARGS,的IServiceProvider的ServiceProvider)上述<文件名不明>:0行
   在Microsoft.Dnx.ApplicationHost.Program +下;> c__DisplayClass3_0&下; ExecuteMain>在&所述b__0();文件名未知>:0行
   在System.Threading.Tasks.Task`1 [TResult] .InnerInvoke()上述<文件名不明>:0行
   在System.Threading.Tasks.Task.Execute()上述<文件名不明>:0行未处理的异常:
System.NullReferenceException:对象不设置到对象的实例
   在System.IO.FileSystemWatcher.Stop()上述<文件名不明>:0行
   在System.IO.FileSystemWatcher.Finalize()上述<文件名不明>:0行


解决方案

单声道,可视code,Xamarin Studio中,DNX,libuv,节点和RoberN给我一些明确的指针升级的许多重新安装后,我想通我应该检查我的PATH环境变量。
果然,当我添加/ usr / lib目录/:在/ usr / local / lib目录到我的道路,这一切都开始工作。

DNX网站

 托管环境:生产
现在监听:HTTP://本地主机:5000
应用程序启动。 preSS Ctrl + C键关机。

成功!

I'm trying to run an unmodified Web Api application created by yo aspnet.

I'm getting this error:

System.EntryPointNotFoundException: uv_loop_size
  at (wrapper managed-to-native) Microsoft.AspNet.Server.Kestrel.Networking.Libuv+NativeDarwinMonoMethods:uv_loop_size ()
  at Microsoft.AspNet.Server.Kestrel.Networking.Libuv.loop_size () <0x42615b8 + 0x00014> in <filename unknown>:0 
  at Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle.Init (Microsoft.AspNet.Server.Kestrel.Networking.Libuv uv) <0x4261528 + 0x0002b> in <filename unknown>:0 
  at Microsoft.AspNet.Server.Kestrel.KestrelThread.ThreadStart (System.Object parameter) <0x4261160 + 0x0005f> in <filename unknown>:0 

Any ideas?

dnvm list output:

Active Version              Runtime Architecture OperatingSystem Alias
------ -------              ------- ------------ --------------- -----
       1.0.0-rc1-final      coreclr x64          darwin          
       1.0.0-rc1-final      mono                 linux/osx       
  *    1.0.0-rc2-16177      mono                 linux/osx       default

mono version

Mono JIT compiler version 4.2.1 (explicit/6dd2d0d Tue Nov 10 18:01:18 EST 2015)

Update

I ran

 export DYLD_FALLBACK_LIBRARY_PATH=/Users/Andy/.dnx/packages/Microsoft.AspNet.Server.Kestrel/1.0.0-rc1-final/runtimes/osx/native/

which ended up giving me a different error when running dnx web:

System.DllNotFoundException: libc.dylib
  at (wrapper managed-to-native) System.IO.KeventWatcher:kqueue ()
  at System.IO.KeventWatcher.GetInstance (IFileWatcher& watcher) <0x105a29310 + 0x000f3> in <filename unknown>:0 
  at System.IO.FileSystemWatcher.InitWatcher () <0x105a28fa0 + 0x0012c> in <filename unknown>:0 
  at System.IO.FileSystemWatcher..ctor (System.String path, System.String filter) <0x105a28d00 + 0x00114> in <filename unknown>:0 
  at System.IO.FileSystemWatcher..ctor (System.String path) <0x105a28cc0 + 0x00023> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:.ctor (string)
  at Microsoft.AspNet.FileProviders.PhysicalFilesWatcher..ctor (System.String root) <0x105a285b0 + 0x00154> in <filename unknown>:0 
  at Microsoft.AspNet.FileProviders.PhysicalFileProvider..ctor (System.String root) <0x105a282d0 + 0x000e4> in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.HostingEnvironmentExtensions.Initialize (IHostingEnvironment hostingEnvironment, System.String applicationBasePath, IConfiguration config) <0x105a27f20 + 0x001ea> in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.WebHostBuilder.Build () <0x105a1a860 + 0x000b8> in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.WebApplication.Run (System.Type startupType, System.String[] args) <0x105560990 + 0x00216> in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.WebApplication.Run (System.String[] args) <0x10555fef0 + 0x0001a> in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.Program.Main (System.String[] args) <0x10555fec0 + 0x00014> in <filename unknown>:0 
  at Microsoft.AspNet.Server.Kestrel.Program.Main (System.String[] args) <0x10555fc90 + 0x000b5> in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x1050027a0 + 0x000b7> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () in <filename unknown>:line 0
   at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly assembly, System.String[] args, IServiceProvider serviceProvider) in <filename unknown>:line 0
   at Microsoft.Dnx.ApplicationHost.Program+<>c__DisplayClass3_0.<ExecuteMain>b__0 () in <filename unknown>:line 0
   at System.Threading.Tasks.Task`1[TResult].InnerInvoke () in <filename unknown>:line 0
   at System.Threading.Tasks.Task.Execute () in <filename unknown>:line 0

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
   at System.IO.FileSystemWatcher.Stop () in <filename unknown>:line 0
   at System.IO.FileSystemWatcher.Finalize () in <filename unknown>:line 0
解决方案

After many reinstalls of Mono, Visual Code, Xamarin Studio, DNX, libuv, an upgrade of Node and RoberN giving me some clear pointers, I figured I should check my PATH env variable.Sure enough, as soon as I added /usr/lib/:/usr/local/lib to my PATH, it all started working!

dnx web

Hosting environment: Production
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.

Success!

这篇关于DNX红隼&QUOT; System.EntryPointNotFoundException:uv_loop_size&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 20:50