Skip to content

Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions' after upgrading ASP.NET to 1.1 from 1.0.1 #1874

Closed
@DOMZE

Description

@DOMZE

Hello,

I've read through the following 2 (issue 1, issue 2) issues and tried the fixes:
Clearing my nuget global-packages cache
Deleting my bin folder along with the obj folder
Deleting the .lock files

I copied all my dependencies (except my framework dependencies) from my project.json to a brand new ASP.NET Core project and setting the project to a net461 project.
The project compiled and ran properly.

Here is my project.json:

{
  "version": "1.1",
  "dependencies": {
    "Autofac": "4.2.1",
    "Autofac.Extensions.DependencyInjection": "4.0.0",
    "Autofac.Framework.DependencyInjection": "4.0.0-beta8-157",
    "DocumentFormat.OpenXml": "2.5.0",
    "Microsoft.AspNetCore.Mvc": "1.1.0",
    "Microsoft.AspNetCore.Mvc.TagHelpers": "1.1.0",
    "Microsoft.AspNetCore.DataProtection": "1.1.0",
    "Microsoft.AspNetCore.DataProtection.Extensions": "1.1.0",
    "Microsoft.AspNetCore.Diagnostics": "1.1.0",
    "Microsoft.AspNetCore.Identity": "1.1.0",
    "Microsoft.AspNetCore.Session": "1.1.0",
    "Microsoft.AspNetCore.SignalR.Server": "0.1.0",
    "Microsoft.AspNetCore.WebSockets.Server": "0.1.0",
    "Microsoft.AspNetCore.StaticFiles": "1.1.0",
    "Microsoft.AspNetCore.Server.Kestrel": "1.1.0",
    "Microsoft.AspNetCore.Razor.Tools": {
      "version": "1.1.0-preview4-final",
      "type": "build"
    },
    "Microsoft.Extensions.Caching.Memory": "1.1.0",
    "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0",
    "Microsoft.Extensions.Configuration.Json": "1.1.0",
    "Microsoft.Extensions.Configuration.UserSecrets": "1.1.0",
    "Microsoft.Extensions.Logging": "1.1.0",
    "Microsoft.Extensions.Logging.Console": "1.1.0",
    "Microsoft.Extensions.Logging.Debug": "1.1.0",
    "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.1.0",
    "Newtonsoft.Json": "9.0.1",
    "xunit": "2.1.0",
    "Microsoft.AspNetCore.Server.IISIntegration": "1.1.0",
    "NLog.Extensions.Logging": "1.0.0-rtm-alpha5"
  },
  "frameworks": {
    "net461": {
      "dependencies": {
        "ProjectA": {
          "target": "project"
        },
        "ProjectB": {
          "target": "project"
        },
        "ProjectC": {
          "target": "project"
        },
        "ProjectD": {
          "target": "project"
        },
        "ProjectE": {
          "target": "project"
        },
        "ProjectF": {
          "target": "project"
        }
      },
      "frameworkAssemblies": {
        "System.Runtime.Serialization": "4.0.0",
        "WindowsBase": "4.0.0.0"
      }
    }
  },
  "buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true
  },
  "publishOptions": {
    "include": [
      "wwwroot",
      "Views",
      "appsettings.json",
      "appsettings.*.json",
      "web.config",
      "nlog.config.*"
    ],
    "exclude": [
      "**.user",
      "**.vspscc",
      "**.pdb"
    ]
  },
  "tools": {
    "Microsoft.AspNetCore.Razor.Tools": "1.1.0-preview4-final",
    "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.1.0-preview4-final"
  },,
  "runtimeOptions": {
    "configProperties": {
      "System.GC.Server": true
    }
  }
}

Any idea on how to resolve this?
I reverted to 1.0.1 and everything works as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions