无法找到所需的.NET Framework数据提供所需、数据、NET、Framework

2023-09-06 05:41:22 作者:相思似海深

我已经建立了使用EF和SQLCE4一个WPF应用程序。

一切正常,在我的本地开发机器然而,当我包起来,并安装一个测试机器,我不断收到此错误

  

内蒙古厚望System.ArgumentException:无法找到所需的.NET Framework数据提供。它可能没有安装。      在System.Data.Common.DbProviderFactories.GetFactory(字符串providerInvariantName)      在System.Data.EntityClient.EntityConnection.GetFactory(字符串providerString)

我已经安装了SQLCE4应用和双方.NET4客户端和放大器;扩展的框架。

有没有人碰到这个问题?

解决方案

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

然后到你的项目添加的软件包,并重建它。

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

在使用的NuGet: http://docs.nuget.org/

未能在路径 找到系统必备Framework 2.0

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

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)

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

Has anyone run into this problem before?

解决方案

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

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

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