© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
8 replies
ThePuppetMaster

✅ Unhandled exception. Cannot print exception string because Exception.ToString() failed.just

why this error always come in dotnet webapi application

version -----

dotnet --version
8.0.100-preview.3.23178.7
---------------------------------------------------------

info -------

dotnet --info
.NET SDK:
Version: 8.0.100-preview.3.23178.7
Commit: e300b0e1e6

Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/dotnet/sdk/8.0.100-preview.3.23178.7/

.NET workloads installed:
There are no installed workloads to display.

Host:
Version: 8.0.0-preview.3.23174.8
Architecture: x64
Commit: 47bad717bd

.NET SDKs installed:
8.0.100-preview.3.23178.7 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0-preview.3.23177.8 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.27 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0-preview.3.23174.8 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
---------------------------------------------------------


i install

dotnet add package Npgsql --version 8.0.2

dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version 9.0.0-preview.2

error : Unhandled exception.
Cannot print exception string because Exception.ToString() failed.just

can someone me in this error please ?
dotnet command - .NET CLI
Learn about the dotnet command (the generic driver for the .NET CLI) and its usage.
dotnet command - .NET CLI
Microsoft
.NET Downloads (Linux, macOS, and Windows)
Official .NET downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
.NET Downloads (Linux, macOS, and Windows)
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Very strange deadlock on Exception.ToString
C#CC# / help
7mo ago
Unhandled exception. System.IO.FileNotFoundException
C#CC# / help
2y ago
❔ ✅ An unhandled exception has occurred
C#CC# / help
3y ago
Exception Unhandled - How to solve?
C#CC# / help
4y ago