Thursday, January 07, 2010

MS: Could not load file or assembly 'Microsoft.SqlServer.Sqm

When you try to run SQL 2008 Management Studio on Windows 2008 R2 x64 you receive this error:

Microsoft SQL Server Management Studio
Cannot show requested dialog.

Could not load file or assembly 'Microsoft.SqlServer.Sqm, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The module was expected to contain an assembly manifest. (SqlMgmt)

Solution:

Copy the file Microsoft.SqlServer.Sqm.dll located on C:\Program Files\Microsoft SQL Server\100\Shared to folder C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE and C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE. The file size inside these 2 folders should be 0 bytes.

35 comments:

  1. This solution works--thank you!

    ReplyDelete
  2. Legend..solved my issue too

    ReplyDelete
  3. oh.god..you are genius...

    ReplyDelete
  4. Hi, I've a similar problem using sqlexpress 2008 R2, all is working fine, but the proprety of the database gives this error:
    "Cannot show requested dialog. (SqlMgmt)" and "Cannot find a matching quote character for the character '''. (SqlManagerUI)"

    All happen from a day to another, SQl was working fine untill yesterday!
    Any ideas?
    Ciao

    ReplyDelete
  5. Ran into same issue with SQL Server 2008 R2 (x64) on Windows 2008 R2 (x64) Not sure what would cause it. We'll leave that for MSFT to figure out.

    Solution copying the DLL, Microsoft.SqlServer.Sqm.dll located on C:\Program Files\Microsoft SQL Server\100\Shared to folder C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE.

    worked for me.

    ReplyDelete
  6. Thx Buddy... Actually when i got this error.. i was so scared and was sad cause i was unable to find out error..
    Thx...
    by help of u i done it....
    Thx..

    ReplyDelete
  7. Thx Buddy... Actually when i got this error.. i was so scared and was sad cause i was unable to find out error..
    Thx...
    by help of u i done it....
    Thx..

    ReplyDelete
  8. It Works..! Thank you!

    ReplyDelete
  9. It works for me too:-)
    Thanks for the help

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. THANK YOU VERY MUCH!

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. Anonymous9:55 AM

    Thx

    ReplyDelete
  14. i cannot find the file Microsoft.SqlServer.Sqm.dll in the specified folder,,,,can anyone help me out...

    ReplyDelete
  15. realy i was frustrated when i have uninstalled , install the sql due to this error, but no uses. thanx a lot i have solved it as u suggested.

    ReplyDelete
  16. thanks its working !!!!!!!!!

    but why this problm comes??????

    ReplyDelete
  17. thanks its working but why this problems comes?

    ReplyDelete
  18. Thank you thank you thank you!

    ReplyDelete
  19. Thank you very much... it works

    ReplyDelete
  20. Thanks ...very good ..great job..............!

    ReplyDelete
  21. on my system "C:\Program Files (x86)\Microsoft SQL Server\100\Tools"
    and only one folder within "Tools\policies" the rest are missing. I tried to copy from a different server "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE" and dll file as you mentioned but it didn't work.

    ReplyDelete
  22. on my system "C:\Program Files (x86)\Microsoft SQL Server\100\Tools"
    and only one folder within "Tools\policies" the rest are missing. I tried to copy from a different server "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE" and dll file as you mentioned but it didn't work.

    ReplyDelete
  23. on my system "C:\Program Files (x86)\Microsoft SQL Server\100\Tools"
    and only one folder within "Tools\policies" the rest are missing. I tried to copy from a different server "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE" and dll file as you mentioned but it didn't work.

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. thanks , its very helpful

    ReplyDelete
  26. This comment has been removed by the author.

    ReplyDelete
  27. This comment has been removed by the author.

    ReplyDelete
  28. Thank you Very Much

    ReplyDelete
  29. Arigato hosaimase...thank you

    ReplyDelete
  30. i just copy and relace it...!
    thanks man it works....

    ReplyDelete
  31. on 2012 Microsoft.SqlServer.Sqm.dll copy in
    c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\
    c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\

    ReplyDelete