question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Package did not load correctly"

See original GitHub issue

Maybe this isn’t supported yet, but when I try to set a guideline in Visual Studio 17.1.0 Preview 1.0, I get:

The ‘EditorGuidelinesPackage’ package did not load correctly.

The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file ‘C:\Users\username\AppData\Roaming\Microsoft\VisualStudio\17.0_e8dd53cc\ActivityLog.xml’.

Restarting Visual Studio could help resolve this issue.

image

ActivityLog.xml shows:

<entry>
  <record>652</record>
  <time>2021/11/10 02:36:02.197</time>
  <type>Information</type>
  <source>VisualStudio</source>
  <description>Begin package load [EditorGuidelinesPackage]</description>
  <guid>{A0B80B01-BE16-4C42-AB44-7F8D057FAA2F}</guid>
</entry>
<entry>
  <record>653</record>
  <time>2021/11/10 02:36:02.198</time>
  <type>Error</type>
  <source>VisualStudio</source>
  <description>LegacySitePackage failed for package [EditorGuidelinesPackage]Source: &apos;EditorGuidelines&apos; Description: Could not load file or assembly &apos;Microsoft.ApplicationInsights, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;Microsoft.ApplicationInsights, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;Microsoft.ApplicationInsights, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&apos;&#x000D;&#x000A;   at EditorGuidelines.EditorGuidelinesPackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
  <guid>{A0B80B01-BE16-4C42-AB44-7F8D057FAA2F}</guid>
  <hr>80070002</hr>
  <errorinfo></errorinfo>
</entry>
<entry>
  <record>654</record>
  <time>2021/11/10 02:36:02.202</time>
  <type>Error</type>
  <source>VisualStudio</source>
  <description>SetSite failed for package [EditorGuidelinesPackage](null)</description>
  <guid>{A0B80B01-BE16-4C42-AB44-7F8D057FAA2F}</guid>
  <hr>80070002</hr>
  <errorinfo></errorinfo>
</entry>
<entry>
  <record>655</record>
  <time>2021/11/10 02:36:02.206</time>
  <type>Error</type>
  <source>VisualStudio</source>
  <description>End package load [EditorGuidelinesPackage]</description>
  <guid>{A0B80B01-BE16-4C42-AB44-7F8D057FAA2F}</guid>
  <hr>80070002</hr>
  <errorinfo></errorinfo>
</entry>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

24reactions
pharringcommented, Nov 10, 2021

Found it: “Developer Analytics tools” Launch the Visual Studio Installer, find the VS 2022 Preview channel and select “Modify” Then go to “Individual Components” and search for “Developer Analytics”. Check the “Developer Analytics tools” check box and update your installation. image

That should fix it. @JVimes @bddckr FYI. Please try the steps above and let me know if the issue is fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I fix the Microsoft Visual Studio error
Close all instances of Visual Studio · Go to: C:\Program Files (x86)\Microsoft SDKs\Windows · You should see a number of vX.0-like directories ( ......
Read more >
I got error "The 'CSharpPackage' package did not load ...
I got error "The 'CSharpPackage' package did not load correctly" when I open sln and I can not debug cs file - Microsoft...
Read more >
Visual studio Common IDE Package package did not load ...
Open the Visual Studio Installer. On the instance that is not working, click on the More button. Click the Repair menu item.
Read more >
The 'CodeMaidPackage' package did not load correctly Error ...
The 'CodeMaidPackage' package did not load correctly Error Solved Visual Studio In this video I will show you how to solve CodeMaidPackage ...
Read more >
Packaging Microsoft Visual Studio 2022 results in an error
Packaging Microsoft Visual Studio 2022 results in an error : "Global Hub Client Package did not load correctly caused by configuration ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found