.Net Core
34 results found
-
What is difference between addtransient and addscoped in .net core?
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.
-
InvalidOperationException: Connection property has not been initialized in Asp.Net Core
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
-
Clear SOLID with Decorator design pattern in C# ASP.NET Core
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.
-
Http error 502.5 - process failure in asp.net core 3.1
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
-
Asp.Net EF Core error : More than one DbContext was found.
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 error: Unable to create an object of type 'ApplicationDBContext'.
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 .html file into a razor file in Asp.Net core?
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.
-
How to pass multiple models to one view in Asp.net Core
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.
-
Operator '!' cannot be applied to operand of type '<null>' in Asp.Net Core
Asp.net core 3.1 throws an exception Operator '!' cannot be applied to operand of type '' when starting run project
-
Either the 'ViewComponentName' or 'ViewComponentType' property must be set in order to invoke a view component.
Throw an error in Asp.Net Core: Either the 'ViewComponentName' or 'ViewComponentType' property must be set in order to invoke a view component.
-
Asp.net Core: Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' atribute
Error CS0579 Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute In asp.net core 3.1 when build project
-
Npgsql Error: exception while reading from stream in Asp.net Core
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.
-
Asp.Net Core: some services are not able to be constructed
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'.
-
Asp.Net Core: The connection pool has been exhausted
Npgsql.NpgsqlException (0x80004005): The connection pool has been exhausted, either raise MaxPoolSize (currently 100) or Timeout (currently 15 seconds) in Asp.Net Core
-
Asp.Net Core: Received unexpected backend message DataRow. Please file a bug.
Asp.Net Core Error: Received unexpected backend message DataRow. Please file a bug. Error throws when having many visit access at the same time