Quantcast
Channel: Web API
Browsing all 4850 articles
Browse latest View live

Building new application

Hello, I`m new to ASP and i`m trying to build an application to do the following:When submit contracts to an backoffice (rest api). These contracts have an unique order id. I want my own app that acts...

View Article


WEB API: JSON serialization fails if value in Datatable is NULL

Hi,I'm developing a REST API (web api) using asp.net in VisualStudio 2013 framework 4.0.In my controller I'm simply returning a datatable and was hoping that the data would be returned nicely in JSON...

View Article


Microsoft.AspNet.WebApi.Client reference conflicts

So I'm using one of my dlls which references Microsoft.AspNet.WebApi.Client version 5.2.3And it seems this library is somehow referencing an old version of System.Core (the one from framework 2.0) and...

View Article

WebApi configuration issue.

Hi All,We have a class library project with as you'd expect a bunch of classes with methods. One of the classes I have set it to inherit from the ApiController class. For now I have made a simple...

View Article

ASP.NET C# Object fail to serialize

I have this class which is a hierarchy of the same object:public class TipoDeImovel{ public TipoDeImovel(){ this.alertaPara = new HashSet<Alerta>(); } public int ID { get; set; } public string...

View Article


Invalid object name 'GEO.AspNetUsers'

I developed the WEB API and a login page by VS2013, the database used by the WEB API is on the Azure cloud, i run the WEB API and login page direct from the VS2013 on my laptop, and they can work quite...

View Article

How to serialize a nested JSON object ?

Hi All,I am new to JSON. I am trying to call a web API that is expecting an object that will model this JSON object {"assignment_scores": {"assignment_score": [ {"student": { "id": "31988"...

View Article

ASP.NET Web API calling unmanaged Dll hanging

Hi all, I'm trying to dynamically call unmanaged C++ Dll from within my Web API. For this reason, I created 2 Controller Action:(1) One is starting the dll: It uses the LoadLibrary to load the dll, and...

View Article


Problem with RegisterExternal Method in the Web API

We are using standard Web API template which comes with Visual Studio 2015 .The below line always returns null.var info = await Authentication.GetExternalLoginInfoAsync();Running the UserInfo API, it...

View Article


Get Request Post body from web api method

I am trying to get the raw http request (headers and body or just body by itself will be ok) within a web api method, I have this code : byte[] request = await...

View Article

nomenclature question re type of JSON returned

Working by myself I sometimes get lost in what most developers recognise as common terminology. Having studied a number of examples of the varying structures of JavaScript objects, I am at a lost as to...

View Article

Web service method fail when reportedly called. (When load testing)

We are load testing a Web APIIn the load test we are calling a Web API method repeatedly which calls a web method of another web service. Even with a fewer users (50 user) it give an error message. The...

View Article

block some property when $expand

hi all ,simple question, my project have a simple Role based access control (RBAC), so i don want everyone can easy to $expand resource.but as i known, Web API can only set...

View Article


Decimal format is getting changed while getting the data from API

Hi,I have a class with decimal and other data types.it looks fine when i check the json data in web browser.Decimal datatype is getting changed after downloading the data from API to my desktop...

View Article

Web API OWIN Host - Limit Request Size

Hi,I have an OWIN self host in an Azure worker role.  My code to host follows the tutorial:http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-apiI would like to be...

View Article


Web Api service on website

Hello,I am new to web api aplications. I have made a new web api service and on localhost it works just fine and returns json on link:http://localhost:1996/api/controller/but when i deploy it on my...

View Article

Login using facebook,twitter,gmail in my web app

How to use facebook,twitter,gmail in my web age to login in asp.net c# 

View Article


[How to] Modify Request Content Before Controller Calling in Delegatinghandler

Hi,I have Created Web API where I have declared one Model Class for Client Request, where I have Defined the Request Parameters. During Controller Calling This Client Request Class is automatically...

View Article

Web API with post to insert data from android application

Hi GuysIm developing android application and i want to use Web API to insert data from mobile application to server. Im new in web api and i notice that web API put method passing form body array, now...

View Article

Twitter Login

How to login using Twitter  in asp.net 

View Article
Browsing all 4850 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>