【发布时间】:2022-01-25 14:04:21
【问题描述】:
我最近在我的机器上安装了 Visual Studio 2022。我在启动时收到此错误:由于以下错误,检索具有 CLSID {177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D} 的组件的 COM 类工厂失败:80070005 访问被拒绝。 我尝试安装 2019 并得到同样的错误。附上以下截图:
活动日志向我详细展示了同样的事情
<entry>
<record>153</record>
<time>2021/12/25 16:16:04.905</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Visual Studio Common IDE Package]Source: 'mscorlib' Description: Retrieving the COM class factory for component with CLSID {177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
 at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
 at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
 at System.Activator.CreateInstance(Type type, Boolean nonPublic)
 at System.Activator.CreateInstance(Type type)
 at Microsoft.VisualStudio.CommonIDE.PreviewFeatures.UsePreviewSdk.IsPreviewChannel()
 at Microsoft.VisualStudio.CommonIDE.PreviewFeatures.UsePreviewSdk.Initialize()
 at Microsoft.VisualStudio.CommonIDE.BasePackage.<InitializeAsync>d__6.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 Microsoft.VisualStudio.CommonIDE.CommonIDEPackage.<InitializeAsync>d__20.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 Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass20_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 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__76.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>{6E87CFAD-6C05-4ADF-9CD7-3B7943875B7C}</guid>
<hr>80070005 - E_ACCESSDENIED</hr>
<errorinfo></errorinfo>
我尝试在我的 Windows 10 操作系统中将当前本地用户的权限级别设置为完全控制。但它不起作用。 我什至按照link 进行故障排除。按照那里的解决方案,但仍然没有运气。
我知道它与 Visual Studio 没有直接关系,但是为我机器的本地用户设置的权限级别有问题,我没有更改该设置,但我仍然无法找到任何解决方案.
【问题讨论】:
-
@HansPassant,我确实按照链接中提到的相同步骤进行操作,即将该文件夹的权限重置为其默认值,但仍然出现相同的错误
标签: windows visual-studio