An assembly specified in the application dependencies manifest (…) was not found

前端 未结 9 562
长发绾君心
长发绾君心 2020-12-23 16:38

I upgraded Microsoft.AspNetCore from 2.0.3 to 2.0.5 and my WebAPI project, although running successfully locally, fails to start in production (IIS). Everything was fine in

9条回答
  •  情歌与酒
    2020-12-23 16:59

    For me, the marked answer didn't solve the issue. My issue was when trying to Add-Migration

    Add-Migration -Name initial-migration -Context Mysln.Data.MyDbContext -StartupProject Mysln -Project Mysln.Core
    

    And the error was like this:

    I solved it by downgrading all my Entityframework packages to 2.0.0 instead of the latest 2.2.0-preview one.

提交回复
热议问题