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. The system cannot find the file specified.
When clicked [Test Connection], it was succeeded but when OK button is clicked, I got the [assembly not found] error.
From the error message, we can see there is some missing component in VS 2012 installation.
The assembly in question - Microsoft.SqlServer.Manangement.Sdk.Sfc version 11 - is a component DLL for SMO assemblies (even though SFC was originally created for more ambitious SSMS extension), and it is included in SQL Server 2012 Shared Management Objects.
[SQL 2012 Shared Management Objects] has dependency on [SQL System CLR types] component, so you have to install SQL Server System CLR Types first.
[SQL Server 2012 System CLR Types] can be found in the middle of SQL 2012 Feature Pack web page ( http://www.microsoft.com/en-us/download/details.aspx?id=29065 )
And SharedManagemmentObjects 2012 also can be found in the same SQL 2012 Feature Pack web page
Once both components are installed, I was able to create new Connection.
By the way, as a side note, if you already have SQL Server 2012 installed on the machine, they are supposed to be installed already.
NOTE: This article only talked about VS 2012 and SQL 2012. More people ran into the same issue for other VS / SQL versions. I wrote an additional article for other versions of VS and SQL. Please refer to this article if this article instruction does not work for you.
Thanks dude... you just saved me a day of struggle.
ReplyDeleteDAMN !!!!
ReplyDeletei've been fighting this bug for 2 days now... your post saved me...
wonder why VS2012 doesnt include those files
Wonderful, worked perfectly. Thanks so much.
ReplyDeletehi
ReplyDeleteI use Windows 8 I am trying to connect VS 2012 Express with SQL SERVER 2008 R2.I am unable to connect.It shows the same error as mentioned above.
I have downloaded SQL CLR Types and Shared management objects.Still I have the same error.Do I need to add them in references in VS???
Could you pls explain clearly the steps after download???
I am a fresher
Hi Charanya,
ReplyDeleteIf you already downloaded those 2 files, you can simply install it by doubleclicking the .msi file one by one from file explorer.
Once you installed them, you should be able to see Microsoft.SqlServer.Management.Sdk.Sfc 11.0 when you navigate to C:\windows\assembly from your File Explorer.
You do not have to add reference. This DLL is used by VS itself (precisely, by Server Explorer), not by your own project or solution.
Hope it helps.
Hi Alex,
ReplyDeleteI do have the same problem as Charanya and did the same thing but still the error is there. I checked in C:\windows\assembly\Microsoft.SqlServer.Management.Sdk.Sfc, Version 10.0.0.0 is shown instead of 11.0.0.0
please suggest me I am also a fresher
Thanx
Hi Deepty,
ReplyDeleteSFC Version 10.0 is for SQL 2008 (or 2008 R2) SMO. In order to use VS 2012, you will need to install version 11.0, not v10.0.
Once you install SQL 2012 Shared Management Objects, you will see both v11.0 and v10.0 on your machine. Bottom line is you should have v11.0 SFC on your machine.
Thanks to all:)
ReplyDeleteHi, I've already downloaded SQL CLR types and shared management objects. it still have the same problem.
ReplyDeleteCould not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
Hi QRinaQ,
ReplyDelete1) Can you please check whether you have the DLL in C:\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Management.Sdk.Sfc\11.0.0.0__89845dcd8080cc91 folder?
2) If it does exist, can you try fuslogvw.exe to see what the binging path looks like?
3) You can also try Depeneds.exe (dependancy walker) to see if there is any missing (native) DLL on your machine.
Thanks a lot!!
ReplyDeleteThanks a lot.Its working now.now i am relieved from stress...
ReplyDeleteThe link provided have only a text file
ReplyDeleteThis came in very handy.
ReplyDeleteGot me out of a sticky situation.
Thank you
hi alex can u help me i am shan
ReplyDeletethis error cant solve in my system.
thanks a lot, it solved the issue
ReplyDeleteHi,
ReplyDeleteI am able to see Microsoft.SqlServer.Management.Sdk.Sfc 12.0 and 10.0 not the 11.0.
I am having SQL Server 2014 and MS Visual Studio 2013 on Windows 7 system.
When I am trying to install Windows installer 4.5 it's not getting installed.
This solved the issue thanks a lot!!! Working on SQL Server 2014 and Visual Studio 2013 under Windows 8.1
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI am using VS 2013 and sql server 2008
ReplyDeleteI got the same error and and i have installed this three
Microsoft SQL Server System CLR Types
Microsoft SQL Server 2008 Management Object
Microsoft SQL Server 2008 Native Client
and also i am getting the same error.... please help me I am struggling a lot with this,....
@Venugopal : What exactly is the error saying? (SFC version can vary)
ReplyDeletethanks man u saved my a lot time
ReplyDeleteiam serching for this from one week
thanks lot
keep growing
This comment has been removed by the author.
ReplyDeleteI am using VS2013 with Sql Server 2005
ReplyDeleteI am getting with the follwing error.
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. The system cannot find the file specified.
I checked in C:\windows\assembly\Microsoft.SqlServer.Management.Sdk.Sfc, Version 10.0.0.0 is shown instead of 11.0.0.0
Please help me. I lost my whole day in finding this.
Yahhhhhhhh !!!!
ReplyDeletei have been fighting this bug for last 4 days now... your info is very useful..............
thanks lot.....................................
.....................
Hi i am using windows 7 and i hahe installed sql server 2008 and visual studio 2013 when i connect to database by using tools and test connection it is fine but then press ok give this error (Unable to add data connection. 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. The system cannot find the file specified.) please help me.
ReplyDeletethanks
mintu
and also i am getting the same error.... please help me I am struggling a lot with this,....
ReplyDeleteNitesh, did you install below components?
ReplyDelete1) SQL Server 2012 System CLR Types
2) SQL 2012 Shared Management Objects
No sir,
DeleteI did nat install
1) SQL Server 2012 System CLR Types
2) SQL 2012 Shared Management Objects
Sir,
Deletebut my sql server is 2008 and my visual studio is 2013
i am fighting this bug for last 4 days now.please help me.
DeleteHow to install?
Delete1) SQL Server 2012 System CLR Types
2) SQL 2012 Shared Management Objects
1) Click http://www.microsoft.com/en-us/download/details.aspx?id=29065
Delete2) Click Download. You will download [SQL Server 2012 Feature Pack Instructions.txt] file
3) Read the instruction file and follow the instruction.
You will need to install these:
- Microsoft® System CLR Types for Microsoft® SQL Server® 2012
- Microsoft® SQL Server® 2012 Shared Management Objects
This comment has been removed by the author.
DeleteThis comment has been removed by the author.
ReplyDeleteI have installed visual studio 2015 and sql server 2012. I have also installed
ReplyDelete- Microsoft® System CLR Types for Microsoft® SQL Server® 2012
- Microsoft® SQL Server® 2012 Shared Management Objects
I stil found following error while adding a data connection in visual studio 2015:
unable add data connection.
Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
Your SFC version is for SQL 2014. You need SQL 2014 feature pack instead of SQL 2012 one. Please see this article for details.
Deletehttp://csharp.tips/tip/article/958-VS---Could-not-load-file-or-assembly-Microsoft-SqlServer-Management-Sdk-Sfc
could not load file or ssembly
ReplyDeletemicrosoft.sqlserver.management.sdk.sfc, version=12.0.0.0, culture = neutral, publickey token=89845dcd8080cc91 or one of its dependencies. the system cannot find the file specified.
I have this message when I try to link to the database
what should I do?
Can you help me please please please....
You will need to install SQL Server 2014 Feature Pack. Please refer to this article.
Deletehttp://csharp.tips/tip/article/958-VS---Could-not-load-file-or-assembly-Microsoft-SqlServer-Management-Sdk-Sfc
ok. i'll try.
Deletethanks alot for u
version=12.0.0.0, culture = neutral, publickey token=89845dcd8080cc91 or one of its dependencies. the system cannot find the file specified.
ReplyDeleteلما اضغط okبيظهر رساله خطا
ReplyDelete