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
-
2
votes1
answer135
viewsError while using Middleware
I’m trying to use Middleware, so that every time a user logs into the system it is being redirected to condominium registration screen, he can not use the system until you register at least 1…
-
2
votes1
answer55
viewsCan I use Nhibernate with Docker?
I have a personal project on ASP.NET MVC core that supports Docker. I would like to use Nhibernate to persist and retrieve information. In my searches I have not found anyone who uses. I am trying…
c# asp.net-core docker nhibernate fluent-nhibernateasked 5 years, 7 months ago Henrique.Eichstadt 29 -
2
votes0
answers133
viewsHow to read a text file on the INFRA.DATA layer of an Asp.net Core - C#
In the Infra.Data layer, I configured the properties of a csv file to be copied to the output directory of the "bin" folder and I would like to read it using the Streamreader class. After being…
-
2
votes1
answer498
viewsIdentityuser Password Change - Aspnet
I have a registration form, which registers the user with email, and the password, but the need arose to change this password, and using the class Identity, she owns the field PasswordHash, and I…
-
2
votes2
answers124
viewsJunction of 2 Linq Queries
I am using the mysql database. I have 2 tables one of questions and options related to the question. For every access I make to the system I need to take the questions randomly and obviously the…
-
2
votes2
answers438
viewsRoute mapping does not work in ASP.NET Core 2.2
I have always used ASP.NET MVC 4 and now I am learning ASP.NET Core in version 2.2, I am doing some tests and I noticed that the routing is not working. I am using the standard design that is…
-
2
votes1
answer515
viewsIntegration Test . Net Core 2.2
I’m creating an integration test using microsoft Tuto Integration tests in ASP.NET Core public class WebAppFactory : WebApplicationFactory<Startup> { protected override void…
-
2
votes1
answer186
viewsWhy is EF Core updating data from other tables?
Why EF Core is actuating data from other tables? I am updating a table with EF but however I notice that EF is updating that table and still other tables. public async Task<IActionResult>…
-
2
votes1
answer819
viewsCannot Create an instance of the Abstract class on interface 'Httprequest'
I’m getting the following error: Cannot Create an instance of the Abstract class on interface 'Httprequest' In that part of my code: class FakeContext { public static HttpContext FakeHttpContext() {…
-
2
votes2
answers98
viewsDropdown - ASP.NET MVC
I’m a beginner in ASP.NET MVC and I need to create a Dropdown in a vehicle registration form where I can choose only one driver related to the vehicle that is previously registered in the database…
-
2
votes1
answer160
viewsA3 Web Application and Token without Local Installations
My goal is a web system that serves as a bridge between a government service and the user, abstracting access and data exchange. The user would access my web system and could perform actions, such…
-
2
votes2
answers484
viewsHow to hide property in Efcore listing
Hello, I have a question regarding the Efcore Webapi of ASP.NET Core. I have my Service, Professional, User and Scheduling entities, where in the service I have a foreign key for the professional…
-
2
votes1
answer53
viewsHow to add Account to the Asp.Net Core project
I’m new to Asp.net core mvc and I’m having a hard time, I have a project that in visual studio I have a solution for 4 different projects. Let’s just say it’s Project A and Project B. Project A…
-
2
votes1
answer149
viewsOnchange event in Input type="text" in a Blazor application
I am developing an application in Blazor and managed to do an inputtext along with a button perform a search in an api created by scafolding with Entity Frameworks. Follow simple form below.…
-
2
votes1
answer71
viewsHtml.Beginform error with area
I have a view with the following form: @using (Html.BeginForm("Salva", "Blog", new { area = "admin" }, FormMethod.Post, false, new { id = "formCadastro" })) However, when clicking on Ubmit the url…
-
2
votes1
answer59
viewsSerialization problems in . Net Core 3
I am studying . NET Core API and having problems with relationships, where I get the error whenever I try to list all "calibrations" of "equipment". JsonException: A possible object cycle was…
asp.net-coreasked 4 years, 9 months ago ShBr 139 -
2
votes1
answer212
viewsAdd customizable SOAP Header
I’m consuming a web service SOAP which does not provide any information on Headers, nor of autenticação. I added the same in my project by the tool Add Connected Service in Visual Studio. Looking…
-
2
votes1
answer37
viewsDuplicate field ASP.NET Core MVC
Good morning I am developing a web application and in the registration part I put a CPF field but as it can not be equal to what exists in the bank it of the error, I wanted it to return an error…
asp.net mvc asp.net-core identity validationasked 4 years, 4 months ago Gabriel Rodrigues Pavolin 33 -
2
votes0
answers58
viewsPreventing multiple threads for the same routine and the same user?
I’m developing a web app on ASP.NET Core MVC and some routines are called by clicking a button on the web page. It turns out you can push this button multiple times, so I need some…
-
2
votes1
answer34
viewsASP.NET Core: session duration
I did a program in ASP.NET Core MVC, which has the class Startup as: public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration…
-
1
votes1
answer230
viewsaspnetmvc6 cannot update
to testing the visual studo 2015 created a project Asp.net mvc and to want to update it to use the new version 6 beta. but to with an error here How do I fix it? have updated the Entity framework…
-
1
votes0
answers42
viewsOpen secondary pages in a particular Aspnet Core space
I have a page where I use the @renderBody to open my main pages, but the need arose to get a submenu and need the following pages to be opened in a certain space, but when shooting the…
-
1
votes1
answer63
viewsFrameworks section of project.json
In ASP.NET projects the file 5 project.json contains some important project data such as dependencies on other packages. It turns out that this file has a "frameworks" section that in projects…
-
1
votes1
answer54
viewsReason for different versions of DNX depending on the OS
A while ago I asked here about what . NET Execution Environment (DNX) really is. After reading the answer and the DNX Wiki I started to understand DNX as an interface between the virtual machine in…
-
1
votes2
answers620
viewsHow to integrate ASP.NET MVC Core with Vue.js?
I have a project that requires the client side to use Vue.js to render the application views, but on the server side ASP.NET MVC Core is intended to validate all business rules. Is there any way to…
-
1
votes0
answers153
viewsSystem.Data.Sqlclient problem while upgrading to aspnet 5 core
I updated my entire project to aspnet 5 core because I was using dnx vnext and apparently everything worked fine, but I performed tests and noticed that some values were not correct and when…
-
1
votes1
answer62
viewsInstall . Net Core SDK and Runtime from the Windows terminal?
I need to install both Runtime and the SDK. Net Core on the college machine, however, only place where I can put a proxy for general access is in Terminal, so I wonder if you have how to install…
-
1
votes1
answer825
viewsCS0246 error when creating a new Asp.net mvc core application
I have a problem, when creating a new project Asp.net-core in visual studio 2017 appears the following error when compiling: CS0246 The type or namespace name "System" cannot be found(missing a…
-
1
votes1
answer189
viewsLINQ to SQL - Exception when giving sum() in a query that contains another subquery using LINQ
private decimal GetBankAccountCashierTotal() { var company = _context.Company.FirstOrDefault(); return _context.PersonBankAgencyAccount .Where(p => p.PersonID.Equals(company.PersonID)) .Where(c…
-
1
votes0
answers76
viewsWebapi (.NET Core) has no performance gain when using async
I’m implementing an asynchronous api, but I haven’t seen much performance gain. I used Restful Stress for Chrome to do my tests, I simply didn’t see performance gain when using async. I thought this…
-
1
votes0
answers22
viewsClient question for a webapi
I have a slight doubt... concludes a webapi in Asp.net core, it is all tested and everything , however, I came up with a question... It includes a new project next to this api, so it is the client…
-
1
votes1
answer151
viewsHow to register a user with Identity, with the data already entered?
I have a method that inserts several data from an excel spreadsheet into the database, but there are some data, such as email, password, or concurrencyStamp (set as NULL), so I can’t change users'…
-
1
votes1
answer1494
viewsHow to make an ASP.NET Core MVC application for Portuguese?
I would like to be able to make an application in Portuguese. I was already doing this with ASP.NET MVC 5 in a super simple way through a Nuget installation. But I did not find anything similar for…
-
1
votes2
answers1487
viewsSave Image in Database with C#
Hello! I saw the example Upload image to picturebox and write to database but I didn’t get that part: FileStream Stream = new FileStream(imgLocation, FileMode.Open, FileAccess.Read); What would this…
-
1
votes1
answer383
viewsPublishing on Azure - Filenotfoundexception: Could not find file’D: home site wwwroot myapp.xml'
I am trying to publish an ASP.NET Core Web Api application for an Azure App Api feature. This error started to appear after I marked "Remove Additional files at Destination": And after that, I…
-
1
votes0
answers267
viewsHow to change the default folder of an ASP . NET Core application?
I am trying to set up an ASP site . NET Core, to host an Angularjs application. The structure my "index" page is using is: /wwwroot/app/index.html I tried some settings in the Startup.Cs file, like…
-
1
votes1
answer37
viewsError validating home page after Login/Password
I have an access validation (Login/Password) that if true, should return to the home page, but return me the following error: Invalidoperationexception: Renderbody Invocation in…
-
1
votes1
answer56
viewsResponse.Tryskipiiscustomerrors command in Asp.net core?
Is there a way to return an error in Asp net core only for a certain action without using the custom errors page? I used to Response.TrySkipIisCustomErrors=true; but in ASP.Net Core no longer…
asp.net-coreasked 6 years, 8 months ago VSHenrique 137 -
1
votes1
answer1013
viewsGenerate ASPNET CORE MVC reports
Is there a solution to generate reports in ASPNET CORE 2.0 MVC applications without needing a reporting server? I did some searching and did not find much on the subject.
-
1
votes0
answers82
viewsService Worker caching an Asp net core 2.0 application
I cannot meet the specifications of Progressive web apps because my service worker does not cache the web app. Follows the code: self.addEventListener('install', e => { let timeStamp =…
-
1
votes1
answer198
viewsControl time to return timeout
Look at the scenery: I have a procedure that running directly by SQL it takes about 50s to return the data. However, when this same process is executed via the system, the timeout in 15 s. My…
-
1
votes1
answer671
viewsASP.NET CORE Dependency Injection
I have a situation that I don’t know how to solve. I have the following scenario: I have an ASP.NET CORE Webapi and a Class Library also in . NET CORE. Since the class library will be according to…
c# dependency-injection asp.net-core class-libraryasked 6 years, 5 months ago Vinícius Avansini 183 -
1
votes0
answers81
viewsProblem when climbing Web Api in Asp.net core using Entity framework with postgresql
Hello! So, I already checked my classes in the bank, I successfully mirrored and started to assemble the functionalities of my webservice. With that, I came across the following mistake:…
-
1
votes0
answers10
viewsHow to create user routes . Netcore
I need to create a sales site and each user will have their own "site" would be something like meusistema.com.br/username What is the best way to do this using . Netcore?
-
1
votes1
answer618
viewsPass two parameters - ASP.NET CORE
I need to pass two parameters to a page, when I’m trying to pass one, I do it this way: <a asp-page="/ContaReceber/Edit" asp-route-id="@item.Id;" class="btn btn-sm…
-
1
votes1
answer86
viewsError sending a route to the same api/Controller/Action in a Webapi
I’m having the following error, I perform the following operation: // POST: api/Funcionario/AddFuncionario [HttpPost("AddFuncionario")] public IActionResult AddFuncionario([FromBody] Funcionario…
-
1
votes2
answers275
viewsHow to access the database directly from my model class in an ASP.NET Core project?
In ASP.NET Core Mvc I can access Dbcontext in the Controller through the property _context represented by my class MvcNotaContext see: private readonly MvcNotaContext _context; This way I can…
-
1
votes1
answer122
viewsHow to instantiate a part of a class with Entityframework working with CRUD only on these data
I am creating a solution for the web in the Singlepageaplication (SPA) type made with Aspnetcore and I use the Entity Framework to make my CRUD in the SQL Server database. I am sure that the Entity…
-
1
votes2
answers1243
viewsReceive images in ASP.Net Core and save to Entity Framework
Good afternoon, Can anyone tell me how to get an image on ASP.Net Core ? I have the html page that tries to send to the server: <form method="post" enctype="multipart/form-data"…
-
1
votes0
answers211
viewsHow to check customer validation on in an ASP.NET Core MVC 2.0 application to recognize EN standard
I’m having trouble setting up client-side validation gift my app. I’d like customer validation by using jquery.validate.unobstrusive, accept numbers and dates located in. I have already made this…