35 results found
Error invalid argument for "-t, --tag" flag: invalid reference format: repository name must be lowercase in Docker Ubuntu when I was trying to create a docker image.
What is difference between addtransient and addscoped in .net core 3.1? I try to register all of them also worked well for me. I need particular case to use them.
I get an exception throw System.InvalidOperationException: Connection property has not been initialized in Asp.net Core when I trying to get data from the database
The decorator pattern in C# Asp.Net Core is a structural design pattern and it allows developers to dynamically add new behaviors and features to existing classes without modifying them thus respecting the open-closed principle. This pattern lets you structure your business logic into layers (wrappers) in a way that each layer adds some additional behavior or functionality to an existing object, promoting separation of concern.
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
More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands.
Asp.Net core Entity framework error: Unable to create an object of type 'ApplicationDBContext'. For the different patterns supported at design time
How to include a .html file into a razor file .cshtml in Asp.Net core 3.1? I tried to use Html.Partial() but it does not work for me.
In MVC we can not pass multiple models to a single view Asp.Net Core. But in the reality, we have many case need to do this. In this article, we will discuss some ways to help resolve this problem.
Asp.net core 3.1 throws an exception Operator '!' cannot be applied to operand of type '' when starting run project
Throw an error in Asp.Net Core: Either the 'ViewComponentName' or 'ViewComponentType' property must be set in order to invoke a view component.
Error CS0579 Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute In asp.net core 3.1 when build project
Npgsql.NpgsqlException (0x80004005): Exception while reading from stream ---> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
AggregateException: Some services are not able to be constructed. Error while validating the service descriptor 'ServiceType: A Lifetime: Singleton ImplementationType: B': Cannot consume scoped service 'C' from singleton 'A'.
Npgsql.NpgsqlException (0x80004005): The connection pool has been exhausted, either raise MaxPoolSize (currently 100) or Timeout (currently 15 seconds) in Asp.Net Core