asp.net-core – AspNetCore Abstractions无法加载

前端之家收集整理的这篇文章主要介绍了asp.net-core – AspNetCore Abstractions无法加载前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我使用 ASP.NET Core + Angular 2 template for Visual Studio.我已经更新了我的project.json文件,它现在看起来(它的一部分):
"dependencies": {
    "Microsoft.AspNetCore.AngularServices": "1.0.0-*","Microsoft.AspNetCore.Authentication.Cookies": "1.1.0-preview1-final","Microsoft.AspNetCore.Diagnostics": "1.1.0-preview1-final","Microsoft.AspNetCore.Hosting.Abstractions": "1.1.0-preview1-final","Microsoft.AspNetCore.Identity": "1.1.0-preview1-final","Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.1.0-preview1-final","Microsoft.AspNetCore.Mvc": "1.1.0-preview1-final","Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview3-final","Microsoft.AspNetCore.Server.IISIntegration": "1.1.0-preview1-final","Microsoft.AspNetCore.Server.Kestrel": "1.1.0-preview1-final","Microsoft.AspNetCore.StaticFiles": "1.1.0-preview1-final","Microsoft.EntityFrameworkCore": "1.1.0-preview1-final","Microsoft.EntityFrameworkCore.Design": "1.1.0-preview1-final","Microsoft.EntityFrameworkCore.Relational": "1.1.0-preview1-final","Microsoft.EntityFrameworkCore.Relational.Design": "1.1.0-preview1-final","Microsoft.EntityFrameworkCore.sqlite": "1.1.0-preview1-final","Microsoft.EntityFrameworkCore.sqlServer": "1.1.0-preview1-final","Microsoft.EntityFrameworkCore.sqlServer.Design": "1.1.0-preview1-final","Microsoft.EntityFrameworkCore.Tools": {
      "version": "1.0.0-preview3-final","type": "build"
    },"Microsoft.EntityFrameworkCore.Tools.Core": "1.0.0-rc2-final","Microsoft.Extensions.Configuration.CommandLine": "1.1.0-preview1-final","Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0-preview1-final","Microsoft.Extensions.Configuration.Json": "1.1.0-preview1-final","Microsoft.Extensions.DependencyInjection.Abstractions": "1.1.0-preview1-final","Microsoft.Extensions.FileProviders.Abstractions": "1.1.0-preview1-final","Microsoft.Extensions.Logging": "1.1.0-preview1-final","Microsoft.Extensions.Logging.Abstractions": "1.1.0-preview1-final","Microsoft.Extensions.Logging.Console": "1.1.0-preview1-final","Microsoft.Extensions.Logging.Debug": "1.1.0-preview1-final","Microsoft.Extensions.Options": "1.1.0-preview1-final","Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0-preview1-final","Microsoft.Extensions.Primitives": "1.1.0-preview1-final"
  },"tools": {
    "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final","Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview3-final"
  },"frameworks": {
    "net461": {}
  },

当我运行一个应用程序时,我收到一个错误

System.IO.FileLoadException was unhandled
Message: An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module.
Additional information: Could not load file or assembly 'Microsoft.AspNetCore.Hosting.Abstractions,Version=1.0.0.0,Culture=neutral,PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

你知道什么是错的吗?

解决方法

尝试删除bin文件夹并重建解决方案.
原文链接:https://www.f2er.com/aspnet/249105.html

猜你在找的asp.Net相关文章