无法在用户的计算机上找到请求的.Net Framework数据提供程序 [英] Unable to find the requested .Net Framework Data Provider - on user's machine

查看:93
本文介绍了无法在用户的计算机上找到请求的.Net Framework数据提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将wpf应用程序部署到用户的计算机上。

I am deploying a wpf app to a user's machine.

该计算机是win7 sp1,我已经在尝试修复的计算机上安装了EF和.NET 4框架问题。

The machine is win7 sp1, I have installed EF and .NET 4 framework on the computer trying to fix the issue.

这是app.config

Here is the app.config

< connectionStrings>

< add name =" _MNG_Model" connectionString =" Data Source = MNG.sdf" providerName =" System.Data.SqlServerCe.4.0" />

< / connectionStrings>

<connectionStrings>
<add name="_MNG_Model" connectionString="Data Source=MNG.sdf" providerName="System.Data.SqlServerCe.4.0"/>
</connectionStrings>

我现在得到的错误是:

无法找到请求的.Net Framework数据提供程序。它可能没有安装。"

我不应该将SQL CE安装到用户的机器上,因为它是一个bin部署正确吗?

I should not have to install SQL CE to the user's machine because it is a bin deploy correct?

推荐答案

嗨Terrence,

Hi Terrence,

SQL CE可以进行bin部署,但是如果只是添加对程序集的引用,默认情况下不会得到这个。

SQL CE can be bin deployed, but you won't get this by default if you just add a reference to the assembly.

最简单的方法是使用  SqlServerCompact NuGet包;  http:// nuget.org/List/Packages/SqlServerCompact 

The easiest way to do this is to use the SqlServerCompact NuGet package; http://nuget.org/List/Packages/SqlServerCompact 

~Rowan


这篇关于无法在用户的计算机上找到请求的.Net Framework数据提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆