XML serialization error for typeless OData Feed
Hi, I was trying to set up an OData v3 feed with web api using the tutorial located at the following...
View ArticleResponse format from Web API 2.2 with OData 4.0
I've developed a Web API using EF6 for my data model and OData Controllers. I am using the Visual Studio wizards for creating the Entity Model and for adding Web API 2 OData Controller with actions...
View ArticleReturning a List from a Web API Call
I am developing an application that will run on a tablet/phone and use Web API calls to get and update data on the backend.I prefer to code my APIs versus using the VS dev environment (I like to have...
View ArticleHow to Return a List From a WebAPI
I am developing an application that will run on a tablet/phone and use Web API calls to get and update data on the backend.I prefer to code my APIs versus using the VS dev environment (I like to have...
View ArticleVariable number of parameters
Sorry if this is a dup, tried searching for an existing question but the site continually reported "Site is currently down for maintenance". Anyway my question is how to specify a route may takes in...
View Articlehow to return message to knockout js code like success or errors ?
Hii try to save data into list throw knockout js and everything works fine,but i need to alert user with error if there is empty textbox throw sweetalert and if success show alert by sweet alerti try...
View ArticleConversion from type 'DBNull' to type 'String' is not valid.
Using the following function in-line due to the fact that the Code-Behind is not available...<%# IIf(String.IsNullOrEmpty(GetProductInfo(Container.DataItem)), DataBinder.Eval(Container.DataItem,...
View ArticleHow do I run Background Tasks in ASP.NET Web.Api?
I'm developing an ASP.NET MVC Web Api 2 app with C# and .NET Framework 4.5.1. Sometimes, when user calls a get on an `ApiController` I have to run a task in background. The task will fill up a database...
View Articlemail is sent - but i can't get alert of confirmation i got "An asynchronous...
Hii try here to send email using "SendMailAsync" and it works mail is sent and data is saved to database,but i can't get JS alert of confirmation and when i look at inspect element i found that:An...
View ArticleIs there a way to list out what "items" are within Container.DataItem?
Subject says it all...
View ArticleUnable to call WEBAPI Service by using HttpClient.
Hi Am creating sample WebApi service. When i am trying to consume that service by using HttpClient ,am getting "Not Found" Error.Its working on GetAsync method. but not working on...
View ArticleWeb API using entity framework
I would like to developed Web API using entity framework. Database First scenario and calling stored procedures rather than linq queries. Is there any book outhere? I can't find. Or some learning...
View ArticleCapture returned Access and Refresh token in Web Api
Hi,I'am using OAuth authentication with Web Api. And for audit purpose I need to capture the returned json that contain the access_token and the refresh_token. I've tried to use a DelegationHandler but...
View ArticleChaining POST
I have 3 Web API applications.1st application does a POST call to the second application and the second application does a POST call to the 3rd application.The problem I am having is the second...
View ArticleHelp Needed in Identity
Hi,I created RestService(Web API2) with Individual account and I achieve token based authentication. Everything works fine. Her is my requirement, I wanted to capture the source details whoever calls...
View ArticleAuthorized web api call from C#
How to call a authorized web api method from C# class. My controller method is as below-public class GetActivityProjectController : ApiController { [Authorize] public...
View ArticleController Methods with same name but different signature
Hi,On adding the Web API controller based on my employees model, it sets up a get method in the controller that expects an integer as input. I understand this because id is the primary key and it...
View ArticleAccessing WebApi with HMAC authentication in C#
Hi,I am going through some problem in accessing WebApi. Secnario is on my side i need to access api's method 'GetDetails'(https://localhost/api/GetDetails) from my coding, but api is protected with...
View ArticleGetting 401 Error When Trying to Debug an ASP.Net Web API Created From Defaults
Hello all .. I am new at ASP.NET Web API and trying right now to learn it but I am encountering some problems trying to use Fiddler to debug it. The steps I took to create my ASP.Net Web API and test...
View ArticleOData WebAPI 2 Complex Authorization
We have a Web Api 2 OData v3 service which we need to implement fairly complex authorization on. We are using Breeze within our client code and when an OData v4 version of Breeze is released we are...
View Article