Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 enterprise can not add reference

When I want to add a reference in a project in Visual Studio 2017 Enterprise. I get the following error:

"The operation could not be completed"

I have tried cleaning and rebuilding solution, restart computer, delete bin and obj folder and all .suo files. Also there is no error in my Web.config file.

like image 735
Ksuvec Avatar asked Apr 26 '17 13:04

Ksuvec


1 Answers

So I got help from microsoft support.

  1. Open Visual Studio Command Prompt as administrator
  2. Goto the path of your visual studio installation, standard is: C:\Program Files (x86)\Microsoft Visual Studio\2017\
  3. Select your installation type and goto \Common7\IDE\PublicAssemblies
  4. Run command: gacutil -if Microsoft.VisualStudio.Shell.Interop.8.0.dll
  5. Run command gacutil -if Microsoft.VisualStudio.Shell.Interop.11.0.dll

This fixed it for me

like image 144
Ksuvec Avatar answered Jan 03 '23 06:01

Ksuvec