title: System.DllNotFoundException: Unable to load DLL 'libuv' when publishing .NET Core Website on Windows Server 2008 R2
body: <p>I'm getting an error when publishing my .NET Core Asp.NET Web Application on a Windows Server 2008 R2. It has to do with <strong>libuv</strong>:</p>
  
  <pre><code>Unhandled Exception: System.AggregateException: One or more errors occurred. ---&gt; System.DllNotFoundException: Unable to load DLL 'libuv': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
  at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.NativeMethods.uv_loop_size()
  at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.loop_size()
  at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvLoopHandle.Init(Libuv uv)
  at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelThread.ThreadStart(Object parameter)
  </code></pre>
  
  <p>The strange thing is, when I publish locally on my development machine, I can see the <strong>libuv.dll</strong> in the publish folder. And the application works on my local machine through IIS.</p>
  
  <p><strong>project.json framework:</strong></p>
  
  <pre><code>"frameworks": {
    "net461": {}
  },
  </code></pre>
  
  <p><strong>Using these commands:</strong></p>
  
  <pre><code>dotnet restore
  dotnet build
  dotnet publish --configuration Release  --runtime active
  </code></pre>
  
  <p>Any idea how I can fix this?</p>