"Package did not load correctly"
See original GitHub issueMaybe 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.
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: 'EditorGuidelines' Description: Could not load file or assembly 'Microsoft.ApplicationInsights, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ApplicationInsights, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.ApplicationInsights, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
 at EditorGuidelines.EditorGuidelinesPackage.Initialize()
 at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
</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:
- Created 2 years ago
- Reactions:5
- Comments:21 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
That should fix it. @JVimes @bddckr FYI. Please try the steps above and let me know if the issue is fixed.
Feedback ticket: https://developercommunity.visualstudio.com/t/devenvexeconfig-supplies-a-codeBase-fo/1579190