patterncsharpCritical
Entity Framework Provider type could not be loaded?
Viewed 0 times
frameworkcouldentitynotproviderloadedtype
Problem
I am trying to run my tests on TeamCity which is currently installed on my machine.
The Entity Framework provider type
'
ADO.NET provider could not be loaded. Make sure the provider assembly
is available to the running application.
See http://go.microsoft.com/fwlink/?LinkId=260882 for more
information..
I have no reference to
So, I am not sure why am I getting this exception.
I do not get any such exception when I run the tests from VS.
I did try to set CopyLocal to false then again to true.. but that does not seem to work either.
Update
My app.config has the following . Does this cause some behavior that I don't understand ?
I get the following stacktrace in teamcity .
```
[MSTest] IntegrationTests.CrudTest+QuestionTest.Create
[03:59:11][IntegrationTests.CrudTest+QuestionTest.Create] Initialization method IntegrationTests.CrudTest+QuestionTest.Initialize threw exception. System.InvalidOperationException: System.InvalidOperationException: The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' for the 'System.Data.SqlClient' ADO.NET provider could not be loaded. Make sure the provider assembly is available to the running application. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information..
[03:59:11]
[IntegrationTests.CrudTest+QuestionTest.Create] at System.Data.Entity.Config.ProviderServicesFactory.GetInstance(String providerTypeName, String providerInvariantName)
at System.Data.Entity.Config.ProviderServicesFactory.GetInstanceByConvention(S
System.InvalidOperationException: The Entity Framework provider type
'
System.Data.Entity.SqlServer.SqlProviderServices,
EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' for the 'System.Data.SqlClient'ADO.NET provider could not be loaded. Make sure the provider assembly
is available to the running application.
See http://go.microsoft.com/fwlink/?LinkId=260882 for more
information..
I have no reference to
System.Data.Entity in any of my projects as was suggested on codeplex for upgrading to EF6.So, I am not sure why am I getting this exception.
I do not get any such exception when I run the tests from VS.
I did try to set CopyLocal to false then again to true.. but that does not seem to work either.
Update
My app.config has the following . Does this cause some behavior that I don't understand ?
I get the following stacktrace in teamcity .
```
[MSTest] IntegrationTests.CrudTest+QuestionTest.Create
[03:59:11][IntegrationTests.CrudTest+QuestionTest.Create] Initialization method IntegrationTests.CrudTest+QuestionTest.Initialize threw exception. System.InvalidOperationException: System.InvalidOperationException: The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' for the 'System.Data.SqlClient' ADO.NET provider could not be loaded. Make sure the provider assembly is available to the running application. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information..
[03:59:11]
[IntegrationTests.CrudTest+QuestionTest.Create] at System.Data.Entity.Config.ProviderServicesFactory.GetInstance(String providerTypeName, String providerInvariantName)
at System.Data.Entity.Config.ProviderServicesFactory.GetInstanceByConvention(S
Solution
Same problem, but i installed EF 6 through Nuget. EntityFramework.SqlServer was missing for another executable. I simply added the nuget package to that project.
Context
Stack Overflow Q#14033193, score: 451
Revisions (0)
No revisions yet.