Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl y 'Microsoft.Extensions.Primitives
See original GitHub issueHi Guys, I running project with command line “dotnet run” it’s throw error and I don’t know why please let’s me know how to resolve this problem, thanks
Full ERROR
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl y ‘Microsoft.Extensions.Primitives, Version=1.1.0.0, Culture=neutral, PublicKeyT oken=adb9793829ddae60’ or one of its dependencies. The located assembly’s manife st definition does not match the assembly reference. (Exception from HRESULT: 0x 80131040) —> System.IO.FileLoadException: Could not load file or assembly ‘Microsoft.Extensions.Primitives, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a db9793829ddae60’ or one of its dependencies. The located assembly’s manifest def inition does not match the assembly reference. (Exception from HRESULT: 0x801310 40) — End of inner exception stack trace — at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.AspNetCore.Hosting.WebHostBuilder…ctor() at WBS.BackEnd.Program.Main(String[] args) in D:\1.Coding\StartUp\WBS\3. Sour ce Code\WBS.Solution\src\WBS.BackEnd\Program.cs:line 10
Environment data
dotnet --info
output:
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment: OS Name: Windows OS Version: 6.2.9200 OS Platform: Windows RID: win8-x64
Project.json
“dependencies”: { “Microsoft.AspNetCore.Diagnostics”: “1.0.0-rc2-final”, “Microsoft.AspNetCore.Mvc”: “1.0.0-rc2-final”, “Microsoft.AspNetCore.Razor.Tools”: { “version”: “1.0.0-preview1-final”, “type”: “build” }, “Microsoft.AspNetCore.Server.IISIntegration”: “1.0.0-rc2-final”, “Microsoft.AspNetCore.Server.Kestrel”: “1.0.0-rc2-final”, “Microsoft.AspNetCore.StaticFiles”: “1.0.0-rc2-final”, “Microsoft.Extensions.Configuration.EnvironmentVariables”: “1.0.0-rc2-final”, “Microsoft.Extensions.Configuration.Json”: “1.0.0-rc2-final”, “Microsoft.Extensions.Logging”: “1.0.0-rc2-final”, “Microsoft.Extensions.Logging.Console”: “1.0.0-rc2-final”, “Microsoft.Extensions.Logging.Debug”: “1.0.0-rc2-final”, “Microsoft.VisualStudio.Web.BrowserLink.Loader”: “14.0.0-rc2-final”, “MongoDB.Driver”: “2.2.4”, “AngularJS.Animate”: “1.5.5”, “WBS.Common”: “1.0.0-", “WBS.Entities”: "1.0.0-”, “WBS.Service”: “1.0.0-*”, “Microsoft.Extensions.Options.ConfigurationExtensions”: “1.0.0-rc2-final”, “Microsoft.Extensions.DependencyInjection”: “1.0.0-rc2-final”, “System.IdentityModel.Tokens”: “5.0.0-rc1-211161024”, “System.IdentityModel.Tokens.Jwt”: “5.0.0-rc2-305061149”, “Microsoft.Framework.DependencyInjection.Abstractions”: “1.0.0-beta8”, “Microsoft.AspNetCore.Authentication.JwtBearer”: “1.0.0-rc2-final”, “Microsoft.AspNetCore.Cors”: “1.0.0-rc2-final”, “Microsoft.Owin.Security.Jwt”: “3.0.1”, “Microsoft.AspNetCore.Authentication.Cookies”: “1.0.0-rc2-final” },
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (3 by maintainers)
Top GitHub Comments
Hi svick I deleted folder bin, obj and restart my computer, it’s working ok now, I don’t know why occur problem Thank you for your help
@shahabganji , this helped. Problem was specifically with version of “Microsoft.AspNetCore.Routing” but good to update all.