SetSite failed for package [CctSharedPackage]

I’ve seen this exception way too many times in Visual Studio 11 and 12… turns out that it is an issue with Azure SDK 2.2 – and my google-fu skills failed to find a solution online.

Yet… if you look into your C:\Users\[username]\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml file, you’ll find errors on the lines of:

Could not load file or assembly ‘Microsoft.VisualStudio.WindowsAzure.Diagnostics, Version=…

The fix turns out to be quite simple, once you see that error.  This just means that the assembly cannot be found… so hey, just add it to your GAC like so:

Add assembly to GAC
Add assembly to GAC

Voila… problems solved.



5 thoughts on “SetSite failed for package [CctSharedPackage]

  1. I can confirm what Nick Olsen said. I simply ran VS 2013 as Administrator, and now I can close and open VS as both Administrator and regular user, the error no longer happens.

  2. my problem is a little different from that you posted. here is the description of that error. I am wondering if you have any solutions.

    SetSite failed for package [DocumentationPackage][参数错误。 (异常来自 HRESULT:0x80070057 (E_INVALIDARG))]:{ 在 EnvDTE.Command.set_Bindings(Object pVar) 在 Intersoft.VisualStudio.Documentation.DocumentationPackage.Initialize() 位置 D:\git\Crosslight\designer\Intersoft.VisualStudio.Documentation.14.0\DocumentationPackage.cs:行号 88 在 Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}

anything to say?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s