Could not load file or assembly System.EnterpriseServices.wrapper.dll

Young Weichen 6 Reputation points
2021-05-25T09:07:33.093+00:00

sql server management studio 18.9.1, try to connect to database engine, report error:

Could not load file or assembly " System.EnterpriseServices.wrapper.dll" or one of it's dependencies. The system file can not find the file specified."

fix ssms install,failed
uninstall and reinstall ssms,failed
uninstall and reinstall .net framework 4.8\2.0,failed

SQL Server Other
{count} vote

7 answers

Sort by: Most helpful
  1. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-05-26T05:45:03.26+00:00

    Hi YoungWeichen-2283,

    Welcome to Microsoft Q&A. Could you please try to copy the file "System.EnterpriseServices.Wrapper.dll" from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 to C:\WINDOWS\ WinSxS\x86_System.EnterpriseServices_b03f5f7f11d 50a3a_2.0.0.0_x-ww_7d5f3790, restart the computer and reinstall SSMS? And please try to update your windows version to newest one.

    To uninstall SSMS, please: 1) Removed "C:\Program Files (x86)\Microsoft SQL Server Management Studio 18" folder 2) Deleted registry key "HKLM\SOFTWARE\WOW6432Node\Microsoft\Microsoft SQL Server Management Studio"(please backup registry key first) 3)Restart the computer

    Please refer to this thread which might help.

    Best Regards, Amelia


    If the answer is helpful, please click "Accept Answer" and upvote it. Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Young Weichen 6 Reputation points
    2021-05-26T09:19:13.553+00:00

    there is no directory x86_System.EnterpriseServices_b03f5f7f11d 50a3a_2.0.0.0_x-ww_7d5f3790,so create it then coyp file System.EnterpriseServices.Wrapper.dll.

    uninstall ssms from add and revome programe

    restart the computer,install ssms

    the program still exists.

    0 comments No comments

  3. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-05-27T02:51:58.277+00:00

    Hi YoungWeiChen-2283,
    Thanks for your reply.
    Do you have any folder named x86_system.enterpriseservices_b03f5f7f11d50a3a_xxxxxxxx in C:\WINDOWS\ WinSxS ?
    What the version of OS are you using?
    Have you tried to install SSMS 17.9 instead?

    Best regards,
    Amelia

    0 comments No comments

  4. Young Weichen 6 Reputation points
    2021-05-28T07:42:36.883+00:00

    Do you have any folder named x86_system.enterpriseservices_b03f5f7f11d50a3a_xxxxxxxx in C:\WINDOWS\ WinSxS ?
    Yes

    win10 21H1

    ssms 17.9.1, The problem is still。

    0 comments No comments

  5. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-05-28T09:45:17.763+00:00

    Hi YoungWeichen-2283,
    Could you please try to copy the file "System.EnterpriseServices.Wrapper.dll" from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 to C:\WINDOWS\ WinSxS\x86_system.enterpriseservices_b03f5f7f11d50a3a_10.0.19041.1_xxxxxx?
    The System.EnterpriseServices.Wrapper.dll in x86_system.enterpriseservices_b03f5f7f11d50a3a_10.0.19041.1_xxxxxx folder may be corrupted.

    Best Regards,
    Amelia


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.