Posts by Thiago Corrêa • 119 points
6 posts
-
-1
votes1
answer1380
viewsQ: Error No service for type 'Microsoft.AspNetCore.Http.Ihttpcontextaccessor' has been Registered
To help those who are going through the same problem (ANSWER BELOW). Scenario: I am developing an ASP.NET CORE MVC application where I am working with Httpcontextaccessor and the error occurs below.…
-
4
votes1
answer1380
viewsA: Error No service for type 'Microsoft.AspNetCore.Http.Ihttpcontextaccessor' has been Registered
The problem is because by default the IHttpContextAccessor no longer comes connected. To solve this problem we must manually connect/log the service within the class Startup.cs public void…
-
3
votes2
answers900
viewsQ: Error while trying to add session to startup
I have a problem, always when I will compile the solution this giving error: System.Invalidoperationexception: 'Unable to resolve service for type 'Microsoft.AspNetCore.Session.Isessionstore' while…
-
1
votes0
answers64
viewsQ: I am unable to validate the authenticated user
PROBLEM: I am unable to validate the user authenticated by the database. What happens is that when I run my application, putting valid user and password, it returns me false inside my loginOk…
-
1
votes2
answers160
viewsQ: Decrease Field Size Edit
good morning. I’m beginner, I’m trying to decrease the size of the column edit and I’m not getting as the image below. Can someone help me? <thead> <tr> @*Campo Nome*@ <th…
-
0
votes1
answer150
viewsQ: Doubt about the Messagebox
I have a question about our famous MessageBox.Show();, this command is an event, method what would be?? Another question is about instantiating object, in the example below we are taking our login…