Skip to content

[Bug]: Extension Fails to Load -- Could Not Load File or Assembly #21707

@dfaivre-pcs

Description

@dfaivre-pcs

Description

It had been working for me last week. Running in WSL. Extension no longer loads.

SQLToolsService:

Failed to load System.Private.CoreLib.dll (error code 0x80070002)
Path: /home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll
Error message: Could not load file or assembly '/home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll'. The system cannot find the file specified.
 (0x80070002)
Failed to create CoreCLR, HRESULT: 0x80070002
[Error - 2:10:43 PM] Connection to server got closed. Server will not be restarted.

AzureResourceProvider

Failed to load System.Private.CoreLib.dll (error code 0x80070002)
Path: /home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll
Error message: Could not load file or assembly '/home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll'. The system cannot find the file specified.
 (0x80070002)
Failed to create CoreCLR, HRESULT: 0x80070002
[Info  - 2:06:19 PM] Connection to server got closed. Server will restart.
Failed to load System.Private.CoreLib.dll (error code 0x80070002)
Path: /home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll
Error message: Could not load file or assembly '/home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll'. The system cannot find the file specified.
 (0x80070002)
Failed to create CoreCLR, HRESULT: 0x80070002
[Info  - 2:06:19 PM] Connection to server got closed. Server will restart.
Failed to load System.Private.CoreLib.dll (error code 0x80070002)
Path: /home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll
Error message: Could not load file or assembly '/home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll'. The system cannot find the file specified.
 (0x80070002)
Failed to create CoreCLR, HRESULT: 0x80070002
[Info  - 2:06:19 PM] Connection to server got closed. Server will restart.
Failed to load System.Private.CoreLib.dll (error code 0x80070002)
Path: /home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll
Error message: Could not load file or assembly '/home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll'. The system cannot find the file specified.
 (0x80070002)
Failed to create CoreCLR, HRESULT: 0x80070002
[Info  - 2:06:19 PM] Connection to server got closed. Server will restart.
[Error - 2:06:20 PM] Connection to server got closed. Server will not be restarted.
Failed to load System.Private.CoreLib.dll (error code 0x80070002)
Path: /home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll
Error message: Could not load file or assembly '/home/dfaiv/.vscode-server/extensions/ms-mssql.mssql-1.41.0/sqltoolsservice/5.0.20260316.3/Linux/System.Private.CoreLib.dll'. The system cannot find the file specified.
 (0x80070002)
Failed to create CoreCLR, HRESULT: 0x80070002

mssql:

[2:10:42 PM] [SQL Tools Service] Initializing SQL tools service for the mssql extension.
[2:10:43 PM] [SQL Tools Service] Note: mssql commands will be available after installing the service.
[2:10:43 PM] [SQL Tools Service] 
[2:10:43 PM] [SQL Tools Service] Platform: linux, x86_64, name=ubuntu, version=24.04 (Linux)
[2:10:43 PM] [SQL Tools Service] 

Steps to Reproduce

Not sure???

Affected Area

  • Connection dialog (SQL Server | Azure browse/Fabric browse)
  • Query editor
  • Query results panel
  • Object Explorer
  • GitHub Copilot integration
  • Preview/Edit data
  • Table Designer
  • Schema Designer
  • Schema Compare
  • Local SQL Server Container provisioning
  • SQL database in Fabric provisioning
  • DACPAC/BACPAC export/import
  • SQL Database projects
  • Query Plan Visualizer
  • Other (please describe below)

If you selected "Other", please describe the affected area

Extension just doesn't load...

Environment Information

WSL, VS Code remote on WSL

Confirmation

  • I have searched existing issues and couldn't find a match
  • I want to work on this issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions