无法安装 Visual Studio 安装程序 (vs_community.exe) 并且总是遇到 dll 错误

无法安装 Visual Studio 安装程序 (vs_community.exe) 并且总是遇到 dll 错误

请注意,我不想在我的电脑上重新安装 Windows 或重置它

因此,一个月前,我安装了 Visual Studio 2019,一切正常。我想安装更多软件包,因此我运行了安装程序并要求更新。当我更新它时,它再次要求更新,但似乎没有更新,并且每次都继续此过程,然后我将此问题发布在Microsoft 开发者社区

之后,我参考了许多解决方案:其中一个解决方案是进行安装清理并再次安装 Vs_community.exe,其中提到这里

应用它之后,我甚至无法安装 Vs_community.exe,这也发生在最初发帖的用户

当我运行新下载的 vs_community.exe 时,此日志文件中的错误是DllNotFoundException, Message = Unable to load DLL 'Microsoft.C2RSignatureReader.Native.dll'

这是生成的日志文件:

Beginning of the log. Start Time: 11/13/2021 3:49:56 PM
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Commandline arguments = --env,_SFX_CAB_EXE_PACKAGE:C:\Users\Daniyal Shaikh\Downloads\vs_community__1177568830.1625520809.exe _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:\Users\Daniyal Shaikh\Downloads
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Caught Exception: Type = DllNotFoundException, Message = Unable to load DLL 'Microsoft.C2RSignatureReader.Native.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E), StackTrace =    at C2RSignatureReader.Interop.C2RSignatureReaderNative.ParseArguments(String path, String[]& argumentsArray)
   at C2RSignatureReader.Interop.C2RSignatureReaderInterop.ParseArguments(String path, String[]& arguments)
   at Microsoft.VisualStudio.Setup.Bootstrapper.Program.Parse(String[] args, IServiceProvider serviceProvider, IC2RSignatureReaderInterop c2rSignatureReader, String entryAssemblyProcessName, String entryAssemblyProcessFullName)
   at Microsoft.VisualStudio.Setup.Bootstrapper.Program.Run(String[] args)
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: General Failure. Message:Unable to load DLL 'Microsoft.C2RSignatureReader.Native.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) Callstack:    at C2RSignatureReader.Interop.C2RSignatureReaderNative.ParseArguments(String path, String[]& argumentsArray)
   at C2RSignatureReader.Interop.C2RSignatureReaderInterop.ParseArguments(String path, String[]& arguments)
   at Microsoft.VisualStudio.Setup.Bootstrapper.Program.Parse(String[] args, IServiceProvider serviceProvider, IC2RSignatureReaderInterop c2rSignatureReader, String entryAssemblyProcessName, String entryAssemblyProcessFullName)
   at Microsoft.VisualStudio.Setup.Bootstrapper.Program.Run(String[] args) Inner Message: Internal Exception: 
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: Sending Watson Bucket with:
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: P1  = vs_setup_bootstrapper
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: P2  = 3.0.4492.23473
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: P3  = 
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: P4  = 
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: P5  = 
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: P6  = n/a
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: P7  = 5002
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: P8  = -2146233052
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: P9  = 
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: P10 = 
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: Including dmp file
VisualStudio Bootstrapper:11/13/2021 3:49:57 PM: Watson: Including Log : C:\Users\Daniyal Shaikh\AppData\Local\Temp;\dd_bootstrapper_20211113154956.log

我已经尝试了几乎所有提到的解决方案dev_community 报告

我不想在这里列出所有问题。如果有人愿意帮忙,可以查看我发布原始问题的上述链接。

我尝试的另一个解决方案是从我的朋友那里获取安装程序和 Visual Studio 文件夹。我复制并粘贴了电脑中的所有文件夹和文件。它们启动几秒钟后就会自动关闭。(安装程序和 IDE 都是如此)。

总结一下

我尝试过的解决方案:

更新 Windows

修复 .NET FrameWork

故障排除

我尝试过但失败的解决方案:

Windows 安全更新 KB5001337

查找 Microsoft.C2RSignatureReader.Native.dll 文件

由于上述问题,我没有按照上述链接所述进行干净启动。

请帮助我解决这个问题,以下是一些我无法执行的可能性。

我认为可以解决我的问题的事情

以下可能是可能的解决方案,但我无法应用它们,因为我不知道如何

  1. 启动相关的微软服务(我不知道哪些服务与它相关)。
  2. 如果存在,则授予访问 dll 的安全权限。(我找不到 dll)。
  3. 检查 .net 框架中的 machine.config 是否已更改。(我不知道如何检查它是否已更改)但是当我运行修复工具时没有发现任何错误。

请注意我不想在我的电脑上重新安装 windows 或重置它

相关内容