asp.net - "Unable to determine the provider name" error with mvc-mini-profiler 1.9 -


I am using an entity framework with mvc-mini-profiler. After upgrading Mvc-mini-profiler from 1.7 to version 1.9, and I managed to compile my project. Now I get the following Runtime exception:

Unable to determine the provider name for the connection of type 'MvcMiniProfiler.Data.EFProfiledDbConnection'

I suppose The problem is that the configured DB provider may be related to factories because I had the same problem with version 1.7 and resolved it by adding the following to my .config file:

   & Lt; Add name = "MvcMiniProfiler.Data.ProfiledDbProvider" invariant = "MvcMiniProfiler.Data.ProfiledDbProvider" Description = "MvcMiniProfiler.Data.ProfiledDbProvider" type = "MvcMiniProfiler.Data.ProfiledDbProviderFactory, MvcMiniProfiler, version = 1.7.0.0, culture = neutral, public key Token = B44F9351044011A3 "/> & Lt; / DbProviderFactories & gt;   

Now I tried to change the above location with the following, but I still get the error:

   & Lt; Add name = "MvcMiniProfiler.Data.ProfiledDbProvider" invariant = "MvcMiniProfiler.Data.ProfiledDbProvider" Description = "MvcMiniProfiler.Data.ProfiledDbProvider" type = "MvcMiniProfiler.Data.EFProfiledDbProviderFactory11, MvcMiniProfiler.EntityFramework, version = 1.9.1.0, culture = fair , Public Koken = B44f 9 351044011 A3 "/> & Lt; / DbProviderFactories & gt;   

What is the correct configuration to solve this problem?

Have you tried to remove DbProviderFactories from your .config?

Do you have initialization in it?

  Secure void Application_Start () {.... Other code MiniProfilerEF start (); } With 1.9, I started in the beginning and removed the config section and now I have SQL profiling with F.   

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -