When I open a Rust project, the following error occurs:
And this is the part of aforementioned ActivityLog.xml that details the error:
<entry>
<record>757</record>
<time>2023/07/02 19:24:49.255</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [RustAnalyzerPackage]</description>
<guid>{D879AB25-BD3E-4E01-8B2A-CC60649C016C}</guid>
</entry>
<entry>
<record>758</record>
<time>2023/07/02 19:24:49.285</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [RustAnalyzerPackage]Source: 'mscorlib' Description: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
 at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
 at System.Reflection.RuntimeModule.GetTypes()
 at System.Reflection.Assembly.GetTypes()
 at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
 at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
 at Community.VisualStudio.Toolkit.AsyncPackageExtensions.<RegisterCommandsAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at KS.RustAnalyzer.RustAnalyzerPackage.<InitializeAsync>d__2.MoveNext() in D:\a\rust-analyzer.vs\rust-analyzer.vs\src\RustAnalyzer\RustAnalyzerPackage.cs:line 44
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass21_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
 at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)</description>
<guid>{D879AB25-BD3E-4E01-8B2A-CC60649C016C}</guid>
<hr>0x80131602</hr>
<errorinfo></errorinfo>
</entry>
After I dismiss the dialog box, the extension seems to be mostly working fine, except I can't run my project:
I don't know if that issue is related to this error, or maybe I am doing something wrong.
Full ActivityLog.xml
```xml
Activity Monitor Log
Activity Monitor Log
infos
warnings
errors
#
Type
Description
GUID
Hr
Source
Time (UTC)
Warning
ERROR
1InformationMicrosoft Visual Studio 2022 version: 17.0.33815.1502InformationLog ID{42511398-91E9-4F5E-82A3-2F0CE0F3137E}3InformationRunning in isolation mode.4InformationLooking for master PkgDef fileC:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\master.pkgdef5InformationCreating PkgDefCacheNonVolatile6InformationPkgDefCache flags0x00013801
7InformationDouble-checking master pkgdef file8InformationPkgDefManagement initialized9InformationRootFolderC:\Program Files\Microsoft Visual Studio\2022\Community\10InformationShellFolderC:\Program Files\Microsoft Visual Studio\2022\Community\502ErrorFailed to load package string with id f47a268a-bba9-442d-ac61-eef97f906458 and resource id #1000504ErrorFailed to load package string with id c78ca057-cc29-421f-ad6d-3b0943debdfc and resource id #5001527ErrorFailed to find CTMENU resource '#1000' in loaded UI library.653InformationPERF: Shell start. 4628 ms654InformationEnd package load [ContextRuleMonitorPackage]{8AA75F1E-7410-4EFE-82AA-0FEA79A0A042}655InformationBegin package load [FileSystemPackage]{AC2BF811-80A4-4FA9-A405-21EC39316782}656WarningRequest for "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" from Process denied because the service is only exposed RemoteExclusiveClient, LiveShareGuest.657WarningRequest for proxy to "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" is declined: ServiceAudienceMismatch.658InformationEnd package load [FileSystemPackage]{AC2BF811-80A4-4FA9-A405-21EC39316782}659InformationEnd package load [UtilityServiceProfferPackage]{39D5D0CA-A1AC-48AE-8209-B8C48D5A2B6C}660InformationBegin package load [InfoBadgePackage]{33EE6583-8B97-4F6A-8B2A-6B14007FA249}661InformationEnd package load [InfoBadgePackage]{33EE6583-8B97-4F6A-8B2A-6B14007FA249}662InformationBegin package load [LocalFileSystemProviderPackage]{BCB28B82-7692-4875-8943-5D68025049AE}663InformationEnd package load [LocalFileSystemProviderPackage]{BCB28B82-7692-4875-8943-5D68025049AE}664InformationBegin package load [Microsoft.VisualStudio.Shell.Connected.UserInformation.UserInformationPackage]{5E80A5A1-B722-4727-9015-148AAB6310B0}665InformationEnd package load [Microsoft.VisualStudio.Shell.Connected.UserInformation.UserInformationPackage]{5E80A5A1-B722-4727-9015-148AAB6310B0}666InformationBegin package load [SearchPackage]{E3DD8DCD-EB2A-4ECE-A282-661E1EFA6335}667InformationEnd package load [SearchPackage]{E3DD8DCD-EB2A-4ECE-A282-661E1EFA6335}668InformationBegin package load [Visual Studio Common IDE Package]{6E87CFAD-6C05-4ADF-9CD7-3B7943875B7C}669InformationEnd package load [Visual Studio Common IDE Package]{6E87CFAD-6C05-4ADF-9CD7-3B7943875B7C}670InformationUI-delay processor started successfully.671InformationBegin package load [Microsoft.VisualStudio.Feedback.FeedbackPackage]{B22490B8-AA51-43B1-97EE-509A33B681F3}672InformationEnd package load [Microsoft.VisualStudio.Feedback.FeedbackPackage]{B22490B8-AA51-43B1-97EE-509A33B681F3}673InformationBegin package load [ChannelConsumerPackage]{00F06260-BF5B-4F88-98CA-94F4ACF3D16D}674InformationEnd package load [ChannelConsumerPackage]{00F06260-BF5B-4F88-98CA-94F4ACF3D16D}675InformationBegin package load [OutputChannelPackage]{E81208FB-9663-4335-B42A-218AE1064AD1}676InformationEnd package load [OutputChannelPackage]{E81208FB-9663-4335-B42A-218AE1064AD1}677InformationBegin package load [GuidePackage]{50738DFD-A810-4F13-B283-52B27F829529}678InformationBegin package load [SetupCompositionPackage]{F92174FD-F10D-418B-819A-7433DEA53833}679InformationEnd package load [SetupCompositionPackage]{F92174FD-F10D-418B-819A-7433DEA53833}680InformationEnd package load [GuidePackage]{50738DFD-A810-4F13-B283-52B27F829529}681InformationBegin package load [ImageRegistrationPackage]{F019A060-2752-4884-AA33-EBB9EF87164D}682InformationEnd package load [ImageRegistrationPackage]{F019A060-2752-4884-AA33-EBB9EF87164D}683InformationBegin package load [MaintenanceTaskProcessorPackage]{D614C115-7269-44A9-ABE2-16763CB95155}684InformationEnd package load [MaintenanceTaskProcessorPackage]{D614C115-7269-44A9-ABE2-16763CB95155}685InformationBegin package load [MefServiceBrokerPackage]{95FAA709-2640-4F04-A6B5-657B26D9D494}686WarningService 'Microsoft.VisualStudio.Shell.DiagnosticManagerBroadcastService (1.0)' has already been registered. Skipping duplicate registration.687WarningService 'Microsoft.VisualStudio.Shell.DiagnosticManagerBroadcastService (1.1)' has already been registered. Skipping duplicate registration.688WarningService 'Microsoft.VisualStudio.Shell.DiagnosticManagerService (1.0)' has already been registered. Skipping duplicate registration.689WarningService 'Microsoft.VisualStudio.Shell.DiagnosticManagerService (1.1)' has already been registered. Skipping duplicate registration.690WarningService 'Microsoft.VisualStudio.Shell.DiagnosticViewerService (1.0)' has already been registered. Skipping duplicate registration.691WarningService 'Microsoft.VisualStudio.Shell.DiagnosticViewerService (1.1)' has already been registered. Skipping duplicate registration.692InformationEnd package load [MefServiceBrokerPackage]{95FAA709-2640-4F04-A6B5-657B26D9D494}693InformationBegin package load [PromotionsPackage]{B596A79C-0044-4FC4-AAF6-A700B6FDC9ED}694InformationEnd package load [PromotionsPackage]{B596A79C-0044-4FC4-AAF6-A700B6FDC9ED}695InformationBegin package load [SccDisplayInformationPackage]{D7BB9305-5804-4F92-9CFE-119F4CB0563B}696InformationReceived promotion with RuleId: 7BED179A-3BE7-414D-8C40-914B591EF553697InformationSubscribed to trigger event for promotion with RuleId: 7BED179A-3BE7-414D-8C40-914B591EF553698InformationReceived promotion with RuleId: 93EA625A-53B4-4003-B56F-AB936759983B699InformationSubscribed to trigger event for promotion with RuleId: 93EA625A-53B4-4003-B56F-AB936759983B700InformationReceived promotion with RuleId: DED7D4AD-2C83-4B10-BC64-5C8DF0C052A5701InformationSubscribed to trigger event for promotion with RuleId: DED7D4AD-2C83-4B10-BC64-5C8DF0C052A5702InformationReceived promotion with RuleId: 45E4D712-83A8-4F72-8AAF-94284ADE1D6A703InformationSubscribed to trigger event for promotion with RuleId: 45E4D712-83A8-4F72-8AAF-94284ADE1D6A704InformationEnd package load [SccDisplayInformationPackage]{D7BB9305-5804-4F92-9CFE-119F4CB0563B}705InformationBegin package load [GlobalHubClientPackage]{11AD60FC-6D87-4674-8F88-9ABE79176CBE}706InformationEnd package load [GlobalHubClientPackage]{11AD60FC-6D87-4674-8F88-9ABE79176CBE}707InformationBegin package load [StartPagePackage]{933D4FD6-4649-41CE-A397-82948D812534}708InformationEnd package load [StartPagePackage]{933D4FD6-4649-41CE-A397-82948D812534}709InformationBegin package load [WhatsNewPackage]{ADCCE324-D32C-4758-98CF-687CE2CD668E}710InformationEnd package load [WhatsNewPackage]{ADCCE324-D32C-4758-98CF-687CE2CD668E}711WarningAbout to block on async service creation because 'Microsoft.VisualStudio.Shell.Interop.SVsDebugTargetSelectionService' was requested via GetService. This has the potential to deadlock. Async initializing services should be retrieved via GetServiceAsync.712WarningAbout to block on async service creation because 'Microsoft.Internal.VisualStudio.Shell.Interop.SVsSAPCommonExperienceServiceInternal' was requested via GetService. This has the potential to deadlock. Async initializing services should be retrieved via GetServiceAsync.713WarningAbout to block on async service creation because 'Microsoft.VisualStudio.LicenseManagement.Interop.SVsLicensingNotifications' was requested via GetService. This has the potential to deadlock. Async initializing services should be retrieved via GetServiceAsync.714InformationBegin package load [Visual Studio CRC package]{6B238C39-B163-467E-83DB-A2DEC10459ED}715InformationEnd package load [Visual Studio CRC package]{6B238C39-B163-467E-83DB-A2DEC10459ED}716InformationBegin package load [Microsoft.VisualStudio.Shell.Connected.ConnectedUser.ConnectedUserPackage]{7F679D93-2EB6-47C9-85EB-F6AD16902662}717InformationIncompatibilityList - Call Servicehub for downloading compatibility list file.718InformationBegin package load [ToastNotificationsPackage]{C931D979-CA1A-41E8-8A23-E86B85E3141B}719InformationEnd package load [ToastNotificationsPackage]{C931D979-CA1A-41E8-8A23-E86B85E3141B}720InformationIncompatibilityList - Look for incompatible extensions.Configuration or the user compatibility list file changed721InformationEntering function LoadDTETypeLib722InformationLeaving function LoadDTETypeLib723InformationBegin package load [OperationProgressPackage]{C7821A4F-6708-4F8D-A0AA-D43D06E8D196}724InformationEnd package load [OperationProgressPackage]{C7821A4F-6708-4F8D-A0AA-D43D06E8D196}725InformationBegin package load [TelemetryHasherPackage]{177EB584-9375-4B7C-ABBB-32A91F740A40}726InformationEnd package load [TelemetryHasherPackage]{177EB584-9375-4B7C-ABBB-32A91F740A40}727InformationBegin package load [FileColorPackage]{949BB610-6840-4ADE-8C75-55CDB16BF0E8}728WarningRequest for "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" from Process denied because the service is only exposed RemoteExclusiveClient, LiveShareGuest.729WarningRequest for proxy to "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" is declined: ServiceAudienceMismatch.730InformationEnd package load [FileColorPackage]{949BB610-6840-4ADE-8C75-55CDB16BF0E8}731InformationBegin package load [Microsoft.VisualStudio.Shell.Connected.AccountManagerService.AccountManagerPackage]{9C987E78-F0BF-45CA-9BA5-96D3E4B2BAC6}732InformationEnd package load [Microsoft.VisualStudio.Shell.Connected.AccountManagerService.AccountManagerPackage]{9C987E78-F0BF-45CA-9BA5-96D3E4B2BAC6}733ErrorThe color 'Popup' in category 'de7b1121-99a4-4708-aedf-15f40c9b332f' does not exist.734InformationBegin package load [Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost]{B80B010D-188C-4B19-B483-6C20D52071AE}735InformationBegin package load [Microsoft.VisualStudio.Services.Integration.ServicesPackage, Microsoft.VisualStudio.Services.Integration]{0B93CCC5-BC52-40E9-91A3-7B8B58C4526B}736InformationEnd package load [Microsoft.VisualStudio.Services.Integration.ServicesPackage, Microsoft.VisualStudio.Services.Integration]{0B93CCC5-BC52-40E9-91A3-7B8B58C4526B}737InformationEnd package load [Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost]{B80B010D-188C-4B19-B483-6C20D52071AE}738InformationBegin package load [SccProviderPackage]{7FE30A77-37F9-4CF2-83DD-96B207028E1B}739InformationEnd package load [SccProviderPackage]{7FE30A77-37F9-4CF2-83DD-96B207028E1B}740InformationBegin package load [FileEnumerationServicePackage]{ED8075A9-3E0C-45B3-83EE-C14B43BC3787}741InformationEnd package load [FileEnumerationServicePackage]{ED8075A9-3E0C-45B3-83EE-C14B43BC3787}742InformationBegin package load [RustAnalyzerPackage]{D879AB25-BD3E-4E01-8B2A-CC60649C016C}743WarningThe provided option does not implement either IVsWindowSearchBooleanOption or IVsWindowSearchCommandOption - the option will be ignored744WarningRequest for "Microsoft.VisualStudio.Shell.BuildService (0.2)" from Process denied because the service is only exposed RemoteExclusiveClient, LiveShareGuest.745WarningRequest for proxy to "Microsoft.VisualStudio.Shell.BuildService (0.2)" is declined: ServiceAudienceMismatch.746WarningRequest for "Microsoft.VisualStudio.Shell.BuildService (0.1)" from Process denied because the service is only exposed RemoteExclusiveClient, LiveShareGuest.747WarningRequest for proxy to "Microsoft.VisualStudio.Shell.BuildService (0.1)" is declined: ServiceAudienceMismatch.748WarningRequest for "Microsoft.VisualStudio.Workspace.RemoteStartupProjectService (0.1)" from Process denied because the service is only exposed RemoteExclusiveClient.749WarningRequest for proxy to "Microsoft.VisualStudio.Workspace.RemoteStartupProjectService (0.1)" is declined: ServiceAudienceMismatch.750WarningRequest for "Microsoft.VisualStudio.Shell.SolutionConfigurationService (0.2)" from Process denied because the service is only exposed RemoteExclusiveClient.751WarningRequest for proxy to "Microsoft.VisualStudio.Shell.SolutionConfigurationService (0.2)" is declined: ServiceAudienceMismatch.752ErrorSetSite failed for package [RustAnalyzerPackage]Source: 'mscorlib' Description: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at Community.VisualStudio.Toolkit.AsyncPackageExtensions.<RegisterCommandsAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KS.RustAnalyzer.RustAnalyzerPackage.<InitializeAsync>d__2.MoveNext() in D:\a\rust-analyzer.vs\rust-analyzer.vs\src\RustAnalyzer\RustAnalyzerPackage.cs:line 44
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass21_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck){D879AB25-BD3E-4E01-8B2A-CC60649C016C}0x80131602
```
When I open a Rust project, the following error occurs:
And this is the part of aforementioned ActivityLog.xml that details the error:
After I dismiss the dialog box, the extension seems to be mostly working fine, except I can't run my project:
I don't know if that issue is related to this error, or maybe I am doing something wrong.
Full ActivityLog.xml
```xml0x00013801
0x80131602