✅ 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.
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.
4 Replies
Jimmacle
Jimmacle9mo ago
can't do anything without seeing code but why are you installing a preview package of EF core? and why are you still on a preview version of .NET 8? first step is update your .NET SDK and then install the packages appropriate for that version and not previews
ThePuppetMaster
ThePuppetMasterOP9mo ago
okay i dont think is code issue you are right i need to check with the installtion thanks bro it work now the dotnet installtion was not corrrect
Jimmacle
Jimmacle9mo ago
$close
MODiX
MODiX9mo ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server