ADO.NET Data Services and Entity Framework

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
Posts: 3
Joined: Wed 19 Nov 2008 22:26

ADO.NET Data Services and Entity Framework

Post by esanchez » Wed 25 Mar 2009 21:56

I'm trying to create an ADO.NET Data Service and am running into a strange error message on the production server.


Request Error

The server encountered an error processing the request. The exception message is 'The specified store provider cannot be found in the configuration, or is not valid.'. See server logs for more details. The exception stack trace is:

at System.Data.EntityClient.EntityConnection.GetFactory(String providerString) at System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString) at System.Data.EntityClient.EntityConnection..ctor(String connectionString) at System.Data.Objects.ObjectContext.CreateEntityConnection(String connectionString) at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) at SpectraCorpService.mainwebsiteEntities..ctor() in C:\Documents and Settings\spectraserv\Desktop\SpectraCorpService\MainWebsite.Designer.cs:line 26 at invoke_constructor() at System.Data.Services.DataService`1.CreateDataSource() at System.Data.Services.DataService`1.EnsureProviderAndConfigForRequest() at System.Data.Services.DataService`1.ProcessRequestForMessage(Stream messageBody) at SyncInvokeProcessRequestForMessage(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

Why would the service run fine on localhost but not on the production server?

Devart Team
Posts: 8033
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Thu 26 Mar 2009 10:43

You need to register our provider in the *.config file of your application.
This question was discussed here: .
For more information, please refer to our online documentation: ... using.html , the Entity Framework Support part, the Deploying an Entity Framework Project section.

Post Reply