1

I just started a new ASP.NET empty project. I'm getting the following error when trying to run the site:

Could not load file or assembly 'Microsoft.Dnx.Host.Clr' or one of its dependencies. 

My project.json file:

{
  "webroot": "wwwroot",
  "version": "1.0.0-*",

  "dependencies": {
    "Microsoft.AspNet.Server.IIS": "1.0.0-beta7-12119",
    "Microsoft.AspNet.Server.WebListener": "1.0.0-beta7-12492",
    "Microsoft.AspNet.Mvc": "6.0.0-beta7-14376",
    "Microsoft.AspNet.Diagnostics": "1.0.0-beta7-13465",
    "Microsoft.Framework.DependencyInjection": "1.0.0-beta7-11621"

  },

  "commands": {
    "web": "Microsoft.AspNet.Hosting --config hosting.ini"
  },

  "frameworks": {
    "dnx451": { }
  },

  "publishExclude": [
    "node_modules",
    "bower_components",
    "**.xproj",
    "**.user",
    "**.vspscc"
  ],
  "exclude": [
    "wwwroot",
    "node_modules",
    "bower_components"
  ]
}

My Startup.cs file:

public void ConfigureServices(IServiceCollection services)
{

}

public void Configure(IApplicationBuilder app)
{
    app.Run(async context => await context.Response.WriteAsync("aaa"));   
}
2
  • 1
    Could be related to this: github.com/aspnet/Announcements/issues/44 Commented Aug 4, 2015 at 7:32
  • @tugberk yep, it seems related. I'll keep an eye on this issue.Thanks a lot. Commented Aug 4, 2015 at 7:34

1 Answer 1

3

This is related to the fact that Visual Studio 2015 tooling is not compatible with beta7 today. For more info and changes, you can keep an eye on this issue: https://github.com/aspnet/Announcements/issues/44

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.