Unable to find the requested .Net Framework Data Provider.  It may not be installed.

Recently when i am working on a MVC3 app i got the error  "Unable to find the requested .Net Framework Data Provider.  It may not be installed."

It also generated a bunch of text as below.

System.ArgumentException was unhandled by user code
  Message=Unable to find the requested .Net Framework Data Provider.  It may not be installed.   Source=System.Data   StackTrace:        at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)        at System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig(String name)        at System.Data.Entity.Internal.LazyInternalConnection.Initialize()        at System.Data.Entity.Internal.LazyInternalConnection.get_ConnectionHasModel()        at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()        at System.Data.Entity.Internal.InternalContext.Initialize()        at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)        at System.Data.Entity.Internal.Linq.InternalSet1.Initialize()        at System.Data.Entity.Internal.Linq.InternalSet1.GetEnumerator()        at System.Data.Entity.Infrastructure.DbQuery1.System.Collections.Generic.IEnumerable<TResult>.GetEnumerator()        at System.Collections.Generic.List1..ctor(IEnumerable1 collection)        at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)

       at lambda_method(Closure , ControllerBase , Object[] )        at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)        at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters)        at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters)        at System.Web.Mvc.ControllerActionInvoker.<>cDisplayClass15.b12()        at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)   InnerException:

I searched many blogs and sites. Finally i got resolved the problem by simplely re-installing the sqlServerCE on my machine. Here is the link for download
http://download.microsoft.com/download/0/5/D/05DCCDB5-57E0-4314-A016-874F228A8FAD/SSCERuntime_x86-ENU.exe

Get posts by email

Like what you're reading? Get these posts delivered to your inbox.