Tag: teamcity 7.1

entity framework提供程序types无法加载?

我想在我的机器上安装的TeamCity上运行我的testing。 System.InvalidOperationException : “ System.Data.SqlClient ”ADO.NET提供程序的entity framework提供程序types“ System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer , Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'不能加载。 确保提供者程序集可用于正在运行的应用程序。 有关更多信息,请参阅http://go.microsoft.com/fwlink/?LinkId=260882 。 在我的任何项目中都没有提及System.Data.Entity ,就像在codeplex上build议升级到EF6一样。 所以,我不知道为什么我得到这个exception。 当我从VS运行testing时,我没有得到任何这样的exception。 我确实尝试将CopyLocal设置为false,然后再次设置为true ..但是这似乎也不起作用。 更新 我的app.config有以下内容。 这是否会导致一些我不明白的行为? <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> <!– For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 –> </configSections> <entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" […]