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

1
answer

C # Injection of dependencies in UnitTestProject

Good morning. I am setting up a test project to test a webapi (for now only the controllers). This uses Unity for the dependency injection. For this, in my test project I have included the Unity 4.0.1 library and I have made the following cha...
asked by 29.08.2017 / 10:00
2
answers

error code 400 with Volley when sending data with basic Authorization

I'm trying to send data to a WepApi service, specifically to a POST method. The method I use to send the data is: private void enviaDatos() { EditText txtAsunto = (EditText) viewPrincipal.findViewById(R.id.asunto); // Store values...
asked by 30.05.2017 / 17:12
1
answer

Web API in ASP.NET with OData - Problem in the view

I have a Web API in ASP.NET with OData and I can consume without problems of the service, but I can not get the view to print A table. I'm starting with .NET and with MVC . Model: namespace exchange_rates { using System; us...
asked by 20.03.2017 / 12:34
1
answer

Error in parameters

I have the following query, I have to show the records in a gridview but this error marks me, "The input string does not have the correct format." I have parameters in string and an integer App_Data.DataSet1TableAdapters.PS_USR_ConsultaExte...
asked by 06.12.2016 / 20:14
0
answers

How to get an authentication token, just by sending the userName (Active Directory)

I have my code that generates the apiToken, but this requires a userName and password, it works correctly if the correct data is sent, what I want to achieve is that I generate that token but only with the user of the active directory, because o...
asked by 21.11.2016 / 14:39
1
answer

called webapi sending input type files="file"

Good afternoon, I have the following block of code: @using (Html.BeginForm("Upload", "Orders", FormMethod.Post, new { enctype = "multipart/form-data" })) { <input type="file" name="attach" id="attach" multiple /> <...
asked by 20.09.2016 / 17:12
1
answer

Profiling in azure webapp?

We have developed a WebApi platform which is hosted on Azure, and using MongoDB as a database. Before release, we did several load tests and it supports up to 11000 requests per second, and right now we have an average load of around 200 requ...
asked by 02.08.2016 / 15:31
2
answers

Show message "no results" in gridview

How can I display a message so that when I search in a datagridview if there are no results the message is displayed.     
asked by 09.12.2016 / 22:20
1
answer

Driver with two post methods in a web api

I'm doing an api web service with c #. In a controller I need to have two post methods. Right now, I have something like this. public class TramitesController : ApiController { [ResponseType(typeof(Tramite))] [BasicAut...
asked by 09.01.2018 / 19:59
1
answer

Cut in several parts string of characters C # asp.net

Good evening. How can I convert the following string: "image / jpg, image / jpeg, application / pdf" in the following: ".jpg, .pdf, .zip" Also taking into account that the first chain can include more extensions. Thank you.     
asked by 08.11.2017 / 02:51