Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

erro asp net + core application EntityFrameowrk

$
0
0

I have tried to run my asp net + core application EntityFrameowrk however it has returned me the following error :

An exception of type 'System.TypeLoadException' occurred in Agenda.dll but was not handled in user code

Additional information: Could not load type 'Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions' from assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

Below the project.json

{"dependencies": {"Microsoft.NETCore.App": {"version": "1.0.1","type": "platform","Microsoft.Framework.Configuration.Json": "1.0.0-*"
    },"Microsoft.AspNetCore.Mvc": "1.0.1","Microsoft.AspNetCore.Server.IISIntegration": "1.0.0","Microsoft.AspNetCore.Server.Kestrel": "1.0.1","Microsoft.AspNetCore.StaticFiles": "1.0.0","Microsoft.EntityFrameworkCore": "1.0.1","Microsoft.EntityFrameworkCore.SqlServer": "1.0.0","Microsoft.Extensions.Configuration.Json": "1.0.0","Microsoft.AspNetCore.Mvc.ViewFeatures": "1.0.1","EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final","Microsoft.Extensions.Logging.Console": "1.0.0","Microsoft.AspNetCore.Diagnostics": "1.0.0","Microsoft.Extensions.DependencyInjection": "1.0.0","Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final","Microsoft.Extensions.Configuration.FileExtensions": "1.0.0","Microsoft.AspNetCore.Mvc.DataAnnotations": "1.0.1"

  },
  "commands": {"web": "Microsoft.AspnetCore.Server.Kestrel"
  },"tools": {"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
  },"frameworks": {"netcoreapp1.0": {"imports": ["dotnet5.6","portable-net45+win8"
      ]
    }
  },"buildOptions": {"emitEntryPoint": true,"preserveCompilationContext": true,"copyToOutput": "appsettings.json"
  },"runtimeOptions": {"configProperties": {"System.GC.Server": true
    }
  },"publishOptions": {"include": ["wwwroot","web.config","config.json"
    ]
  },"scripts": {"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
  }

}


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>