jbogard / ContosoUniversityCore

MIT License
590 stars 150 forks source link

Unable to load DLL 'libuv': The specified module could not be found. #34

Open kahanu opened 5 years ago

kahanu commented 5 years ago

I just cloned this solution, created the SQL Server database, tried running it two different ways, 1) by clicking the IIS Express button in VS 2) at the command line, entering "dotnet run"

I get the same error. I investigated on StackOverflow and there was some mention of adding a new element to the .csproj file, like so:

<PropertyGroup>
    <RuntimeIdentifier>win7-x86</RuntimeIdentifier>
    <BaseNuGetRuntimeIdentifier>win7-x86</BaseNuGetRuntimeIdentifier>
</PropertyGroup>

This is the original section:

<PropertyGroup>
  <TargetFramework>net461</TargetFramework>
  <PreserveCompilationContext>true</PreserveCompilationContext>
  <AssemblyName>ContosoUniversityCore</AssemblyName>
  <OutputType>Exe</OutputType>
  <PackageId>ContosoUniversityCore</PackageId>
  <PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>

... and this is the modified section...

<PropertyGroup>
  <TargetFramework>net461</TargetFramework>
  <PreserveCompilationContext>true</PreserveCompilationContext>
  <AssemblyName>ContosoUniversityCore</AssemblyName>
  <OutputType>Exe</OutputType>
  <PackageId>ContosoUniversityCore</PackageId>
  <PlatformTarget>AnyCPU</PlatformTarget>
  <RuntimeIdentifier>win7-x86</RuntimeIdentifier>
  <BaseNuGetRuntimeIdentifier>win7-x86</BaseNuGetRuntimeIdentifier>
</PropertyGroup>

It still produces an exception, but this time it's a BadImageFormatting exception.

Any ideas how to get this to run?

jbogard commented 5 years ago

No idea!

On Tue, Jun 25, 2019 at 10:04 PM King Wilder notifications@github.com wrote:

I just cloned this solution, created the SQL Server database, tried running it two different ways,

  1. by clicking the IIS Express button in VS
  2. at the command line, entering "dotnet run"

I get the same error. I investigated on StackOverflow and there was some mention of adding a new element to the .csproj file, like so:

win7-x86 win7-x86

This is the original section:

net461 true ContosoUniversityCore Exe ContosoUniversityCore AnyCPU

... and this is the modified section...

net461 true ContosoUniversityCore Exe ContosoUniversityCore AnyCPU win7-x86 win7-x86

It still produces an exception, but this time it's a BadImageFormatting exception.

Any ideas how to get this to run?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jbogard/ContosoUniversityCore/issues/34?email_source=notifications&email_token=AAAZQMX6RM55CA7CXPGHQU3P4LME7A5CNFSM4H3OATT2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3WI6WQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAZQMXQXL7QUIUL6SKNESLP4LME7ANCNFSM4H3OATTQ .