locked
Could not load file or assembly 'Microsoft.VisualStudio.ConnectedServices, Version=2.0.0.0 RRS feed

  • Question

  • OK so this is weird even for MS.

    Visual Studio 2015 Enterprise will not close siting

    Could not load file or assembly 'Microsoft.VisualStudio.ConnectedServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    I have to task manager to kill Visual Studio!

    I NuGet installed Microsoft.VisualStudio.ConnectedServices, but that didn't make any difference.

    And it doesn't matter which or if ANY solution is open

    My Guess is it has something to do with Application Insights which I recently removed.

    Any guesses?

    Thanks

    Pat NH USA


    Pat Tormey PE MVP, Client App Dev, NH USA

    Thursday, March 24, 2016 2:49 PM

Answers

  • You need to copy the dll from the nuget reference so that devenv.exe can locate it.

    More details here.

    http://vijayshinva.github.io/visual%20studio/.net/2016/03/31/visual-studio-2015-could-not-load-file-or-assembly-microsoft-visualstudio-connectedservices.html

    • Marked as answer by Pat Tormey Thursday, March 31, 2016 1:04 PM
    Thursday, March 31, 2016 11:22 AM

All replies

  • Hi Pat NH USA,

    It seems that other members also met this kind of issue before:

    http://stackoverflow.com/questions/34104912/connectedservicespackages-visual-studio-2015

    Like Dawid Potgieter's suggestion, it would be related to certain Azure extension, the extension tools I could think of in the VS includes the Azure SDK and AI. So as you said that "My Guess is it has something to do with Application Insights which I recently removed." Maybe it would be a possible reason.

    Sorry for that I could repro this issue in my side. But to make sure whether it is related to certain extension tool, if possible, I suggest you update the current extension tools under TOOLS->Extensions and Updates windows. I remember that the AI also has one update version. So please also install it if you uninstalled it before. Please install the latest version for the extension tools, and then check it again if you disable/enable those two extensions.

    Or you could run your VS in safe mode:

    Devenv.exe /SafeMode

    Sometimes we could make sure that whether it is related to the add-ins or extension tools using this command line.

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, March 25, 2016 7:29 AM
  • Hi,

    I'm experiencing the same problem but with Visual Studio 2015 Community Update 1.  Whenever I close Visual Studio (with a solution opened), it would complain of the missing Microsoft.VisualStudio.ConnectedServices, and Visual Studio would refuse to close.  The only way to kill it is from the Task Manager.  Updating Azure SDK to 2.8.2.1 doesn't make a difference.

    Friday, March 25, 2016 6:11 PM
  • Hi sungtakdh,

    Do you install the extension tool Application Insights in your VS? What is your AI version?

    If you install it, maybe you could check your version in your side, and then disable or remove it, check it again.

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, March 28, 2016 6:01 AM
  • You need to copy the dll from the nuget reference so that devenv.exe can locate it.

    More details here.

    http://vijayshinva.github.io/visual%20studio/.net/2016/03/31/visual-studio-2015-could-not-load-file-or-assembly-microsoft-visualstudio-connectedservices.html

    • Marked as answer by Pat Tormey Thursday, March 31, 2016 1:04 PM
    Thursday, March 31, 2016 11:22 AM
  • Worked GREAT! Thanks!
    Pat NH USA

    Pat Tormey PE MVP, Client App Dev, NH USA

    Thursday, March 31, 2016 1:08 PM
  • Hi Shinva;

    I tried the above but couldn't download the actual package.  When I right click on the project to "Manage Nuget Packages"  an empty dialog box appears with "no packages found".  So there's no package to click on to download.  Menus such as "Package source" are blank. I tried using the Package Manager Console to load the package as per instructions on line ... i.e.;

    Install-Package Microsoft.VisualStudio.ConnectedServices

    but this produces the error ' Unable to find package 'Microsoft.VisualStudio.ConnectedServices'.

    I am at wit's end.  I have completely uninstalled and reinstalled VisualStudio.  I'm not sure what else to try.

    Karen


    • Edited by Nerak_bc Wednesday, April 27, 2016 1:13 AM
    Tuesday, April 26, 2016 11:39 PM
  • Not sure why it isn't found

    Try going directly to Nuget using this link

    https://www.nuget.org/packages/Microsoft.VisualStudio.ConnectedServices

    and follow the directions again

    Good luck!

    Pat

    Nuget Image


    Pat Tormey PE MVP, Client App Dev, NH USA

    Wednesday, April 27, 2016 10:05 AM