欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

Could not load file or assembly 'Microsoft.SqlServer

程序员文章站 2023-12-28 12:44:10
...

环境: web服务器: ip:192.168.1.32 ,安装有Visual Studio Premium 2013 操作 系统 : Microsoft Server 2008 r2+sp1 数据库服务器: ip:192.168.1.33,安装有Microsoft SQL Server 2012 操作 系统 : Microsoft Server 2008 r2+sp1 操作过程: 在vs2013里利

环境:

web服务器:

ip:192.168.1.32 ,安装有 Visual Studio Premium 2013

操作系统: Microsoft Server 2008 r2+sp1

数据库服务器:

ip:192.168.1.33,安装有Microsoft SQL Server 2012

操作系统: Microsoft Server 2008 r2+sp1

操作过程:

在vs2013里利用向导SqlDataSource配置数据库连接时,点击测试连接提示成功,当点击确定时报错:

---------------------------
Microsoft Visual Studio
---------------------------
Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. 系统找不到指定文件
---------------------------
确定
---------------------------
CLR Types

Could not load file or assembly 'Microsoft.SqlServer

Could not load file or assembly 'Microsoft.SqlServer

解决办法:

去微软官网:http://www.microsoft.com/en-us/download/details.aspx?id=29065

下载下面两个组件:

Microsoft® System CLR Types for Microsoft® SQL Server® 2012

Microsoft® SQL Server® 2012 Shared Management Objects

请选择自己平台适用版本。

下载完成后在Web服务器上安装即可。

为方便大家,我已下载并分享如下(针对x64平台):

http://pan.baidu.com/s/1hqIIUtY

http://pan.baidu.com/s/1gdEbp2j

上一篇:

下一篇: