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
-
0
votes0
answers47
viewsArgumentexception: The 'Clientid' option must be provided
I’m uploading my application to the aws servers. When I run the application locally it works perfectly, but when I test it in the cloud I get the following error. The parameter 'Clienteid' is my key…
-
0
votes1
answer33
viewsRoute stopped working only in release version
I have software here at the company, and it worked perfectly. However, I made a small layout change and my machine works perfectly. When I publish the application, the route (/Configurations)…
-
0
votes1
answer140
viewsHtml2canvas ASP.NET Core
I am trying to add html2canvas to my ASP.NET Core web site. In the documentation, they say to use: npm install html2canvas When I execute this command, the html2canvas is installed in:…
-
0
votes1
answer1191
viewsMask with ASP.NET Core MVC
I’m doing a job for college with Asp.net core MVC, and I’m using the Entity to generate the view and queries in BD. I need to put masks in the fields such as CNPJ. I was able to search on Google how…
-
0
votes0
answers261
viewsrzc generate exited with code -2147450749
I am starting a new application and when I have buildar of this error... someone there could give me a help ? i just put a new html code. Version of dotnet: Error presented: rzc generate exited with…
-
0
votes1
answer26
viewsConvert WBMP image
Good afternoon, How to convert a wbmp image to png or jpg using Asp.net core ? I tried to use the ImageSharp, but it doesn’t seem to support wbmp.
-
0
votes1
answer89
viewsSort and sort a string
Then with the sequence sorted and ordered crescently need to exclude all characters that come after (and including) the symbol "_" (without quotation marks). Could you help me where I should start ?…
-
0
votes0
answers23
viewsHow to keep the data entered in the View when we change page and return to it
I’m trying to make an application where the user on a page has multiple multiple choice questions, he marks the radio and changes page. If he returns to the page again, these options he has marked…
-
0
votes1
answer42
viewsProblem passing information from AJAX to Controller
I have the following ajax that picks up the order code. So far I can pick up the order code, but sends as null to controller var btn = document.getElementById("btnNumeroPed"); btn.onclick = function…
-
0
votes1
answer2633
viewsC# - Get Connectionstring from Appsettings.Json of a dotnet Core MVC application from a Data Access Library
I have an application in . Net Core MVC and I do the data access part using a Dll. How to configure a Connection String according to what was configured in my appSettings.Json of the Netcore MVC…
c# asp.net-core .net-core connectionstring configurationmanagerasked 5 years, 5 months ago Arthur Gresele 1 -
0
votes1
answer667
viewsHow to take the return of a trial to know if you had any lines affected?
My question is whether there were any lines affected in the execution of this Procedure and store the result in a variable of type int. If = 0, stop the process. If > 0, proceed with the process.…
asp.net-coreasked 6 years, 7 months ago Igor Carreiro 1,917 -
0
votes1
answer53
viewsHow to create a list of objects?
Good afternoon, I’m developing a project. NET Core Razor Pages and in it I will need to create and add items in a list... these items are strings and are extracted from an XML. I’ll leave a part of…
-
0
votes0
answers49
viewsMap a Json to a Viewmodel via Automapper
I own the following Json (I’m betting just a piece of it). { "filters": {}, "competition": { "id": 2021, "area": { "id": 2072, "name": "England" }, "name": "Premier League", "code": "PL", "plan":…
-
0
votes1
answer41
viewsConfigure requestTimeout in code
I got a 502 error, and after much searching I saw that increasing the requestTimeout the problem would work. But I can only increase directly in web.config, thus adding to the line: <aspNetCore…
-
0
votes1
answer144
viewsIntegration tests using sqlite memory two api calls
I’m having trouble making an Insert call (and creating the database) after query occurs that the database is in memory the problem is that ended called the database dies. It would be interesting if…
-
0
votes1
answer162
viewsHow to pass properties of another model?
Problem: I have an index that uses a model of the type: @model IEnumerable<projeto.Models.classe1> I need to access some properties of classe 2, my classe1 being Ienumerable, how can I access…
-
0
votes1
answer86
viewsIsolate and update only one Div
It is possible to 'isolate' a Div and update only her ? Example: I have the option to change the profile photo on the user, where as soon as it is changed from the one Reload on the page in order to…
-
0
votes1
answer32
viewsJoin in four tables using LAMBDA
I’ve been banging my head for two days to join with LAMBDA on these tables. I am creating a SESSION for my user in ASP.NET Core, before passing my object to JSON, I need to JOIN these tables.…
-
0
votes1
answer31
viewsIs there an alternative to the Outputcache directive previously used on . aspx pages, to be used on . cshtml pages in . net core?
Is there an alternative to the Outputcache directive previously used on . aspx pages, to be used on . cshtml pages in Asp . net core ?
-
0
votes0
answers23
viewsReceiving null parameters Httppatch Odata V4
Salve Foks, I’m having trouble passing values to the controller using the verb Httppath controller: [EnableQuery] [HttpPatch] public async Task<Document> Patch( [FromODataUri] int key1,…
-
0
votes0
answers29
viewsError in Function Generic for Procedure Return
I am trying to make a Generic method for return of Procedure, but when picking up Datarow to make a Cast generates the following error: Unable to cast Object of type 'System.Data.Datarow' to type…
-
0
votes1
answer351
viewsError trying to open SQL connection - Server Version - System.Invalidoperationexception - Connection is closed
Hello. When trying to open a connection using the class SqlConnection of lib SqlClient my class conexao - formerly null - is as follows: That class conexao is the type SqlConnection and receives the…
-
0
votes0
answers62
viewsData Format (Dataannotations) does not work - Asp.net Core
I’m having problems with displaying a datetime format. I get the "03/12/1980 12:34:09", but only the input mask appears. How to make the date appear along with the time? Thank you :)…
-
0
votes1
answer49
viewsAJAX function does not pass output to another function
I have this function in AJAX: function SalvarHorario() { //NomeHorario var nome = $("#Nome").val(); var token = $('input[name="__RequestVerificationToken"]').val(); var tokenadr =…
-
0
votes0
answers65
viewsCalling a page on another Asp.net-core
Good morning, I have an Edit Timetable page, which works perfectly, but on this Edit page, I need to call the Horario Item Index page, I’m trying this way on the EDIT page : <div class="row">…
-
0
votes2
answers143
viewsASP Net Core - Server receives multiple GET requests repeatedly
Hello, I have a server hosted on an EC2 instance, Ubuntu Server on Amazon AWS. No one is making requests to this server, however, logs presented in Cloudwatch indicate multiple GET operations…
-
0
votes0
answers34
viewsWhy use Asp.net core DI Container in conjunction with Onconfiguring the Entity Framework?
In many projects I realize that people tend to pass the Connection string both by dependency injection and optionsBuilder in the overlay of the Onconfiguring method.... What’s the point of using…
-
0
votes0
answers175
viewsDependency injection of two or more classes implementing the same interface
The entire architecture of my system is based on addiction injection, where in my configureServices I configure the injections as follows services Addscoped(); However the need arose for me to have…
-
0
votes1
answer24
viewsError deleting - 1.9 Application Termination: Operation Delete
I am not able to remove an ID when I click... Error message appears: System.Invalidoperationexception: ː Sequence contains no Elements' Follow my code below: Institucaocontroller: using…
-
0
votes1
answer129
viewsGet Hidden value . net core
Good morning I have this Hidden that gets the value correctly: <input type="hidden" id="idHorario"/> But I need to get the Hidden in the code, how can I proceed? HorariosItens = await…
-
0
votes0
answers24
viewsMultiple requests for access to the same method
I have an application running with multiple logins using the same database for all accesses. I have had a multiple request problem, two users in different locations trigger the same request, but I…
-
0
votes0
answers42
viewsHow to control the version of the Swagger documentation in . Netcore?
I am generating a Swagger documentation from an API on. Net Core, I would like to know if it is possible through separate notations in the documentation which are the Apis of my version 1 and…
-
0
votes1
answer63
viewsDisplay an image when another image is not loaded
Hello, I’m making a web page on which images are taken from outside the server, but sometimes the image no longer exists, or the link broke, so I’d like to display another image. The code would be…
-
0
votes2
answers94
viewsCreating a foreach as a result of an Entity query
Hello, I’m trying to foreach a query result, the field I need is a string, but at the time I step into the foreach it’s being transformed into another value. I need to compare two dates, in case the…
-
0
votes0
answers37
viewsData protection against changes in Mysql
I need to protect a system’s data against database changes. It’s a system that uses financial transactions. I need a mechanism to prevent someone with access to the database from making changes to…
-
0
votes1
answer652
viewsData update in the angular refresh database
I wanted to know how I do so that every time I update the data in the database it updates the Component on the angular or refresh page, or better that the service is in real time. I’ve seen several…
angular typescript asp.net-core angular-materialasked 4 years, 9 months ago Luiz C. de Souza Javorski Jr 24 -
0
votes1
answer271
viewsHow can I "Update-Migration" vscode?
I want to use Entity Framework Core Migration but use the visual studio code. I’m trying to find a nuget extension in vscode that you can change on the command line (like a cmd), but I can’t find…
-
0
votes1
answer777
viewsPost method is not running on Postman
Creating a method POST and testing by Postman, I can’t access the Controller that POST. I haven’t implemented much yet, but I should stop at Break if, of course, it was working. Controller…
-
0
votes1
answer31
viewsMarking changed properties instead of using the traditional Update is a good practice? (Ef core)
I have chosen to use the update in this way: _context.Entry(site).State = EntityState.Unchanged; _context.Entry(site).Property(x => x.Name).IsModified = true; _context.Entry(site).Property(x…
-
0
votes1
answer63
viewsWhen injecting a controller dependency, Postman returns error
By doing it in mine Controller: [Route("api/[controller]")] public class OptOutClientController : Controller { IOptOutService _service; //Se comentar o construtor dá certo public…
-
0
votes0
answers162
viewsWhy are these errors appearing in Razor when compiling the project?
Changes made by me @model Pessoa; // já tentei module3.Models.Pessoa e todas as variacoes possiveis @{ ViewData["Title"] = "Pessoa"; } h2> @ViewData["Title"]</h2> <p>Name: @model.Nome…
-
0
votes1
answer1250
viewsConsume SOAP from a Rest in Asp.Net Core 2.0
I re-asked the question, trying to improve it for better understanding. 1) I created a WCF service, called Optoutservice.svc. In this service I have an interface and a class that implements this…
-
0
votes1
answer56
viewsReturn amount Asp.net MVC
I have a model with category, Deposit, Date, Amount, I need the Amount add all the deposit that exist in the database and returns in the View, I did the following, only it didn’t solve. public async…
-
0
votes3
answers172
viewsModal Bootstrap window does not display styles in components - Asp.net MVC
I have a problem that I haven’t been able to solve in months! I’m using a package of bootstrap and JS styles, in which they refer to my _Layout. On all pages that are rendered and inherited from the…
-
0
votes0
answers51
viewsInner Join core.net
I’m needing to make a Join Inner to load into a table, if it were without Join Inner I would do it this way: PessoasServicos = await _context.PessoasServicos .Include(m =>…
-
0
votes1
answer51
viewsSavechanges() method returns the added record id
I have in my Repositorygenerico the methods : public virtual async Task Adicionar(TEntity entity) { DbSet.Add(entity); await SaveChanges(); } public async Task<int> SaveChanges() { return…
-
0
votes0
answers717
viewsAfter Ajax Function, refresh the page
I have this function, and I would like it to work everything ok, I would like you to update the page, but it doesn’t always update, follows how I am doing: function GravarDados() { var dataInicio =…
-
0
votes1
answer113
viewsWhat is the difference [email protected] vs 'Asp-controller' next to 'Asp-action'?
I am doing a project in ASP.NET MVC and I came up with this question, The Url.Action in a 'tag' (for example in a navbar) can redirect the page passing the method and controller as parameter.…
-
0
votes0
answers172
viewsError deserving JSON: The JSON value could not be converted to System.Collections.Generic.Ienumerable
var stream = await response.Content.ReadAsStreamAsync(); var des = await JsonSerializer.DeserealizeAsync<IEnumerable<WorkingDaysDates>>(stream); [JsonProperty(PropertyName =…
-
0
votes0
answers22
viewsWhat are the positive and negative effects for command timeout 0 on string postgres connectivion?
Hello, I was constantly getting this mistake Response/Exception: An exception has been raised that is likely due to a transient failure. - System.TimeoutException: The operation has timed out. Then…
c# postgresql asp.net-core .net-core entity-framework-coreasked 4 years, 3 months ago Iago Soares 1