Entity Framework profiler - ASP.NET MVC4 with EF 6 -Unable to determine the provider name

Jacques

I've been using EF 6 in my ASP.NET MVC4 project for a while now without any issues.

The problem comes in when I add Entity Framework Profiler to the project, then suddenly I get the following error: "Unable to determine the provider name for provider factory of type 'System.Data.SqlClient.SqlClientFactory'. Make sure that the ADO.NET provider is installed or registered in the application config."

I've tried a couple of suggestions including an issue where the "EntityFramework.SqlServer.dll" was not present in the bin folder.

Stack trace:

System.Data.Entity.Config.DefaultInvariantNameResolver.GetService(Type type, Object key) +440
System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +83
System.Data.Entity.Config.CachingDependencyResolver.GetService(Type type, Object key) +179
System.Linq.WhereSelectArrayIterator`2.MoveNext() +82
System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source, Func`2 predicate) +215
System.Linq.WhereSelectArrayIterator`2.MoveNext() +82
System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source, Func`2 predicate) +215
System.Data.Entity.Config.CompositeResolver`2.GetService(Type type, Object key) +71
System.Data.Entity.Config.IDbDependencyResolverExtensions.GetService(IDbDependencyResolver resolver, Object key) +84
System.Data.Entity.Internal.InternalConnection.get_ProviderName() +112
System.Data.Entity.Internal.DefaultModelCacheKeyFactory.Create(DbContext context) +120
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +319
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +26
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +72
System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +21
System.Data.Entity.Internal.Linq.InternalSet`1.Find(Object[] keyValues) +40

Web.config:

  <entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  <parameters>
    <parameter value="v11.0" />
  </parameters>
</defaultConnectionFactory>
<providers>
  <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>

Connection detail:

<add name="MyProject" connectionString="Server=.\SQLEXPRESS;database=MyDatabase;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />

Any ideas what's causing this?

Notes:

  • I'm making use of ninject to handle dependency injection
  • I've recently upgraded to EF 6.0.1
Jacques

This was caused by a bug in Entity framework profiler and has been fixed in build 2214 (See :http://hibernatingrhinos.com/builds/uber-prof-v2/2214)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Entity Framework profiler - ASP.NET MVC4 with EF 6 -Unable to determine the provider name

From Dev

Entity Framework Profiler: unable to determine the provider name for provider factory of type 'system.data.sqlclient.sqlclientfactory'

From Dev

ASP.net Entity Framework Unable to determine the principal end of relationship

From Dev

.NET Membership in ASP.NET MVC4 and Entity Framework with Oracle as Db

From Dev

'No Entity Framework provider found' for EF 6 and SQLite 1.0.96.0

From Dev

ASP.NET MVC4 + Razor on Mono + EF 6 DateTime crash

From Dev

How to retrieve image from database without using Entity Framework in ASP.NET MVC4

From Dev

How to retrieve image from database without using Entity Framework in ASP.NET MVC4

From Dev

ASP.NET MVC4 Entity Framework db.SaveChanges() Condition not working

From Dev

ADO.NET provider with invariant name 'System.Data.SqlClient;' cannot be found (Entity Framework MVC)

From Dev

Log4net with Entity Framework 5 and MVC4

From Dev

ASP.net vNext and Entity Framework 6

From Dev

MVC4 Entity Framework 6 Model State Validation Issues

From Dev

inserting record in junction table asp.net MVC 4 Entity framework 6

From Dev

inserting record in junction table asp.net MVC 4 Entity framework 6

From Dev

Entity based security in asp.net MVC4

From Dev

Oracle ODP.Net With Entity Framework 6 - Entity framework database compatible provider could not be found

From Dev

How to Use Entity Framework 6.x in Asp.Net 5 (MVC 6)

From Dev

Entity Framework error: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

From Java

No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

From Dev

Error: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

From Dev

No Entity Framework provider found for the ADO.NET provider with invariant name 'Oracle.ManagedDataAccess.Client'

From Dev

No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlServerCe.4.0'

From Dev

Custom Name for URL's in Asp.net MVC4

From Dev

Concurrency in ASP .NET MVC 5 with Entity Framework

From Dev

Using ASP.NET MVC with entity framework

From Dev

"Ado.Net Entity Data Model" template with VS2010, EF6 and SQLite EF6 provider?

From Dev

Saving images to database with asp.net mvc 4 + Entity Framework

From Dev

Invalid object name 'dbo.AspNetUsers' in Asp.NET MVC 5 Entity Framework

Related Related

  1. 1

    Entity Framework profiler - ASP.NET MVC4 with EF 6 -Unable to determine the provider name

  2. 2

    Entity Framework Profiler: unable to determine the provider name for provider factory of type 'system.data.sqlclient.sqlclientfactory'

  3. 3

    ASP.net Entity Framework Unable to determine the principal end of relationship

  4. 4

    .NET Membership in ASP.NET MVC4 and Entity Framework with Oracle as Db

  5. 5

    'No Entity Framework provider found' for EF 6 and SQLite 1.0.96.0

  6. 6

    ASP.NET MVC4 + Razor on Mono + EF 6 DateTime crash

  7. 7

    How to retrieve image from database without using Entity Framework in ASP.NET MVC4

  8. 8

    How to retrieve image from database without using Entity Framework in ASP.NET MVC4

  9. 9

    ASP.NET MVC4 Entity Framework db.SaveChanges() Condition not working

  10. 10

    ADO.NET provider with invariant name 'System.Data.SqlClient;' cannot be found (Entity Framework MVC)

  11. 11

    Log4net with Entity Framework 5 and MVC4

  12. 12

    ASP.net vNext and Entity Framework 6

  13. 13

    MVC4 Entity Framework 6 Model State Validation Issues

  14. 14

    inserting record in junction table asp.net MVC 4 Entity framework 6

  15. 15

    inserting record in junction table asp.net MVC 4 Entity framework 6

  16. 16

    Entity based security in asp.net MVC4

  17. 17

    Oracle ODP.Net With Entity Framework 6 - Entity framework database compatible provider could not be found

  18. 18

    How to Use Entity Framework 6.x in Asp.Net 5 (MVC 6)

  19. 19

    Entity Framework error: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

  20. 20

    No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

  21. 21

    Error: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

  22. 22

    No Entity Framework provider found for the ADO.NET provider with invariant name 'Oracle.ManagedDataAccess.Client'

  23. 23

    No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlServerCe.4.0'

  24. 24

    Custom Name for URL's in Asp.net MVC4

  25. 25

    Concurrency in ASP .NET MVC 5 with Entity Framework

  26. 26

    Using ASP.NET MVC with entity framework

  27. 27

    "Ado.Net Entity Data Model" template with VS2010, EF6 and SQLite EF6 provider?

  28. 28

    Saving images to database with asp.net mvc 4 + Entity Framework

  29. 29

    Invalid object name 'dbo.AspNetUsers' in Asp.NET MVC 5 Entity Framework

HotTag

Archive