yodeski / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

ProviderIncompatibleException when specifying the connection #102

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Downloaded rev bc0528ec8e71
2.Run the Sample.MVC project
3.Navigate to /Home/EFCodeFirst/

What is the expected output? What do you see instead?
An exception is thrown:
A provider factory for the specified store connection of type 
'MvcMiniProfiler.Data.EFProfiledDbConnection' could not be discovered. The 
registered provider factories and all provider factories in the assembly where 
'MvcMiniProfiler.Data.EFProfiledDbConnection' is defined were searched for a 
factory that would produce a matching connection.

What version of the product are you using? On what operating system?
rev: bc0528ec8e71

Please provide any additional information below.
The same exception is thrown when I get apply the MiniProfiler.* packages on a 
clean spike solution. As long as I don't specify the conection string in 
web.config everything is fine, but once I specify the connection string, the 
exception is thrown

Original issue reported on code.google.com by krzyszto...@gmail.com on 31 Aug 2011 at 10:38

GoogleCodeExporter commented 9 years ago
This is a helper class I use to work around the issue.
My class derived from DbContext has a dependency on a connection which is 
handled by IoC..

The code it partially taken from EF assemblies.

Original comment by krzyszto...@gmail.com on 15 Sep 2011 at 9:31

Attachments: