question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Omnisharp OUTPUT: Can't print exception string because Exception.ToString() failed.

See original GitHub issue

Environment data

dotnet --info output:

.NET Core SDK: Version: 2.1.500 Commit: b68b931422

OS Name: Windows OS Version: 10.0.17134 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.500\

Host (useful for support): Version: 2.1.6 Commit: 3f4f8eebd8

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

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

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

VS Code version: 1.29.1(user setup) C# Extension version:ms-vscode.csharp-1.17.1

OUTPUT in OmniSharp Log

OmniSharp server started. Path: C:\Users\17396.vscode\extensions\ms-vscode.csharp-1.17.1.omnisharp\1.32.8\OmniSharp.exe PID: 10072

Error: Can’t print exception string because Exception.ToString() failed. [ERROR] Error: OmniSharp server load timed out. Use the ‘omnisharp.projectLoadTimeout’ setting to override the default delay (one minute).

Path in environment variables

C:\Windows\System32 C:\Program Files\dotnet C:\Windows\Microsoft.NET\Framework64\v4.0.30319

others are unrelated

Description

I have reinstall extension and .net core sdk for many times but not works. It also says .net cli tools can’t be located, but I can actually use debugger and run my console app. dotnet commands also works in cmd. default

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rchandecommented, Nov 30, 2018

@Weaverzhu can you run the set command from the command prompt inside VS Code? Also, you might need to increase your project load timeout (“omnisharp.projectLoadTimeout” option).

0reactions
zhongzepengcommented, Aug 6, 2019

I also have this situation, when switching git branch, restart vscode will solve

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Cannot print exception string because Exception.ToString ...
First field value from the cursor's first record if cursor is not empty. What's going on: The problem is in the string name...
Read more >
Exception.ToString () - MSDN - Microsoft
It fails because you are using exception in wrong way. Exception is a class but you need to use instance of that class...
Read more >
Cannot print exception string - Runar Ovesen Hjerpbakk
Net Core 3.0 project. But when trying to do queries, it failed with this error message: Cannot print exception string because Exception.ToString ......
Read more >
Re: Cannot print exception string because Exception.ToString ...
Cannot print exception string because Exception.ToString() failed. my application works properly under Windows XP but doesn't work under ...
Read more >
Nerdbank.GitVersioning - Bountysource
json is built and then the following error is returned to the console: Unhandled Exception: Cannot print exception string because Exception.ToString() failed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found