36 results found
I get an exception throw System.InvalidOperationException: Sequence contains more than one element in Asp.Net Core 3.1 when try to get data from database.
I get an exception throw 42702: column reference "id" is ambiguous in Asp.Net Core when using PostgreSQL database to select data from a single table
In this article, I will discuss the basic ways to help you how to handle global errors in Asp.net Core Web API. Why do we need to handle global and not local? In web API, exceptions have many types and they may be not the same as a web application.
System.InvalidOperationException: No row is available, it throws when trying to get an object in C# and PostgreSql
I got an error Http error 502.5 - process failure in asp.net core 3.1 when I running my project in local window 10
Throw an error in Asp.Net Core: Either the 'ViewComponentName' or 'ViewComponentType' property must be set in order to invoke a view component.
Map object to another object in C# Asp.Net Core is a step we have to do every day. Normally we use a constructor to map. In this article, I introduce Automapper library to help map easy, and simple.
Error: The given key was not present in the dictionary in C# Asp.Net Core when getting an item from a list or dictionary
Error: 404 status code when POST Ajax in Asp.Net Core. It works fine on local but error 404 when publishing into IIS hosting
SerializationException: Type '' in Assembly ', Version=18.104.22.168, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
The model item passed into the ViewDataDictionary is of type '', but this ViewDataDictionary instance requires a model item of type '' In Asp.Net Core
System.InvalidOperationException: Invalid non-ASCII or control character in header: 0x0E23 when redirect url in Asp.Net Core 3.1
How to open txt file in console Terminal or Portainer.IO from Docker container? I try using VIM but it does not support.
Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The antiforgery token could not be decrypted. Error when submit form in Asp.Net Core
ERROR: Async test method must have non-void return type in Asp.Net Core when I try working with async