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

DllNotFoundException: Unable to load DLL 'libuv': The specified module could not be found. (Exception from HRESULT: 0x8007007E) #1652

@codepunkt

Description

@codepunkt

Steps to reproduce using Visual Studio Professional 2017, 15.0.0+26228.9 and .NET Framework 4.6.01586

  1. New Project > Console App (.NET Framework)

  2. Manage NuGet Packages, Add "Microsoft.AspNetCore" (v 1.1.1)

  3. Program.cs code

    using System.IO;
    using Microsoft.AspNetCore.Hosting;
    
    namespace API
    {
        internal class Program
        {
            private static void Main(string[] args)
            {
                var host = new WebHostBuilder()
                    .UseKestrel()
                    .UseContentRoot(Directory.GetCurrentDirectory())
                    .CaptureStartupErrors(true)
                    .UseSetting("detailedErrors", "true")
                    .Build();
    
                host.Run();
            }
        }
    }
  4. Start Debugging

System.AggregateException occurred
HResult=0x80131500
Message=One or more errors occurred.
Source=mscorlib
StackTrace:
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelEngine.Start(Int32 count)
at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Start[TContext](IHttpApplication`1 application)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Start()
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host, CancellationToken token, String shutdownMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
at API.Program.Main(String[] args) in C:\Users\ChristophW\Documents\Visual Studio 2017\Projects\GraphQL\API\Program.cs:line 19

Inner Exception 1:
DllNotFoundException: Unable to load DLL 'libuv': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I suppose i'm somehow approaching this the wrong way - i want a console application running on .net framework 4.6.x for interoperability with existing projects. console application should expose a kestrel API server based on asp.net core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions