Reputation: 65
I am checking the EntityFrameworkBasics sample project which comes with the installation of VistaDB5. When I try to build the project it successfully compiles despite the error message given below:
Error 1 Error 168: A null was returned after calling the 'GetService' method on a store provider instance of type 'VistaDB.Provider.VistaDBProviderFactory'. The store provider might not be functioning correctly. C:\Users\Public\Documents\VistaDB 5\Samples\Entity Framework\Basics\EFSampleCRUD\EmployeeModel.edmx 7 7 EFSampleCRUD
I havenot changed any changes to the project files.The app.config file is below:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="Entities" connectionString="metadata=res://*/EmployeeModel.csdl|res://*/EmployeeModel.ssdl|res://*/EmployeeModel.msl;provider=System.Data.VistaDB5;provider connection string='Data Source="SimpleDB.vdb5"'" providerName="System.Data.EntityClient"/>
</connectionStrings>
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.VistaDB5" />
<add invariant="System.Data.VistaDB5" name="VistaDB 5 Data Provider"
description="VistaDB 5 ADO.NET Provider for .Net 4"
type="VistaDB.Provider.VistaDBProviderFactory, VistaDB.5.NET40" />
</DbProviderFactories>
</system.data>
</configuration>
However the after successful built there is no error while running the application. Also If I add a new ADO.NET Entity datamodel and choose generate from database and click on new connection I don't see VistaDB5 in the datasource or dataprovider section of VS2012
Upvotes: 0
Views: 261
Reputation: 206
To address the issue with seeing VistaDB5 in the Visual Studio designers I'd recommend checking two things -
If that doesn't resolve the issue I'd recommend contacting us and opening a ticket at: support.gibraltarsoftware.com
Upvotes: 0