34 results found
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=220.127.116.11, 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
An attempt was made to use the model while it was being created. A DbContext instance cannot be used inside 'OnModelCreating' in any way that makes use of the model that is being created.
I'm working with Entity Framework Asp.net Core 3.1. I wanna get some data from the database but. The result doesn't contain any relational information