Questions tagged as 'asp.net-web-api'

1
answer

Output from my service does not match my password

In the output of my service, for the DataItems field, I have this: <DadosItens> Qtde 3 Custo 46,66Unitario 68,58 Margem 0Ult.Cond 30/01/2017 C. Diario 46,66 Total 205,73 </DadosItens> It turns out that I do not have any Label Qt...
asked by 13.09.2017 / 12:39
1
answer

Call PUT method of an App xamarin.forms

I need to update my App . I'm having some questions about passing the parameters to the URL of the service and running PUT . The service is working, testing by Postman, I can perform the Update, so it's only missing App . My difficu...
asked by 18.09.2017 / 20:24
1
answer

Good Practices in APIS Rest Full with PHP and Doctrine ORM 2

Currently we have a system that uses Doctrine ORM2, we have our Entities, and our DAOS themes, within our DAOS classes we have several methods that we use to make queries, Change, Insert and Delete Data in the database. > We've created some pr...
asked by 19.09.2017 / 13:06
0
answers

Asp.net C # DDD - Implementing Api Web

I am developing a System, with DDD structure with Simple Injector. When developing the WEB API, the data returned from the DB is null. In other tests performed in the MVC view, the same data is returned normally. The problem is in the impl...
asked by 03.09.2017 / 22:56
0
answers

Error calling route debugger

I installed the Route Debugger via NuGet: Install-Package WebApiRouteDebugger . When I run my application, and I call the route debugger ( link ), this exploits this error: But the System.Web.Optimization reference is added to the pro...
asked by 08.09.2017 / 12:03
1
answer

Save form-data in webapi C #

I have the following code in Angular 2 for a post-form method: upload(event) { let files: FileList = event.target.files; let formData = new FormData(); for (let i = 0, f; f = files[i]; i++) { formData.append('atta...
asked by 10.07.2017 / 22:18
0
answers

Update rate limits at runtime using WebApiThrottle not working

I have a WebApi in ASP.NET MVC and I need to control the access limit, moreover, I need to change the values of the bounds at run time. I have implemented this example on the WebApiThrottle site (section Update rate limits at runtime ) Thi...
asked by 27.06.2017 / 23:10
1
answer

Problems retrieving DB data with Entity 6.1.3 and Web API

I did a test project, called quotation to use the Web API and Entity. Well, I've been to my web.config and created my connection string like this: <add name="CotacaoContext" connectionString="Data Source=Minha_Maquina\Instancia; Initial Cat...
asked by 13.07.2017 / 14:09
0
answers

Access-Control-Allow-Origin in different environments

I have a very strange problem: the same code works locally and in prod, but does not work in homolog. Basically, the problem is homolog (soon at login) is this:    XMLHttpRequest can not load link . In 'Access-Control-Allow-Origin' header...
asked by 01.06.2017 / 17:28
1
answer

Newtonsoft.Json.JsonReaderException When doing a POST

I'm having trouble doing the post in my API my app until it registers the object but then it crashes the application and closes with this execution error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing va...
asked by 05.06.2017 / 00:23