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

1
answer

Problems accessing an api web in a Xamarin Forms project

In my first screen of my app mobile I'm doing is the Login screen, however whenever I try to log the return it is    StatusCode: 404,       ReasonPhrase: 'Not Found' I have already confirmed and uri is correct, access via...
asked by 13.01.2017 / 12:19
0
answers

How to customize the message / return code Http of an expired / invalid token in Web Api 2 + Owin?

When my token expires and becomes invalid, I get a 404 (Not found) error return, but the truth is that it should be a 401 (Unauthorized). The problem is that I do not know how to customize this. I'm using Asp.Net Web Api 2 with Owin. public cl...
asked by 01.02.2017 / 21:44
0
answers

POST Method Web API returns 'NULL'?

I am developing an Api Web with ASP with VB.NET to receive JSON parameters and I created a post method with the following code. Public Function PostValue(<FromBody()> ByVal value As String) As String return value End Fu...
asked by 21.01.2017 / 13:47
0
answers

Api Web Calls 2

Well, I have a rather boring task which is the captchas handling, I make a get request by sending as a parameter a code I want to access, my API opens the page with Webdriver, maps and takes the url of the captcha image. I take this captcha to A...
asked by 05.12.2016 / 17:48
1
answer

How to make interaction from WEB application to client machines

I have a WEB application in ASP.NET MVC which is an intranet project. I would like to add some functionality in it to make it easier to work with Backup's. I already have a WIDNOWSFORMS APPLICATION that executes user-aware backu...
asked by 07.10.2016 / 23:29
1
answer

Xamarin - Accessing API that returns JSON

Next, I'm VERY new to this API issue. I created my first web application .net Framework 4.5.2. I created it pretty standard even (according to VS 2015), and I created a test controller "TestController.cs", I tested it locally and it works, I u...
asked by 05.09.2016 / 19:28
1
answer

How to create web.api project MVC 4 instead of MVC 5

I have a problem when creating my project in VS 2015, whenever I create the web.api application it creates with the version of MVC 5, but I need it to be MVC 4 because of hosting. Downgrade version does not work, VS does not downgrade all refere...
asked by 11.10.2016 / 02:40
2
answers

Send object from AngularJs to C # API POST

I am not able to save the data registered in a form in the SQL Server database. The structure is as follows: The class: public partial class EMPRESAS_PARTICIPANTES { public int ID { get; set; } public int ID_AUX { get; set; }...
asked by 29.06.2016 / 13:51
0
answers

entering data in web api

I have a SPA application and it consumes a REST API done in ASP.NET WebAPI. When trying to perform an insert in the API, the following error is returned:    Response for preflight has invalid HTTP status code 405 In web.config...
asked by 21.06.2016 / 04:59
0
answers

Enable CORS in the request header

Someone knows if you can enable CORS in the ajax request header without having to do anything on the API server, similar to what POSTMAN does. With POSTMAN you test the API and it works fine, when it goes to the CORS error front application, the...
asked by 08.04.2016 / 15:33