用entity framework 搭建的一个windows 程序,在vs中用oracle 的ODT 工具连接oracle数据库,昨天发布后出现下面一个错误, System.ArgumentException: The specified store provider cannot be found in the configuration, or is not valid. ---> System.ArgumentException: Unable to find the requested…
今天新装的SQLSERVER 2012 EXPRESS 用于客户端程序 安装完成后打开登陆SQLSERVER 一切正常 当查看表定义.视图结构时,弹出一下内容 Unable to find the requested .Net Framework Data Provider.  It may not be installed. (System.Data) 初步判定是 .net Framework版本问题 升级.net Framework 4.0 提示系统已经使用当前或更新版本 下载.net Fr…
  Registering DbProviderFactories Each .NET Framework data provider that supports a factory-based class registers configuration information in the DbProviderFactories section of the machine.config file on the local computer. The following configurati…
需要安装 mysql-connector-net-6.7.4.msi 在C盘安装mysql的位置找到三个DLL,复制到Bin文件夹下 在Web.config文件中添加对应配置: <system.data> <DbProviderFactories> <remove invariant="MySql.Data.MySqlClient" /> <add name="MySQL Data Provider" invariant=&…
换了个系统后发现VS2010和VS2012都有同样问题,在SQL EXPLORER 里连不上SQL Server,这也导致了打不开 dbml文件,会报错: The operation could not be completed. The parameter is incorrect. 可是program运行却是没有问题的.下面是一些解决思路 1.有人建议覆盖Framework\v.4.0.30319下面machine.config的DbProviderFactories http://soci…
今天想使用CodeSimth生成一个sqlite数据库的模板.当添加添加数据库的时候发现: .Net Framework Data Provider 可能没有安装. 下面找到官方的文档说明: SQLite Schema Provider If you are trying to use the SQLite Schema Provider you may encounter the error message: 'The System.Data.SQLite library is not ins…
使用CodeSimth 连接SQLite数据库库 提示错误 codesmith 6以上的版本,说是支持sqlite生成,也有对应的sqliteprovider.dll,但是使用时却说Test failed.  找不到请求的 .Net Framework Data Provider.可能没有安装. 拷贝下面dll 到 CodeSimth 的 Bin目录下 x64/SQLite.Interop.dll   x86/SQLite.Interop.dll System.Data.SQLite.dll,S…
学习中遇到的问题: 找不到请求的 .Net Framework Data Provider.可能没有安装. 找到的解决方法 解决方法: 安装Microsoft SQL Server Compact 4.0. 安装Microsoft SQL Server Compact 4.0之后,程序运行正常. 问题的原因就是程序连接.sdf的数据库时的报错,所以安装Microsoft SQL Server Compact 4.0即可. Microsoft SQL Server Compact 4.0中文版下载…
  解决方法 在web.config里面添加 <system.data> <DbProviderFactories> <remove invariant="System.Data.SQLite"/> <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Pr…
需要安装 mysql-connector-net-6.7.4.msi 在C盘安装mysql的位置找到三个DLL,复制到Bin文件夹下 在C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config 增加 <system.data> <DbProviderFactories> <add name="MySQL Data Provider" invariant="MySql.D…
.NET Compact Framework Data Provider for SQL Server Mobile Standard Data Source=MyData.sdf;Persist Security Info=False;   SQL Server Compact How to specify the location of the SDF file Often times the .SDF database is not running in the current direc…
方法一.下载SQL Server Compact 4.0 安装后就可以解决.下载地址是: http://www.microsoft.com/downloads/zh-cn/details.aspx?familyid=033cfb76-5382-44fb-bc7e-b3c8174832e2&displaylang=zh-cn 方法二.在web.config里添加 <system.data> <DbProviderFactories> <add name="My…
1,首先需要将MySql.Data.dll复制到codesmith安装目录下bin文件夹下,注意dll的版本 2,其次因为codesmith7采用的是.net4.0的配置文件,(64位系统)找到C:\Windows\Microsoft.Net\Framework64\v4.0.30319\Config\machine.config 在其中的DbProviderFactories节点下添加 <remove invariant="MySql.Data.MySqlClient" /&g…
近来做的一个项目中,数据库用的是 MySql, 而在项目使用 Entity Data Model 来做数据服务层,可是在项目中添加 Data Entty Model 时,一般我们都会选择从数据库中直接生成,可是在选择Data Provider 时,就是没有 .net framework  Data provider for Mysql, 里面默认就只有一个 .net framework Data provider for SQL Server , 这个只能与 Microsoft 的 SQL se…
1.安装 mysql-connector-net-6.9.10.msi 2.修改C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config文件 <DbProviderFactories> <add name="Microsoft SQL Server Compact Data Provider" invariant="System.Data.SqlServerCe.3.5"…
webconfig配置以下节点(注意版本号) <system.data> <DbProviderFactories> <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClie…
问题: 这几天在装.NET 的开发环境,在装好VS2013和Oracle 11g之后,做了一个测试项目,运行调试没问题 但是涉及到数据库相关操作,如新建数据集.连接数据库等在调试的时候则会出现如下错误: 目前百度之后现存的解决方案: oracle odp.net 32位/64位版本的问题 解决方案链接:当然如果觉得这篇写的不怎么清楚,还可以点击 这里 (我碰到的就是这个问题,但是据博主提供的方法没有解决问题) Microsoft SQL Server Compact 4.0没有安装 这个问题是比…
最近想试着学习ASP.NET MVC,在点击 添加--新建项--Visual C#下的数据中的ADO.NET 实体数据模型,到"选择您的数据连接"时,出现错误,"在 .NET Framework Data Provider for Microsoft SQL Server Compact 3.5 中发生错误.请与提供程序供应商联系以解决此问题.",这里写下,以防自己忘记. 网上查了一下,说是重新安装一下 .NET Compact Framework 3.5,http…
oracle 11G, MVC4.0 项目,因刚重装系统,重新安装的VS2010, ORACLE 11G 运行项目,后报错 找不到请求的 .Net Framework Data Provider.可能没有安装. 经过检查,将 oracle 安装后的目录下,11.2.0\dbhome_2\ODP.NET\bin\2.x 文件夹下的 Oracle.DataAccess.dll 该文件复制进项目bin 文件夹下 即可.…
原文:http://www.cnblogs.com/chenrui7/p/3592082.html 今天想使用CodeSimth生成一个sqlite数据库的模板.当添加添加数据库的时候发现: .Net Framework Data Provider 可能没有安装. 下面找到官方的文档说明: SQLite Schema Provider If you are trying to use the SQLite Schema Provider you may encounter the error m…
使用MySQL开发过程中在自己的机器上跑项目是没有问题的,但在实际部署到服务器上的时候就发生“找不到请求的.Net Framework Data Provider解决方案”错误,在排除项目本身原因之后,找到了解决方案: 那就是——安装Connector/NET即可,因为在开发中自己的机器上已经提前安装好了这个,就没有太在意,忘记给服务器也安装此插件,需要注意的是要保持服务器上安装的Connector/NET版本和开发机器使用的版本是一样的, 这里贴上我使用的版本的下载地址:https://dev…
webconfig配置以下节点(注意版本号) 将下面代码放在machine.config中文件,如何Web.config文件没有配置,需要添加 <system.data> <DbProviderFactories> <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provide…
前言 公司行业是金融软件,之前用的都是Oracle数据库.Oracle数据库用一个词来形容:大而全.MySQL的话,可能是因为开源.便宜,现在越来越主流. 我们也支持MySQL数据库,不过平时不用.最近有个项目要用MySQL,需要我们修改对应的代码. 开发环境 语言:C# 框架:.NET 4.0 IDE:VS2010 报错 在SVN上更新最新项目代码之后,修改数据库配置项,运行IDE,然后报错. 报错本身不够清楚,而且容易理解成是.NET的环境问题. 定位问题 根据".Net Framework…
一.错误描述 今天在帮同事Debug的时候遇到这个问题,错误信息提示到是Data Provider的问题,首先我们看下环境. 数据库版本:Oracle 11.2.0.4.0 64位 数据库服务器:linux 应用服务器:32位windows IIS:IIS7 .NetFramework:4.0 猜测到是没有安装.Net Framework的版本对应的Data Provider,查看web.config下面的节点: <system.data> <DbProviderFactories>…
方法1 如果系统未安装Oracle Data Provider 请参考方法2 右键单击项目,选择属性,切换到“生成”选项卡,将目标平台改为 Any CPU,并勾选“首选32位” 方法2 安装 Oracle Data Provider 如果没有对应的ODP.Net,需要自行安装,怎么知道你需要哪个类型哪个版本的ODP.Net呢? 这里有两个原则 1..Net应用程序与ODP.Net处理器类型保持一致,如:IIS的应用程序池是64位,那么ODP.Net的版本也要是64位的; 2..Net应用的.Ne…
MVC项目使用Entity Framework针对Oracle数据库进行开发时,由于Oracle官方网站一般建议开发者在64位操作系统中使用32位ODP.Net进行开发.在进行程序编码的时候不会有问题,但是编译无误后运行时可能会显示如下错误提示界面.网上大部分解决方案是修改Microsoft.Net中的machine.config文件.但这个未必奏效,其实导致这个问题出现可能还有另外一个原因,就是你在配置站点的时候禁止了32位程序的运行权限,由此导致32位ODP.Net无法正常运行.以下是我的解…
搜索MSDN的资源可以找到答案: 原文如下http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=473449&SiteID=1 以下是关于SqlDataReader.CLose()方法的解释: http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqldatareader.close.aspx 注意这段文字: Do not call Close or Dispose o…
解决方法: 安装Microsoft SQL Server Compact 4.0. 安装Microsoft SQL Server Compact 4.0之后,程序运行正常. 问题的原因就是程序连接.sdf的数据库时的报错,所以安装Microsoft SQL Server Compact 4.0即可. Microsoft SQL Server Compact 4.0中文版下载地址: http://www.microsoft.com/downloads/zh-cn/details.aspx?fami…
32位机器删除 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\version\DataProviders\{7C602B5B-ACCB-4acd-9DC0-CA66388C1533} 64位机器 删除 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\version\DataProviders\{7C602B5B-ACCB-4acd-9DC0-CA66388C153…
连接数据库时候报标题的错误解决方案 安装mysql-connector-net-6.8.7.msi,下载地址:http://dev.mysql.com/downloads/connector/net/6.8.html 安装mysql-for-visualstudio-1.2.6.msi,下载地址:http://dev.mysql.com/downloads/windows/visualstudio/1.2.html…