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

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 a Command 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值