✅ 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
Jimmacle4mo 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
ThePuppetMaster4mo 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
Jimmacle4mo ago
$close
MODiX
MODiX4mo ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server
More Posts
✅ How to use Dapper with Query ParametersI work a lot with SQL databases such as MySQL, SQLite and PSQL and usually I write my Queries like t✅ transaction in transaction issueI have this error: `The connection is already in a transaction and cannot participate in another trHelp making login function c#Im currently trying to code a login function I have the registration my user is getting saved in thProblems with docker and my app imageI already posted a question that more or less manage to solve but now i have other problem, the thiAttempting to get value from different JSON files with variable keyHello o/ I am attempting to deserilize and obtain the value from a variety of JSON files that contaiHow to display only department fields associated with a selected department in student automationhi, I'm facing a challenge while working on the student automation system. After selecting the deparHelp with DiscordGameSDK in a C# project (no Unity)I am currently trying to develop a plugin for a Unity game. For this I created a C# project, where IMarshal.GetActiveObject("Word.Application") fall in exceptionI'm working on a `.NET Framework` console application, I have added the `Microsoft.Office.Interop.WMigrating to Microsoft.IdentityModel.JsonWebTokens .net6 => .net8Hi, I am migrating a project which uses Duende as identity server + Ocelot gateway from .NET 6 to .NProcess working set is twice as commited managed memoryHi! I have an ASP.NET Core 8 app running on Linux in Docker. It's memory usage is limited by 512M.