dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.86k stars 670 forks source link

Unable to load symbols. Error initializing the symbol locator. Unknown Error: 0x80131534 on windows 7 #2939

Open preetipadalia opened 5 years ago

preetipadalia commented 5 years ago

Environment data

dotnet --info output: .NET Core SDK (reflecting any global.json): Version: 2.2.101 Commit: 236713b0b7

Runtime Environment: OS Name: Windows OS Version: 6.1.7601 OS Platform: Windows RID: win7-x64 Base Path: C:\Program Files\dotnet\sdk\2.2.101\

Host (useful for support): Version: 2.2.0 Commit: 1249f08fed

.NET Core SDKs installed: 2.2.101 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

C# Extension version: Copied the already installed version in another system to this system as internet was not working. Name: C# Id: ms-vscode.csharp Description: C# for Visual Studio Code (powered by OmniSharp). Version: 1.17.1 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp

Steps to reproduce

Open a c# project and start debugging.

Expected behavior

Debugging should work.

Actual behavior

Getting error Unable to load symbols. Error initializing the symbol locator. Unknown Error: 0x80131534

preetipadalia commented 5 years ago

Can anyone please help with this issue. Why are we getting this. Any workaround to resolve it.

gregg-miskelly commented 5 years ago

Unfortunately error code 0x80131534 is not very helpful - that indicates that a type failed to load.

A new version of the C# extension came out today. Are you still seeing this issue with it? If so, can try enabling logging and see if anything interesting comes out?

preetipadalia commented 5 years ago

Hi Gregg. Thanks for the reply. Can the issue be because the system is not connected to internet and we just copied the. Vscode extension folder from internet connected machine to this machine..

On Wed, Mar 27, 2019, 6:16 AM Gregg Miskelly notifications@github.com wrote:

Unfortunately error code 0x80131534 is not very helpful - that indicates that a type failed to load.

A new version of the C# extension came out today. Are you still seeing this issue with it? If so, can try enabling logging https://github.com/OmniSharp/omnisharp-vscode/wiki/Enabling-C%23-debugger-logging and see if anything interesting comes out?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OmniSharp/omnisharp-vscode/issues/2939#issuecomment-476913990, or mute the thread https://github.com/notifications/unsubscribe-auth/Aitguow4lFlHPeftWJ6uRuM_Dc9kFexSks5var8CgaJpZM4cG6uW .

gregg-miskelly commented 5 years ago

Having no internet connection should not be a problem. My guess is that you didn't quite get something quite right with the copy though. You can use these steps to build a platform-specific version of the extension with all runtime dependencies built in.