Most voted "asp.net-core-web-api" questions
24 questions
Sort by count of
-
3
votes1
answer94
viewsGrouping of values
I have an application that generates the following results: I would like to know how I can arrange the object in only 1 line, say have only one date, and within the date have the schedules, to have…
-
3
votes1
answer102
viewsCORS blocking . netCore 3
Good morning, I created an API on. netCore 3 and I did all the tests enabling CORS and with POSTMAN I had no problems, but when trying to access API from another computer, I am being blocked by…
-
2
votes1
answer772
viewsPaging library for . Net Core
I’ve worked on some frameworks like Spring and Nestjs, and there I worked with a library that listed a query page. Here at . Net Core, I have to create a method to work with it. For example: public…
-
1
votes0
answers563
viewsSet Fixed Port for Projected Web API Asp.net Core C#
I would like to know how to set up a standard fixed port for my Web API application on Asp.net core.
c# asp.net-mvc asp.net asp.net-core asp.net-core-web-apiasked 6 years, 3 months ago Nicola Bogar 123 -
1
votes1
answer635
viewsType 'http://www.portalfiscal.inf.br/nfe:Tnfe' is not declared
Good morning, usually I avoid to the maximum to ask questions here in the forum because I always find many answers that supply my situation. I am doing an integration with Sefaz, using Ws Nfe 4.00…
-
1
votes2
answers294
viewsHttpinterceptor null token (Angular 7)
Hello! Time to "pick up" the token on Httpinterceptor is coming as null. follow code d Interceptor: import { Injectable } from '@angular/core'; import { HttpRequest, HttpHandler, HttpEvent,…
-
1
votes1
answer379
viewsHow to "read" return messages ASP.NET CORE WEB API
I see here numerous questions about how to create custom feedback in a WEB API using ASP.NET Core. My question, besides this is the client side, how this message can be read in the application that…
-
1
votes2
answers87
viewsHow to get a return from a Webapi Exception?
I have the following method that makes a request for Delete to my WebApi: [HttpPost] public async Task<IActionResult> Delete(int id, IFormCollection frmCollection) { HttpClient httpClient =…
-
1
votes1
answer44
viewsDoubt on authentication/authorization based on access profiles with Webapi Asp.Net Core MVC
I have here a Windows Forms + Sybase application that has an authentication scheme based on access profiles. The diagram of the database is as follows: On the table Permission we have descriptions…
-
0
votes2
answers224
viewsException treatment not working
Hello, I am studying C# and I was trying to do exception treatment using middleware, to send the message and the exception code to the client, but it is not working very well. Debugging, breakpoint…
-
0
votes0
answers19
viewsWebapi the same backoffice Model
Hello, I am developing a Webapi layer for an angular Front. I want to access the backoffice tables and I don’t want to create tables for the Webapi. My BO project c/os Models and Data, follow here:…
asp.net-core-web-apiasked 5 years, 7 months ago Luís Pires 1 -
0
votes0
answers46
viewsWeb Api - Is it wrong to get a related object like this?
I started developing with Web Api (Asp.net Core) and I have a doubt about this right or wrong what I am doing... I have two classes in 1 to N: The Department class: public class Department { public…
c# web-service asp.net-web-api asp.net-core asp.net-core-web-apiasked 5 years, 8 months ago Márcio Sebastião 769 -
0
votes0
answers370
viewsConfigure Startup.Cs in Asp.Net Core
Hello, I am unable to configure my Startup.Cs to run my application in . Net Core. The following error is being executed: An error occurred while Starting the application. Invalidoperationexception:…
-
0
votes1
answer447
viewsImplement permissions on a REST API Asp.net core 2.0
I am implementing an API in ASP.NET Core 2.0 in which I need to implement permissions, but the forms I found (Roles, Claims, Policies) left me very confused, because the permissions structure I need…
-
0
votes1
answer435
viewsSearch mongodb by text?
I want to create a search in the items I am listing, I want to filter according to what user pass in a field type google.com click search and return the results that contain that text, but I want…
-
0
votes1
answer867
viewsHow to have more than one GET request?
I want to be able to fetch my items by name and this function is also a get request only it already has other requests Get wanted to understand how to get as many as I want I understand the program…
-
0
votes1
answer544
viewsUpload files and other data from Angular 7 app to Asp Core Web Api 2.1.1
I’m having a problem uploading files using Angular 7 to API written in c# Asp Core 2.1. Searching the web I found several examples uploading the file only, but I need to upload the file and in the…
asp.net-core file-upload angular-7 asp.net-core-web-apiasked 5 years, 6 months ago Ricardo Alves 484 -
0
votes2
answers607
viewsError add-Migration . net core 3
I am trying to add the add-Migration in my solution but always happens the following error "Value cannot be null (Parameter 'connectionString')" but my connection string is correct in…
asp.net-mvc postgresql asp.net-core asp.net-web-api asp.net-core-web-apiasked 5 years, 1 month ago Diego Wenndson Souza 3 -
0
votes1
answer542
viewsUpload/Download large files with ASP.NET Core 2.2
I need to upload and downlods files above 2GB using ASP.NET Core 2.2, but I don’t know the best way to do this. For the download, to using the following method: [HttpGet("id")] public IActionResult…
-
0
votes0
answers15
viewsValidation of Google User Token in the back end
I’m facing a problem and I’ve already lost hours on forums and on google certification, but I can’t find the solution. I have the following scenario: A front-end that is from a third company logs in…
-
-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
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
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…
-
-3
votes1
answer151
viewsHow to pass a url variable in web api that contains / or a question mark?
I am developing an api in . net core and noticed that in the url if I want to pass for example https://localhost:44365/api/values/test=?/ or https://localhost:44365/api/values/test=// An error…