For beta1/2

Short version

Install vNext packages from NuGet daily package source


If you are trying out ASP.NET vNext and get this error on the ConfigureServices, you probably need to add the master or daily nuget feed from ASP.Net vNext in order to get the right dependencies.

  1. Update K runtime using update KVM. From a cmd window run the following command
    @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString(''))"

  2. Select the new runtime by right-clicking on the web site and go to properties. The target KRE version might seem disabled, but try clicking it and select the runtime you want. With the project.json listed below I use beta2.

  3. Tools > Options > NuGet Package manager > Package Sources. Click the green add and add a vNext Dalies source pointing to

  4. Open nuget packages and update all your packages from the new package source or use the project.json below.

Voila, no more IServiceCollection problems.

    "webroot": "wwwroot",
    "version": "1.0.0-*",
    "exclude": [
    "packExclude": [
    "dependencies": {
        "Microsoft.AspNet.Server.IIS": "",
        "Microsoft.AspNet.Diagnostics": "",
        "Microsoft.AspNet.Mvc": "",
        "Microsoft.Framework.DependencyInjection": ""
    "frameworks": {
        "aspnet50": {
            "dependencies": {
        "aspnetcore50": { }