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

3
answers

Error when consuming an api web service from angular $ http.post? [duplicate]

The error is as follows This is my POST method in the Web Api // POST api/values [HttpPost] public string Post(Persona persona) { return "response: \"Suscrito\""; } and this is my angular code. $http.post('http://localhos...
asked by 12.03.2017 / 22:56
1
answer

Error "FileNotFoundException" when sending parameters with HttpURLConnection

I have my ASP.NET Web Api service where I make a simple login, which I tried with Postman (from Google Chrome) and it returns the data correctly but in Android I get the error back:    java.io.FileNotFoundException AsynTask: private c...
asked by 10.03.2017 / 19:54
0
answers

How to upload images to a slider with ajax jquery while uploading other images to the database at the same time?

Some idea of how to upload images in a slider with Ajax jQuery making several requests to the Database (I'm going to use the .Net Web API and the requests to the database will be done every 2 minutes) when at the same time from another client ar...
asked by 29.01.2017 / 01:42
1
answer

Problem with Web service Api c #

Hi, I have a problem with the service, I have it published in a folder on GoDaddy on a Windows server, but it is not very clear the error, if you could help me, thank you very much.     
asked by 19.01.2017 / 23:36
1
answer

The 'Access-Control-Allow-Origin' header contains multiple values

I am working with ASP.NET WEB Api, and I am using the Token generation, in Internet Explorer I generate the Token chain: but using any other browser shows me the following error ... AJAX Code: function ObtenerToken(user, pass...
asked by 23.12.2016 / 18:29
0
answers

Get web toi api / asp from java / android

Hello wrote a web api in C # to authenticate, using postman sent the parameters and returns the token correctly, I will leave at the end of post the parameters for testing, and searched for a number of code to bring para...
asked by 05.01.2017 / 17:04
1
answer

Error consuming WebApi in C #

I have exposed a WebAPI developed with C# but when consuming the URL https://myServer.mx/webApiRestSyncService/api/Clients I have the error    HTTP / 1.1 415 Unsupported Media Type How can I fix it?     
asked by 02.12.2016 / 18:10