[SSMS][Visual Studio] 解決 - Unable to find the requested .Net Framework Data Provider. It may not be installed

問題狀況

@VS2013

開啟 SSDT 連資料庫時,跳出了以下訊息

@SSMS

編輯 Table 時出現例外,如下圖:

詳細訊息如下:

===================================

Exception has been thrown by the target of an invocation. (SQLEditors)

------------------------------ 
Program Location:

at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) 
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) 
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) 
   at System.Activator.CreateInstance[T]() 
   at Microsoft.SqlServer.Management.DataTools.Providers.Common.CommonConnectionProperties`1..ctor() 
   at Microsoft.SqlServer.Management.DataTools.Providers.Common.CommonProviderObjectFactory`3.CreateObject(Type objType) 
   at Microsoft.SqlServer.Management.DataTools.Providers.SqlServer.SqlProviderObjectFactory.CreateObject(Type objType) 
   at Microsoft.SqlServer.Management.DataTools.DataServices.DataProvider.CreateObject(Guid dataSource, Type objType) 
   at Microsoft.SqlServer.Management.DataTools.DataServices.DataProvider.CreateConnectionProperties(Guid dataSource) 
   at Microsoft.SqlServer.Management.DataTools.DataServices.DataProviderManager.CreateConnectionProperties(Guid provider) 
   at Microsoft.SqlServer.Management.DataTools.Providers.SqlServer.SqlDataSourceSpecializer.DeriveDataSource(String connectionString) 
   at Microsoft.SqlServer.Management.DataTools.DataServices.DataProvider.DeriveDataSource(String connectionString) 
   at Microsoft.SqlServer.Management.DataTools.DataServices.DataConnection.SetConnectionStrings(String connectionString) 
   at Microsoft.SqlServer.Management.DataTools.DataServices.DataConnection..ctor(DataProvider provider, String connectionString, Boolean encryptedString) 
   at Microsoft.SqlServer.Management.DataTools.DataServices.DataConnectionFactory.CreateDataConnectionImpl(Guid provider, String connectionString, Boolean encryptedString) 
   at Microsoft.SqlServer.Management.Data.DataConnectionFactory.CreateDataConnection(Guid provider, String connectionString, Boolean encryptedString) 
   at Microsoft.SqlServer.Management.DataTools.DataServices.DataConnectionManager.CreateDataConnection(Guid provider, String connectionString, Boolean encryptedString) 
   at Microsoft.SqlServer.Management.Data.DataConnectionManager.GetDataConnection(Guid provider, String connectionString, Boolean encryptedString, Boolean update) 
   at Microsoft.SqlServer.Management.DataTools.DataServices.DataConnectionManager.Microsoft.SqlServer.Management.Data.Interop.IVsDataConnectionManager.GetDataConnection(Guid& guidProvider, String bstrConnectionString, Boolean fEncryptedString) 
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.CreateDesigner() 
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.Open() 
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con, String fileName) 
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con, String fileName) 
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con, String fileName) 
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.CreateDesignerWindow(IManagedConnection mc, DocumentOptions options)

===================================

Unable to find the requested .Net Framework Data Provider.  It may not be installed. (System.Data)

------------------------------ 
Program Location:

at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) 
   at Microsoft.SqlServer.Management.ConnectionUI.AdoDotNetConnectionProperties..ctor(String providerName) 
   at Microsoft.SqlServer.Management.ConnectionUI.SqlConnectionProperties..ctor()



解決方法

找 .NET Framework 的 Machine.config

C:\Windows\Microsoft.NET\Framework\v4.0.30319\CONFIG\Machine.config

C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\Machine.config

用管理員權限開啟 Machine.config ,搜尋關鍵字 DbProviderFactories,確認是否有多餘的 DbProviderFactories,然後刪掉它,存檔

再次開啟 SSMS、VS2013 SSDT 就恢復正常。



文章出自:http://www.dotblogs.com.tw/yc421206/archive/2014/06/11/145502.aspx

若有謬誤,煩請告知,新手發帖請多包涵

时间: 2024-12-28 10:28:33

[SSMS][Visual Studio] 解決 - Unable to find the requested .Net Framework Data Provider. It may not be installed的相关文章

SQL SERVER 遇到Unable to find the requested .Net Framework Data Provider. It may not be installed. (System.Data)

今天新装的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

连接MySQL数据库得到错误“Unable to find the requested .Net Framework Data Provider”

  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

Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state

For me, the solution (workaround) is to turn off JavaScript debugging on Chrome, which I believe is a new feature introduced in VS 2017. Go to Tools > Options > Debugging > General and turn off the setting for Enable JavaScript Debugging for ASP.

Visual Studio 2015使用EF6的CodeFirstFromDB模式操作Sqlite数据库时Provider问题

什么是CodeFristFromDB 问题:查询数据是遇到 “/”应用程序中的服务器错误. No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SQLite'. Make sure the provider is registered in the 'entityFramework' section of the application config file.

Visual Studio配置MySql数据库

MySQL Connector/C++ is available as a static or dynamic library to use with your application. This section describes how to link the library to your application. MySQL Connector/C++能做为项目的静态或动态库,这章节就是描述如何链接该库到你的项目中. Note To avoid potential crashes, th

不使用Visual Studio开发ASP.NET MVC应用(下篇)

书接上回! 前文“纯手工”.彻底抛弃Visual Studio,制作了一个ASP.NET MVC应用,运行起来还不错,项目目录.源代码.web.config等所有东西都已经做到“最简”,除去了Visual Studio生成的一大堆无关东西,当然这只是一个“起点”,随着后面项目内容和功能的扩展还需要一步步添加很多东西,但如此干净一个项目,看着就让人舒服,一砖一瓦的盖自己的房子,何尝不是一种享受!(其实很多人不认同这样,在stackoverflow原文中,问题解答者用"severe brain da

Visual Studio 版本、C# 版本和.NET 版本的一个对应关系

节选自http://learninghard.blog.51cto.com/6146675/1197401 之所以在这里分享这个对应关系,是因为在C#基础知识系列的文章发布之后,有些初学者对.NET版本和C#语言特性之间的对应关系有点不清楚,有时候会弄混淆了. 并且通过这个对应关系,也可以帮助大家对C#和.NET 类库有个全面的把控,可以帮助大家理清楚C#和.NET 类库中各个知识点,使他们可以对号入坐.具体他们的之间对应关系见下表: C# 版本 .NET Framework版本 Visual

Visual Studio 中的 .NET Framework 类库

Visual Studio 中的 .NET Framework 类库 .NET Framework 类库由命名空间组成.每个命名空间都包含可在程序中使用的类型:类.结构.枚举.委托和接口. 当您在 Visual Studio 中创建 Visual Basic 或 Visual C# 项目时,已经引用了最常用的基类 DLL(程序集).但是,如果您需要使用尚未引用的 DLL 中的类型,则需向此 DLL 添加引用.有关更多信息,请参见添加和移除引用. 以下主题提供了下列信息: 每个功能区域的最重要命名

[转载]Browser Link feature in Visual Studio Preview 2013

http://blogs.msdn.com/b/webdev/archive/2013/07/29/10430221.aspx Browser Link feature in Visual Studio Preview 2013 Browser Link is just a channel between your Visual Studio IDE and any open browser. This will allow dynamic data exchange between your