未能加载文件或程序集“EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个

Resolution of the dependency failed, type = "OperateCenter.ServiceContracts.ISysService", name = "(none)".


Exception occurred while: while resolving.


Exception is: FileLoadException - 未能加载文件或程序集“EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)


-----------------------------------------------


At the time of the exception, the container was:






  Resolving OperateCenter.Application.Implementation.SysServiceImpl,(none) (mapped from OperateCenter.ServiceContracts.ISysService, (none))


  Resolving parameter "context" of constructor OperateCenter.Application.Implementation.SysServiceImpl(OperateCenter.Domain.Repositories.IRepositoryContext context, OperateCenter.Domain.Repositories.IMenuRepository menuRepository)


    Resolving OperateCenter.Domain.Repositories.EntityFramework.EntityFrameworkRepositoryContext,(none) (mapped from OperateCenter.Domain.Repositories.IRepositoryContext, (none))


一直以为Unity没有映射对,原来是在不同时间安装不同版本的Entity Framework

你可能感兴趣的:(asp.net(C#))