Most voted "asp.net-core" questions
ASP.NET Core is a Microsoft framework as a redesign of ASP.NET.
Learn more…663 questions
Sort by count of
-
-1
votes2
answers117
viewsHow to connect an Azure Storage Account to an ASP.NET Core project?
I’m using VS2017 with ASP.NET Core 2.0 (Angular template) and I need to do basic Tables-based CRUD operations in Azure Storage. Is there any way to scaffold my environment?
-
-1
votes1
answer241
viewsProgressive Web Apps switching pages inside the app without opening browser
I have a mobile page (http://mvc-decea.azurewebsites.net) based on Progressive Web Apps and made using Asp.Net Core. But I’m in so much trouble: When adding to the mobile home screen by clicking on…
-
-1
votes1
answer75
viewsAccess to client directory
I have a curiosity, someone can tell me if there is any way to make my web application (in the case ASP .Net core) able to let the user choose a folder on his local machine and, my application have…
-
-1
votes1
answer809
viewsASP.NET Core - Search for GET requests
I am using ASP.NET Core 2.1 Web API and need to perform searches by certain type of field, IE, on my front I can choose the field I want to do the research and my back-end need to pick this value.…
-
-1
votes2
answers596
viewsI cannot initialize Automapper Settings 6.2.2 Asp.netcore 2.0
In my Application layer, I have the following classes: public class AutoMapperConfig { public static MapperConfiguration RegisterMappings() { return new MapperConfiguration(cfg => {…
-
-1
votes1
answer1380
viewsError 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.…
-
-1
votes1
answer72
viewsHTML vs markup auxiliaries
Apparently HTML and markup helpers can perform the same functions, like this example I found in microsoft documentation: HTML auxiliaries @using (Html.BeginForm("Register", "Account",…
-
-1
votes2
answers695
viewsCommand to perform the Down of a migration
With the command add-migration created a migration, so is created a class with two functions. protected override void Up(MigrationBuilder migrationBuilder){...} protected override void…
-
-1
votes1
answer39
viewsHow to share menu between ASP.net core applications
How to share menu between applications? We have several applications and all have the same menu, example: Home | Beneficiary | Accredited When new item appears we need to replicate in all…
-
-1
votes1
answer31
viewsMessage when net core exception occurs
I have 1 to 1 relationship between company and user but when the user has already registered 1 company and try to register another I want to show a message other than how can I do?…
-
-1
votes1
answer37
views.NET CORE | How to handle fields that cannot be changed (Disabled or Readonly)
I have a conceptual doubt that may be basic. Scenario is as follows: I have a field that should appear to the user, it is a sequential numbering that at a given time will be sent by the page Submit.…
-
-1
votes1
answer470
viewsViewbag, passing controller value to Razor page
I have this Ajax to be able to take the data and pass to the function Save items that is in the Schedulesitenscontroller, that even works perfectly. function SalvarItens() { var idItem =…
-
-1
votes2
answers74
viewsView.Bag returning null
I am creating an APS.NET CORE form with C# and Sqlserver sending email and one of the fields is a dropdownlist that lists data from a table. List<Templates> templates = new…
-
-1
votes1
answer36
viewsReference problem
I am studying . net-core and am trying to make a system for a hospital using standard DDD and . net-core. Just when I started creating my templates and views, I came across a reference problem when…
-
-1
votes1
answer63
viewsException when querying using DTO in EF . core
I get the following error when executing the query: "Cannot create a DbSet for 'Cliente_dto' because this type is not included in the model for the context." public IQueryable<TEntity>…
-
-1
votes1
answer108
viewsHow to get specific information from Tolistasync
I would like to create a system that prints on the Index page each Post equal to the image below And for this I created a method that searches the last 3 posts, however, I do not know how to print…
-
-1
votes1
answer10
viewsHow to return a compound field in a dropdown by ASP CORE using Razor
original in the model = ViewData["JobId"] = new SelectList(_context.Job, "JobId", "JobDay"); Together with Jobday, put the field Job.Entity.Entityname, Job and Entity are related and in context.…
-
-1
votes1
answer40
viewsReference the class itself in the inheritance dynamically
Good morning, i have the following code in c# Asp.net-Core: public class AgentsTrans : BaseTrans<AgentsTrans> Basetrans is a generic base class that expects to receive a class as a parameter…
-
-1
votes1
answer15
viewsAmbiguous reference error in Asp Net Core after installation of Google.Cloud.Firestore package
Hello, After installation of the package Google.Cloud.Firestore versão 2.3.1, I’m having ambiguity error between the Microsoft.EntityFrameworkCore and System.Linq.AsyncEnumerable.ToListAsync and for…
asp.net-coreasked 3 years, 6 months ago Roberto Luiz Teixeira Rocha 71 -
-1
votes1
answer23
viewsC#: Number formatting (with dot)
I’m working on ASP.NET Core MVC and C#. I needed to present the number, e.g., (double) 1000, as 1,000, when presently the number is presented as 1000 . The property in the model is as:…
-
-1
votes2
answers68
viewsProblem deleting a record, fetching the next
I am trying to do in the code, a page edit, then the user on this page edit, he can delete the record, and if he delete, the system has to check, if there is a record next, it goes to edit screen…
-
-1
votes3
answers121
viewsDataannotations problem in string fields[]
I need help validating a field string[], because whenever I send this empty field, it returns error, even if it is in the correct format: This is the field:…
-
-1
votes1
answer32
viewsApplication without access to the Database after publication in Azure
I published an Asp.Net Core 2.1 application in Azure, I made the Migrations, the database and tables were created normally, I can see the whole structure of the database by VS, but the application…
-
-1
votes1
answer85
viewsViewbag does not receive the value correctly
I’m trying to pass a figure on Controller for View, here is how it is in the View: <div class="alert alert-danger alert-dismissable" role="alert" id="alerta"> <button type="button"…
-
-1
votes1
answer124
viewsI cannot perform a Redirecttoaction for an Area
Print of what I’ve accomplished, but it didn’t work, this is my Logincontroller. My structure, and I’m trying to point to the Patientecontroller/Index: One of the other options I tried was to add…
-
-1
votes1
answer3469
viewsASP . net core (HTTP error 500.19 - Internal Server Error)
I have a web api, which when running on Iss presents error 500.19 in the browser, I am very new in the subject, I did some research this error may be on web.cofing. If anyone can help me, thank you!…
asp.net-mvc-5 asp.net-core asp.net-web-api iis visual-studio-2017asked 5 years, 5 months ago Matheus Vinicius 23 -
-1
votes1
answer30
viewsShow Simulation Result on another page
I have a form that receives data from the client interested in acquiring a loan, when he clicks on simulating the program does the simulation and records in the database, until then it works well.…
-
-1
votes1
answer89
viewsHow to give the post via ajax
I’m having trouble sending an email through a website. The structure that is is as follows: User fills the information in the form and I have a javascript that will give a post via ajax this ajax…
-
-1
votes1
answer44
viewsC# deserializar Enum that does not exist
I have a class that has as attribute an Enum, for example the class below: public enum Model { Volvo = 1, Ferrari = 2, Gurgel = 3 } public class Car { public Model model { get; private set; } public…
-
-1
votes1
answer204
viewsPagination with search
I am trying to create a search in a grid with paging, but when it brings the search result it generates a new pagination but when I click on page 2 it brings all the results ignoring the search and…
-
-1
votes1
answer166
viewsAsp.net core User Authentication and Authorization
Hello, I have the following conceptual and architectural problem of an application. -Scenario: There is an application that has user table, user permissions and user groups already defined in the…
-
-1
votes1
answer142
viewsError saving Decimal value with . Net Core and Mysql
In my project I have a field Valor of decimal type, as I set up the culture for en in my project I need to send the value with the tab ",". If I define the input as text does not accept sending with…
-
-1
votes1
answer250
viewsSearch log by Cpf ASP . NET CORE 3.0
I created a simple CRUD using ASP . NET CORE 3.0 using EF. All basic CRUD operations are running normal. I tried to create a method manually to search a record by the client’s CPF as code below, but…
-
-1
votes1
answer89
viewsCreate an expired date alert on a Gridview in ASP.NET in C#
I am doing a final project, where a record of task, description and date is made. But I am unable to put a warning/alert/message on the screen to warn the user that a task is expiring. I am…
-
-1
votes1
answer21
viewsProblem using Rotativapdf on aspnet core 3
I have followed the recommended settings in the documentation, performed several searches, I have no error in the example but the report is not generated. Initially I did the installation of :…
asp.net-coreasked 4 years, 5 months ago Harry 3,805 -
-1
votes1
answer22
viewsHelp with Daysofweek method in Asp . net
I am one creating an api using Asp.Net that performs task listings and these tasks are displayed per day, week, month and year, my doubt is on how to perform this call only for the current week that…
-
-1
votes1
answer166
viewsProblem raising API and making request via Postman
I’m creating an API project in dotnet core and I’m not being able to perform requests via postaman on it. Urls of attempts: "http://localhost:5050 e http://0.0.0.0:5050" "https://localhost:5001 e…
-
-1
votes1
answer36
viewsInsert multiple values with WEB API
How are you, my dear? Quiet? I will summarize my project to assist in understanding: I am creating a CRUD to assist me in some of the company’s tasks. I have 3 areas I use (System, Database and…
-
-1
votes1
answer20
viewsLayout Logo breaks when exiting Index
Hello, my logo breaks after leaving the index, whatever the view(Edit,delet, etc.), it breaks, in the index is normal, I would like to know how to fix it, following the error and the code. I’m using…
-
-1
votes1
answer44
viewsError when compiling NET CORE WEB API
I’m getting the message below while trying to compile my project. I commented some code and came to the conclusion that I am implementing the data context class in the wrong way because if I comment…
-
-1
votes1
answer169
views@bind and @onchange for a select on blazor c#
Hello, I’m new with blazor I wanted to do the following. I have 2 Lists, Category and another List2, in the form I have 1 select for the category and another select for List2, and I wanted to make…
-
-1
votes1
answer54
viewsSystem.NullReferenceException. How to include fields from another table?
Friends, I had a table Pessoa that contained a lot of user information. I decided to create a table Aluno to separate the information. My tables are like this: Person: Cod, Nome, Email, Senha Pupil:…
-
-1
votes1
answer24
viewsHow to get the Keys values of a Keyvaluepair c#object?
I have a Json with the following structure: { "Data" { "Request": [ { "text": "Minha Pergunta?", "response": "Minha resposta" } ] } } I do as follows to receive the values in the code:…
-
-1
votes1
answer44
viewsI cannot authorize my HTTP methods with the token generated by Bearer and Jwt
Good night, I am implementing authentication and authorization in my Web API in Asp.net core 5.0. Yesterday, I had success with some authorizations. However, when I went to try to finish…
-
-1
votes1
answer56
viewsc# How to Apply Function to validate Cpf in an API?
I need a help I have a CPF validation class in C# in a registration API project, but I don’t know how to implement this function to work validation, I’m using Microsoft to add the function in…
-
-1
votes1
answer45
viewsC# How do I prevent composite name from saving more than one space?
This is my validation: [Required(ErrorMessage = "O nome completo é obrigatório.", AllowEmptyStrings = false)]…
-
-1
votes0
answers5
viewsWhen updating a Migration, an error appears stating that it is not possible to create an object at design time
I’m testing a DDD concept project called Equinox at this address: Equinox The first thing I did was to update the Migration (Update-Database) of the Equinox.Infra.Dat layer and it worked correctly:…
-
-2
votes2
answers1436
viewsTake variable value in another method
Inside the same file I have 2 methods: public IActionResult OnGet(){ CarregarMenu(); //Gostaria de pegar aqui o valor da variável lcMenuPrincipal Return Page(); } And the other: public static void…
-
-2
votes2
answers231
viewsRouting problems using Asp.net core
When trying to route a core 2.0 application, I can’t get to the controller. public class GetClientController : Controller { LoadClient loadClient = new LoadClient(); [HttpGet] public…
-
-2
votes0
answers10
viewsLearn . NET Core
I have been developing for a while in . NET Framework (webforms, windows Forms) and am learning . NET Framework MVC. I saw Maniero’s response in several posts talking about Core and the "death" of…