Skip to content

Failed to read environment variable [DOTNET_STARTUP_HOOKS], HRESULT: 0x800700CB #87687

@pedoc

Description

@pedoc

Description

in vs17.6.3,the following error message is displayed in eventvwr

Description: A .NET application failed.
Application: ServiceHub.IndexingService.exe
Path: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\ServiceHub\Hosts\ServiceHub.Host.Dotnet.x64\ServiceHub.IndexingService.exe
Message: Failed to read environment variable [DOTNET_STARTUP_HOOKS], HRESULT: 0x800700CB
Description: A .NET application failed.
Application: ServiceHub.DataWarehouseHost.exe
Path: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\ServiceHub\Hosts\ServiceHub.Host.Dotnet.x64\ServiceHub.DataWarehouseHost.exe
Message: Failed to read environment variable [DOTNET_STARTUP_HOOKS], HRESULT: 0x800700CB
Description: A .NET application failed.
Application: ServiceHub.IndexingService.exe
Path: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\ServiceHub\Hosts\ServiceHub.Host.Dotnet.x64\ServiceHub.IndexingService.exe
Message: Failed to read environment variable [DOTNET_STARTUP_HOOKS], HRESULT: 0x800700CB

Reproduction Steps

Currently every launch of vs triggers this error.

Expected behavior

no error

Actual behavior

something went wrong

Regression?

No response

Known Workarounds

No response

Configuration

.NET SDK:
 Version:   8.0.100-preview.6.23316.2
 Commit:    5071f1f4ed

 OS Name:     Windows
 OS Version:  10.0.25393
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\8.0.100-preview.6.23316.2\

Host:
  Version:      8.0.0-preview.6.23315.6
  Architecture: x64
  Commit:       35a5afb63f

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions