Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing Visual Studio 2022 fails with network connection and file verification issues #1452

Closed
lightbord opened this issue Dec 22, 2021 · 6 comments
Labels
Status: Fixed in Next Build Fixed in the next Sandboxie version Type: Access Token Token-based authentication issues

Comments

@lightbord
Copy link

Describe the problem
When attempting to install Visual Studio 2022 the installer fails with network connection and file verification issues.

To Reproduce
Steps to reproduce the behavior:

  1. Download the VS Installer.
  2. Attempt to install
  3. The installer will attempt to download the files several times, each time failing and unable to verify the download.

Expected behavior
Able to install Visual Studio.

System details and installed software

  • What is your Windows edition and version? Windows 10 Home 2004 64-bit
  • What is your current Sandboxie edition and version? Sandboxie Plus 1.0.4 64-bit
  • What was your previous Sandboxie version before the update, if any? Sandboxie Plus 0.9.8.4 64-bit.
  • Also tried on Sandboxie Plus 0.7.4 on a separate machine running Windows 10 Pro 21H1
  • Please mention in which version this bug got introduced, because it acts as a guide for testers and developers. Not sure when the issue started.
  • Please mention any security software running in the background, even if the real-time protection is disabled. Windows Defender in the Windows 10 default configuration.

If you had a compatibility issue or a crash

Additional context
Add any other context about the problem here.

VS Installer Bootstrapper error log from the Windows 10 Home machine (nearly identical on the Win10 Pro Machine)
Beginning of the log. Start Time: 12/21/2021 7:18:55 PM
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: Commandline arguments = --env,_SFX_CAB_EXE_PACKAGE:C:\Users\myusername\Downloads\vs_Community.exe _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:\Users\myusername\Sandboxie\Sandboxie-Plus
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: C2R signature did not exist or could not be read: 
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: Parent process name = vs_Community
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: Parent process product version = 17.0.32014.148
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: CampaignId = 
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: ResponseId not available in 'vs_setup_bootstrapper.config'. Trying to parse filename.
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: loading config settings: -update --update --layout -offline --offline --locale --layout --originalworkingdir --installLayoutPath --env
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: DownloadURL = https://aka.ms/vs/17/release/installer
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: InstallLocation = C:\Program Files (x86)\Microsoft Visual Studio\Installer
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: OfflineFilePath = 
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: LayoutLocation = 
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: ExecutableArguments = /finalizeInstall install --in "C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_setup_bootstrapper_202112211918561697.json" --locale en-US --activityId "c0848ca8-17a2-4ee7-8c13-f824299dd5e2"
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: OSVersion = Microsoft Windows NT 10.0.19041.0
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: Starting to detect the existing VS and .NET...
VisualStudio Bootstrapper:12/21/2021 7:18:56 PM: Finished detecting the existing VS and .Net
VisualStudio Bootstrapper:12/21/2021 7:19:03 PM: Existing client is unsupported: C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe does not exist.
VisualStudio Bootstrapper:12/21/2021 7:19:03 PM: Beginning file download. File = https://aka.ms/vs/17/release/installer.
VisualStudio Bootstrapper:12/21/2021 7:19:03 PM: Download requested: https://aka.ms/vs/17/release/installer
VisualStudio Bootstrapper:12/21/2021 7:19:03 PM: Attempting download 'https://aka.ms/vs/17/release/installer' using engine 'WebClient'
VisualStudio Bootstrapper:12/21/2021 7:19:04 PM: Uri 'https://aka.ms/vs/17/release/installer' redirected to 'https://download.visualstudio.microsoft.com/download/pr/99fe5fea-e07c-4e6e-87ef-32a88c6ec393/4C031823291B00B06E0EBC6B21FBC8013E9B5FED4BADC475474BB7463D66444E/vs_installer.opc'
VisualStudio Bootstrapper:12/21/2021 7:19:05 PM: Package signature verification threw exception: The stub received bad data.
, for path: C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_installer\wi42xf1.kx1\vs_installer.opc"
VisualStudio Bootstrapper:12/21/2021 7:19:05 PM: Package signature verification threw exception: The stub received bad data.
, for path: C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_installer\wi42xf1.kx1\vs_installer.opc"
VisualStudio Bootstrapper:12/21/2021 7:19:05 PM: Caught Exception: Type = InvalidSignatureException, Message = Package signature verification threw exception: The stub received bad data.
, for path: vs_installer.opc", StackTrace = 
VisualStudio Bootstrapper:12/21/2021 7:19:05 PM: Package signature verification threw exception: The stub received bad data.
, for path: vs_installer.opc"
VisualStudio Bootstrapper:12/21/2021 7:19:05 PM: Download failed using WebClient engine. Microsoft.VisualStudio.Setup.Security.InvalidSignatureException: Package signature verification threw exception: The stub received bad data.
, for path: vs_installer.opc"
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:19:05 PM: Sleeping 5000 milliseconds before retrying download.
VisualStudio Bootstrapper:12/21/2021 7:19:10 PM: Attempting download 'https://aka.ms/vs/17/release/installer' using engine 'Bits'
VisualStudio Bootstrapper:12/21/2021 7:19:10 PM: Skipped BITS download engine: Retrieving the COM class factory for component with CLSID {4991D34B-80A1-4291-83B6-3328366B9097} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
VisualStudio Bootstrapper:12/21/2021 7:19:10 PM: Download failed using Bits engine. System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {4991D34B-80A1-4291-83B6-3328366B9097} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
   at Microsoft.VisualStudio.Setup.Download.Bits.BitsEngine.<>c.<.ctor>b__3_0()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at Microsoft.VisualStudio.Setup.Download.Bits.BitsEngine.DownloadCore(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.DownloadWithBitRate(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.Download(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:19:10 PM: Sleeping 10000 milliseconds before retrying download.
VisualStudio Bootstrapper:12/21/2021 7:19:20 PM: Attempting download 'https://aka.ms/vs/17/release/installer' using engine 'WinInet'
VisualStudio Bootstrapper:12/21/2021 7:19:20 PM: Error in 'HttpQueryInfo' with '12150' - 'Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:19:20 PM: Failed to close connection: 6.
VisualStudio Bootstrapper:12/21/2021 7:19:20 PM: WinInet error 'UnknownError' Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150 - proxy setting 'DefaultCredentialsOrNoAutoProxy' - 'https://aka.ms/vs/17/release/installer'.
VisualStudio Bootstrapper:12/21/2021 7:19:20 PM: Error in 'HttpQueryInfo' with '12150' - 'Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:19:21 PM: Failed to close connection: 6.
VisualStudio Bootstrapper:12/21/2021 7:19:21 PM: WinInet error 'UnknownError' Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150 - proxy setting 'DirectAccess' - 'https://aka.ms/vs/17/release/installer'.
VisualStudio Bootstrapper:12/21/2021 7:19:21 PM: Error in 'HttpQueryInfo' with '12150' - 'Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:19:21 PM: Failed to close connection: 6.
VisualStudio Bootstrapper:12/21/2021 7:19:21 PM: WinInet failed 'https://aka.ms/vs/17/release/installer' with 'Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:19:21 PM: Download failed using WinInet engine. Microsoft.VisualStudio.Setup.Download.WrappedWebException: Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150
   at Microsoft.VisualStudio.Setup.Download.WinInet.WinInetEngine.DownloadCore(Uri uri, Stream stream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.DownloadWithBitRate(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.Download(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:19:21 PM: Caught Exception: Type = WrappedWebException, Message = Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150, StackTrace =    at Microsoft.VisualStudio.Setup.Download.WinInet.WinInetEngine.DownloadCore(Uri uri, Stream stream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.DownloadWithBitRate(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.Download(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:19:21 PM: Failed to download. Error : Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150
VisualStudio Bootstrapper:12/21/2021 7:19:26 PM: Beginning file download. File = https://aka.ms/vs/17/release/installer.
VisualStudio Bootstrapper:12/21/2021 7:19:26 PM: Download requested: https://aka.ms/vs/17/release/installer
VisualStudio Bootstrapper:12/21/2021 7:19:26 PM: Attempting download 'https://aka.ms/vs/17/release/installer' using engine 'WebClient'
VisualStudio Bootstrapper:12/21/2021 7:19:26 PM: Uri 'https://aka.ms/vs/17/release/installer' redirected to 'https://download.visualstudio.microsoft.com/download/pr/99fe5fea-e07c-4e6e-87ef-32a88c6ec393/4C031823291B00B06E0EBC6B21FBC8013E9B5FED4BADC475474BB7463D66444E/vs_installer.opc'
VisualStudio Bootstrapper:12/21/2021 7:19:27 PM: Package signature verification threw exception: The stub received bad data.
, for path: C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_installer\wi42xf1.kx1\vs_installer.opc"
VisualStudio Bootstrapper:12/21/2021 7:19:27 PM: Package signature verification threw exception: The stub received bad data.
, for path: C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_installer\wi42xf1.kx1\vs_installer.opc"
VisualStudio Bootstrapper:12/21/2021 7:19:27 PM: Caught Exception: Type = InvalidSignatureException, Message = Package signature verification threw exception: The stub received bad data.
, for path: vs_installer.opc", StackTrace = 
VisualStudio Bootstrapper:12/21/2021 7:19:27 PM: Package signature verification threw exception: The stub received bad data.
, for path: vs_installer.opc"
VisualStudio Bootstrapper:12/21/2021 7:19:27 PM: Download failed using WebClient engine. Microsoft.VisualStudio.Setup.Security.InvalidSignatureException: Package signature verification threw exception: The stub received bad data.
, for path: vs_installer.opc"
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:19:27 PM: Sleeping 5000 milliseconds before retrying download.
VisualStudio Bootstrapper:12/21/2021 7:19:32 PM: Attempting download 'https://aka.ms/vs/17/release/installer' using engine 'Bits'
VisualStudio Bootstrapper:12/21/2021 7:19:32 PM: Skipped BITS download engine: Retrieving the COM class factory for component with CLSID {4991D34B-80A1-4291-83B6-3328366B9097} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
VisualStudio Bootstrapper:12/21/2021 7:19:32 PM: Download failed using Bits engine. System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {4991D34B-80A1-4291-83B6-3328366B9097} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
   at Microsoft.VisualStudio.Setup.Download.Bits.BitsEngine.<>c.<.ctor>b__3_0()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at Microsoft.VisualStudio.Setup.Download.Bits.BitsEngine.DownloadCore(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.DownloadWithBitRate(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.Download(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:19:32 PM: Sleeping 10000 milliseconds before retrying download.
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: Attempting download 'https://aka.ms/vs/17/release/installer' using engine 'WinInet'
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: Error in 'HttpQueryInfo' with '12150' - 'Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: Failed to close connection: 6.
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: WinInet error 'UnknownError' Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150 - proxy setting 'DefaultCredentialsOrNoAutoProxy' - 'https://aka.ms/vs/17/release/installer'.
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: Error in 'HttpQueryInfo' with '12150' - 'Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: Failed to close connection: 6.
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: WinInet error 'UnknownError' Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150 - proxy setting 'DirectAccess' - 'https://aka.ms/vs/17/release/installer'.
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: Error in 'HttpQueryInfo' with '12150' - 'Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: Failed to close connection: 6.
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: WinInet failed 'https://aka.ms/vs/17/release/installer' with 'Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: Download failed using WinInet engine. Microsoft.VisualStudio.Setup.Download.WrappedWebException: Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150
   at Microsoft.VisualStudio.Setup.Download.WinInet.WinInetEngine.DownloadCore(Uri uri, Stream stream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.DownloadWithBitRate(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.Download(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: Caught Exception: Type = WrappedWebException, Message = Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150, StackTrace =    at Microsoft.VisualStudio.Setup.Download.WinInet.WinInetEngine.DownloadCore(Uri uri, Stream stream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.DownloadWithBitRate(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.Download(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:19:42 PM: Failed to download. Error : Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150
VisualStudio Bootstrapper:12/21/2021 7:19:47 PM: Beginning file download. File = https://aka.ms/vs/17/release/installer.
VisualStudio Bootstrapper:12/21/2021 7:19:47 PM: Download requested: https://aka.ms/vs/17/release/installer
VisualStudio Bootstrapper:12/21/2021 7:19:47 PM: Attempting download 'https://aka.ms/vs/17/release/installer' using engine 'WebClient'
VisualStudio Bootstrapper:12/21/2021 7:19:47 PM: Uri 'https://aka.ms/vs/17/release/installer' redirected to 'https://download.visualstudio.microsoft.com/download/pr/99fe5fea-e07c-4e6e-87ef-32a88c6ec393/4C031823291B00B06E0EBC6B21FBC8013E9B5FED4BADC475474BB7463D66444E/vs_installer.opc'
VisualStudio Bootstrapper:12/21/2021 7:19:50 PM: Package signature verification threw exception: The stub received bad data.
, for path: C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_installer\wi42xf1.kx1\vs_installer.opc"
VisualStudio Bootstrapper:12/21/2021 7:19:50 PM: Package signature verification threw exception: The stub received bad data.
, for path: C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_installer\wi42xf1.kx1\vs_installer.opc"
VisualStudio Bootstrapper:12/21/2021 7:19:50 PM: Caught Exception: Type = InvalidSignatureException, Message = Package signature verification threw exception: The stub received bad data.
, for path: vs_installer.opc", StackTrace = 
VisualStudio Bootstrapper:12/21/2021 7:19:50 PM: Package signature verification threw exception: The stub received bad data.
, for path: vs_installer.opc"
VisualStudio Bootstrapper:12/21/2021 7:19:50 PM: Download failed using WebClient engine. Microsoft.VisualStudio.Setup.Security.InvalidSignatureException: Package signature verification threw exception: The stub received bad data.
, for path: vs_installer.opc"
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:19:50 PM: Sleeping 5000 milliseconds before retrying download.
VisualStudio Bootstrapper:12/21/2021 7:19:55 PM: Attempting download 'https://aka.ms/vs/17/release/installer' using engine 'Bits'
VisualStudio Bootstrapper:12/21/2021 7:19:55 PM: Skipped BITS download engine: Retrieving the COM class factory for component with CLSID {4991D34B-80A1-4291-83B6-3328366B9097} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
VisualStudio Bootstrapper:12/21/2021 7:19:55 PM: Download failed using Bits engine. System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {4991D34B-80A1-4291-83B6-3328366B9097} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
   at Microsoft.VisualStudio.Setup.Download.Bits.BitsEngine.<>c.<.ctor>b__3_0()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at Microsoft.VisualStudio.Setup.Download.Bits.BitsEngine.DownloadCore(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.DownloadWithBitRate(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.Download(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:19:55 PM: Sleeping 10000 milliseconds before retrying download.
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Attempting download 'https://aka.ms/vs/17/release/installer' using engine 'WinInet'
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Error in 'HttpQueryInfo' with '12150' - 'Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Failed to close connection: 6.
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: WinInet error 'UnknownError' Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150 - proxy setting 'DefaultCredentialsOrNoAutoProxy' - 'https://aka.ms/vs/17/release/installer'.
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Error in 'HttpQueryInfo' with '12150' - 'Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Failed to close connection: 6.
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: WinInet error 'UnknownError' Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150 - proxy setting 'DirectAccess' - 'https://aka.ms/vs/17/release/installer'.
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Error in 'HttpQueryInfo' with '12150' - 'Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Failed to close connection: 6.
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: WinInet failed 'https://aka.ms/vs/17/release/installer' with 'Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150'.
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Download failed using WinInet engine. Microsoft.VisualStudio.Setup.Download.WrappedWebException: Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150
   at Microsoft.VisualStudio.Setup.Download.WinInet.WinInetEngine.DownloadCore(Uri uri, Stream stream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.DownloadWithBitRate(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.Download(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Caught Exception: Type = WrappedWebException, Message = Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150, StackTrace =    at Microsoft.VisualStudio.Setup.Download.WinInet.WinInetEngine.DownloadCore(Uri uri, Stream stream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.DownloadWithBitRate(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.Download(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, ITelemetryOperation telemetryOperation)
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Failed to download. Error : Function: HttpQueryInfo, HR: -2147012746, Message: Unknown error 12150
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: Sending Watson Bucket with:
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: P1  = vs_setup_bootstrapper
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: P2  = 3.0.4496.34889
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: P3  = 
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: P4  = Install
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: P5  = https://aka.ms/vs/17/release/installer
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: P6  = n/a
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: P7  = 0x80072f76
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: P8  = 
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: P9  = Microsoft.VisualStudio.Product.Community
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: P10 = VisualStudio.17.Release
VisualStudio Bootstrapper:12/21/2021 7:20:05 PM: Watson: Including Log : C:\Users\myusername\AppData\Local\Temp\dd_bootstrapper_20211221191855.log
VisualStudio Bootstrapper:12/21/2021 7:20:07 PM: Bootstrapper failed with known error.

Sandboxie configuration

My initial sandboxie.ini settings

#
# Sandboxie-Plus configuration file
#

[GlobalSettings]
FileRootPath=C:\Users\myusername\Sandboxie\Sandbox\%SANDBOX%
SeparateUserFolders=y
KeyRootPath=\REGISTRY\USER\Sandbox_%USER%_%SANDBOX%
IpcRootPath=\Sandbox\%USER%\%SANDBOX%\Session_%SESSION%
NetworkEnableWFP=n
EnableObjectFiltering=n
EnableWin32kHooks=n
EditAdminOnly=n
ForceDisableAdminOnly=n
ForgetPassword=n
Template=WindowsRasMan
Template=WindowsLive
Template=OfficeLicensing
Template=OfficeClickToRun
Template=7zipShellEx

[UserSettings_086E01B7]
SbieCtrl_AutoStartAgent=SandMan.exe

[DefaultBox]
Enabled=y
AutoRecover=n
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#00FFFF,ttl
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=Chrome_Phishing_DirectAccess
Template=Firefox_Phishing_DirectAccess
Template=AutoRecoverIgnore
ConfigLevel=9

[VS22]
Enabled=y
AutoRecover=n
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#00FFFF,ttl
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=Chrome_Phishing_DirectAccess
Template=Firefox_Phishing_DirectAccess
Template=AutoRecoverIgnore
ConfigLevel=9
UsePrivacyMode=n

@DavidXanatos
Copy link
Member

Without testing it this is probably caused by BITS not working when sandboxed, and MSFT likes to use BITS to downlaod stuff.

@Gravityzwell
Copy link

I'd have been surprised if it worked. I installed some old versions, some years ago, maybe up to 2010, or 2008. Wine is (or was) the same way. I find about half the time just doing a VS update it demands a reboot, so it's doing something with core files.

@isaak654 isaak654 added the Type: Access Token Token-based authentication issues label Feb 4, 2022
@belzecue
Copy link

belzecue commented Mar 20, 2022

Creating an offline installer and using that might work.

[Edit] I tried it. No luck. vs_setup.exe is silently terminating not far into the setup process.

@Gravityzwell
Copy link

Wine still doesn't work for anything beyond VS 2008
https://appdb.winehq.org/objectManager.php?iId=892&sClass=application
If you're determined, you might get somewhere by installing the different parts. The main setup calls a lot of different MSI's and CAB's, accessible from the offline installer subfolders, as I recall.

@Gravityzwell
Copy link

Also it may help to allow the sandbox full access to a folder, e.g., d:\Test\VSSandbox, and point the setup there. Rather than installing into the sandbox.

@isaak654
Copy link
Collaborator

isaak654 commented Jun 5, 2022

See #1576 (comment) by @DavidXanatos

In the next preview build 1.1.1 VS2019 and VS2022 will start successfully, but to have your licence recognized you need to open the protected storage, OpenProtectedStorage=y Seams to even work in a regular box, although to use the debugger use of a compartment type box seams required.

@isaak654 isaak654 added the Status: Fixed in Next Build Fixed in the next Sandboxie version label Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Fixed in Next Build Fixed in the next Sandboxie version Type: Access Token Token-based authentication issues
Projects
None yet
Development

No branches or pull requests

5 participants