Has anyone faced this error before with EF 4.1 code first?
A null was returned after calling the GetService method on a store provider instance of type StackExchange.Profiling.Data.EFProfiledOdbcProviderFactory. The store provider might not be functioning correctly.
I checked my connectionstring, it is fine and the same connectionstring is working fine for diff application. My DB is fine as well. And strangely it is happening on my machine.
Any suggestions?
This was due to a bug in EF 4.1 update 1. It is fixed in EF 4.2 and later. Please update to the latest version using NuGet.