无法找到请求的.Net Framework数据提供程序

时间:2021-12-15 02:11:01

I have built a wpf application that is using EF and SQLCE4.

我已经构建了一个使用EF和SQLCE4的wpf应用程序。

Everything works fine on my local dev machine however when I package it up and install on a test machine I keep getting this error

在我的本地开发机器上一切正常,但是当我打包并安装在测试机器上时,我不断收到此错误

Inner Expection System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed. at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) at System.Data.EntityClient.EntityConnection.GetFactory(String providerString)

内部Expect System.ArgumentException:无法找到请求的.Net Framework数据提供程序。它可能没有安装。 System.Data.EntityClient.EntityConnection.GetFactory(String providerString)中的System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)

I have installed the SQLCE4 application and both .net4 client & extended frameworks.

我已经安装了SQLCE4应用程序以及.net4客户端和扩展框架。

Has anyone run into this problem before?

有没有人遇到过这个问题?

1 个解决方案

#1


1  

You can use NuGet package manager 1.5 (for VS 2010 SP1) and download the SQL CE 4 package first.

您可以使用NuGet包管理器1.5(对于VS 2010 SP1)并首先下载SQL CE 4包。

And then add the package to you project, and rebuild it.

然后将包添加到您的项目中,并重建它。

For info about SQL Server CE 4's Nuget: http://www.nuget.org/List/Packages/SqlServerCompact

有关SQL Server CE 4的Nuget的信息:http://www.nuget.org/List/Packages/SqlServerCompact

On using Nuget: http://docs.nuget.org/

关于使用Nuget:http://docs.nuget.org/

#1


1  

You can use NuGet package manager 1.5 (for VS 2010 SP1) and download the SQL CE 4 package first.

您可以使用NuGet包管理器1.5(对于VS 2010 SP1)并首先下载SQL CE 4包。

And then add the package to you project, and rebuild it.

然后将包添加到您的项目中,并重建它。

For info about SQL Server CE 4's Nuget: http://www.nuget.org/List/Packages/SqlServerCompact

有关SQL Server CE 4的Nuget的信息:http://www.nuget.org/List/Packages/SqlServerCompact

On using Nuget: http://docs.nuget.org/

关于使用Nuget:http://docs.nuget.org/