title: dnx kestrel "System.EntryPointNotFoundException: uv_loop_size"
body: <p>I'm trying to run an unmodified Web Api application created by yo aspnet.</p>
  
  <p>I'm getting this error:</p>
  
  <pre><code>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 () &lt;0x42615b8 + 0x00014&gt; in &lt;filename unknown&gt;:0 
    at Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle.Init (Microsoft.AspNet.Server.Kestrel.Networking.Libuv uv) &lt;0x4261528 + 0x0002b&gt; in &lt;filename unknown&gt;:0 
    at Microsoft.AspNet.Server.Kestrel.KestrelThread.ThreadStart (System.Object parameter) &lt;0x4261160 + 0x0005f&gt; in &lt;filename unknown&gt;:0 
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>dnvm list output:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>mono version</p>
  
  <pre><code>Mono JIT compiler version 4.2.1 (explicit/6dd2d0d Tue Nov 10 18:01:18 EST 2015)
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>I ran</p>
  
  <pre><code> export DYLD_FALLBACK_LIBRARY_PATH=/Users/Andy/.dnx/packages/Microsoft.AspNet.Server.Kestrel/1.0.0-rc1-final/runtimes/osx/native/
  </code></pre>
  
  <p>which ended up giving me a different error when running dnx web:</p>
  
  <pre><code>System.DllNotFoundException: libc.dylib
    at (wrapper managed-to-native) System.IO.KeventWatcher:kqueue ()
    at System.IO.KeventWatcher.GetInstance (IFileWatcher&amp; watcher) &lt;0x105a29310 + 0x000f3&gt; in &lt;filename unknown&gt;:0 
    at System.IO.FileSystemWatcher.InitWatcher () &lt;0x105a28fa0 + 0x0012c&gt; in &lt;filename unknown&gt;:0 
    at System.IO.FileSystemWatcher..ctor (System.String path, System.String filter) &lt;0x105a28d00 + 0x00114&gt; in &lt;filename unknown&gt;:0 
    at System.IO.FileSystemWatcher..ctor (System.String path) &lt;0x105a28cc0 + 0x00023&gt; in &lt;filename unknown&gt;:0 
    at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:.ctor (string)
    at Microsoft.AspNet.FileProviders.PhysicalFilesWatcher..ctor (System.String root) &lt;0x105a285b0 + 0x00154&gt; in &lt;filename unknown&gt;:0 
    at Microsoft.AspNet.FileProviders.PhysicalFileProvider..ctor (System.String root) &lt;0x105a282d0 + 0x000e4&gt; in &lt;filename unknown&gt;:0 
    at Microsoft.AspNet.Hosting.HostingEnvironmentExtensions.Initialize (IHostingEnvironment hostingEnvironment, System.String applicationBasePath, IConfiguration config) &lt;0x105a27f20 + 0x001ea&gt; in &lt;filename unknown&gt;:0 
    at Microsoft.AspNet.Hosting.WebHostBuilder.Build () &lt;0x105a1a860 + 0x000b8&gt; in &lt;filename unknown&gt;:0 
    at Microsoft.AspNet.Hosting.WebApplication.Run (System.Type startupType, System.String[] args) &lt;0x105560990 + 0x00216&gt; in &lt;filename unknown&gt;:0 
    at Microsoft.AspNet.Hosting.WebApplication.Run (System.String[] args) &lt;0x10555fef0 + 0x0001a&gt; in &lt;filename unknown&gt;:0 
    at Microsoft.AspNet.Hosting.Program.Main (System.String[] args) &lt;0x10555fec0 + 0x00014&gt; in &lt;filename unknown&gt;:0 
    at Microsoft.AspNet.Server.Kestrel.Program.Main (System.String[] args) &lt;0x10555fc90 + 0x000b5&gt; in &lt;filename unknown&gt;:0 
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&amp;)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) &lt;0x1050027a0 + 0x000b7&gt; in &lt;filename unknown&gt;:0 
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () in &lt;filename unknown&gt;:line 0
     at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly assembly, System.String[] args, IServiceProvider serviceProvider) in &lt;filename unknown&gt;:line 0
     at Microsoft.Dnx.ApplicationHost.Program+&lt;&gt;c__DisplayClass3_0.&lt;ExecuteMain&gt;b__0 () in &lt;filename unknown&gt;:line 0
     at System.Threading.Tasks.Task`1[TResult].InnerInvoke () in &lt;filename unknown&gt;:line 0
     at System.Threading.Tasks.Task.Execute () in &lt;filename unknown&gt;:line 0
  
  Unhandled Exception:
  System.NullReferenceException: Object reference not set to an instance of an object
     at System.IO.FileSystemWatcher.Stop () in &lt;filename unknown&gt;:line 0
     at System.IO.FileSystemWatcher.Finalize () in &lt;filename unknown&gt;:line 0
  </code></pre>