asp.net core web app build success but fail to start up

来源:互联网 发布:袋鼠有多强壮知乎 编辑:程序博客网 时间:2024/06/10 06:22

error

The program '[35412] dotnet.exe' has exited with code -2147450749 (0x80008083).The program '[5656] iisexpress.exe: Program Trace' has exited with code 0 (0x0).The program '[5656] iisexpress.exe' has exited with code 0 (0x0).

solution

The issue is that you might be running an old version of the framework. Try going to the root (project.json) location of your runnable project and in aCommand Prompt type:

dotnet run 

D:\Git\Docs\aspnetcore\fundamentals\logging\sample\src\TodoApi>dotnet run
Project TodoApi (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
The specified framework 'Microsoft.NETCore.App', version '1.1.0' was not found.
  - Check application dependencies and target a framework version installed at:
      C:\Program Files\dotnet\shared\Microsoft.NETCore.App
  - The following versions are installed:
      1.0.0
      1.0.1
  - Alternatively, install the framework version '1.1.0'.

Stackoverflow.

0 0
原创粉丝点击