Asp.net core
28 results found
Error: 'AddDbContext' was called with configuration, but the context type 'MyDbContext' only declares a parameterless constructor.
Error: 'AddDbContext' was called with configuration, but the context type 'MyDbContext' only declares a parameterless constructor. This means that the configuration passed to 'AddDbContext' will never be used.
AmbiguousMatchException: The request matched multiple endpoints.
Microsoft.AspNetCore.Routing.Matching.AmbiguousMatchException: The request matched multiple endpoints exception in asp.net core API
How to get bearer token using swagger UI authorization in asp.net core API?
how to get the bearer token using swagger UI authorization in asp.net core API? I always receive a 401 Unauthorize messages when calling a request.
ERROR: Asp.net core 3.1 throw "Connection reset by peer".
Microsoft.AspNetCore.Connections.ConnectionResetException: Connection reset by peer. Error throw when call by ajax
AutoMapper: Missing type map configuration or unsupported mapping in .Net Core
Error in API application in ASP.NET Core, AutoMapper missing type map configuration or unsupported mapping in .Net Core
How to call a DELETE REST API with body by using HttpClient in ASP.NET Core
I have an issue when trying to call HTTP delete with some information inside of the request body. I'm using HttpClient class and using DeleteAsync method but I can't push anything into the body
How can I implement implicit and explicit casting in ASP.NET Core
How can I implement implicit and explicit casting in ASP.NET Core? I need an example to understand.
How to handle all exceptions in ASP.NET Core 3.1?
How to handle all global exception in ASP.NET Core 3.1? I don't want to catch the exception in each action from controllers because it's waste of time to do
JsonException: A possible object cycle was detected which is not supported
JsonException: A possible object cycle was detected which is not supported. This can either be due to a cycle or if the object depth is larger than the maximum allowed depth of 32.
JWT Authentication and refresh token in Asp.Net Core Web API
JWT authentication is standard for Json Web Token, It is a best solution for login with some stateless application type such as Restful Api. The Jwt uses a bearer token to check and allow users access to the application. In this article I will guide how to implement Jwt authentication and refresh tokens in Asp.net Core Web Api.
Param of POST method always get null value in Asp.Net Core
The param of POST method always get null value when calling from the client in Asp.Net Core 3.1
The type initializer for ‘System.Drawing.GDIPlus’ threw an exception
The type initializer for ‘System.Drawing.GDIPlus’ threw an exception. Unable to load DLL ‘gdiplus’: The specified module or one of its dependencies could not be found.
Detected package downgrade: Microsoft.NETCore.Platforms from 3.0.0 to 3.0.0-preview.19073.11
error NU1605: Detected package downgrade: Microsoft.NETCore.Platforms from 3.0.0 to 3.0.0-preview.19073.11. Reference the package directly from the project to select a different version
Asp.Net Core 3.0 throw HTTP Error 500.30 - ANCM In-Process Start Failure
Asp.Net Core 3.0 throws HTTP Error 500.30 - ANCM In-Process Start Failure when running the application in the browser.
Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.
System.InvalidOperationException: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.