OData on Excel: "The payload kind 'Value' of the given data feed is not...
Hello,I have created OData + WebApi endpoint, which returns some data, but when I try to use this endpoint from Excel I get exception "The payload kind 'Value' of the given data feed is not...
View ArticleTransactions with Web API, odata 4 using $batch
Can you create a transaction on the server when updating multiple entities?If not, what is the way to update multiple properties on multiple entities in a transaction scope? Distributed...
View ArticleError: No MediaTypeFormatter is available to read an object of type...
Hi,I am calling ASP.Net Web API in a website and it is working fine on my development computer and IIS on that. When I moved it to UAT server it is throwing below error:No MediaTypeFormatter is...
View Articlewindows authentication with login form for .NET clients
Hi,we have a simple client/server architecture, a wpf .net client requesting webapi. It will be IIS-hosted. We want to use windows authentication, so far so good.But we want to provide a login...
View ArticleOData $expand and $search
In OData 6.1 $search option and some options inside $expand option were announced: http://blogs.msdn.com/b/odatateam/archive/2014/03/21/odata-6-1-and-odata-client-6-1-are-now-shipped.aspxI'm using...
View ArticleAdding service reference for oData 4 Web api to VS Web Developer Express
Wondering if anyone knows of a way to add a service reference to Visual Web Developer 2013Express version for a Web API using the new oData 4 controllers?Have had some success using HTTP Client, and I...
View ArticleWeb Api for OData V4 doesn't Work With HasKey
I'm using web api 2.2 for odata v4, and below is the models:[Table("User")] public partial class User { public User() { UserRoles = new HashSet<UserRole>(); } [StringLength(50)] public string Id...
View ArticleIntegrating Self-Hosted OWIN WebApi into the Microsoft ASP.Net Identity...
I have several existing web sites that are making use of the Microsoft ASP.Net Identity Framework and Microsoft Owin Security for user authentication and authorization. I am in the process of creating...
View ArticleGet / store Bearer token
Hi There,I'm building a webapi as backend for mobile apps, i am using a custom OAuthAuthorizationServerProvider. Everything works fine but i wan't to store the tokens that are given to my user, but how...
View ArticleHow to use WebAPI to Print
I had already installed the printer driver, and set the default printer.But when i use webapi to print,it will display the error,something like 'you have no the printer driver'.But if i use "new...
View ArticleWeb API 2.2 - OData v3 / v4 - Untyped Custom Model / Controller
Using Custom Untyped WCF Data Service, it is possible to generate the edmx model at runtime.1. Using web api 2.2, how to generate the model at runtime, based on the url.2. how to decide the Controllers...
View Articleweb api 2.2 odata - json / xml mapping
Which methods are class / methods are called to convert the result from web api to JSON / XMLIs it possible to call those methods directly without using web api.
View ArticleWeb API External login with Facebook 'Unauthorized' problem
Hi,I am trying to call the RegisterExternal method in Web API, after having retrieved a token from facebook. But I keep getting a 401 Unauthorized from my Web API. I am not sure I am correctly...
View ArticleWeb Api oData V4 @odata.context instance name
Hi all,I am consuming a odata feed in HttpClient (.Net 4.5) and the odata context is coming through like this:"@odata.context":"http://localhost:57082/odata/$metadata#Users","value"Is there any way of...
View ArticleGet distinct records from OData Service (Similar to inner join in SQL)
Hi,I have 2 tables for e.g. Country & State, In each country there are many states. I want to ge the maximum state id data from State table corresponding to each Country. Table as...
View ArticleThe requested resource does not support http method 'DELETE'
I am out of options here, stackoverflow, google - no resultsthis is ridiqulous
View ArticleServer-to-Server Security
What is the recommended way to secure Web API services that will only be accessed from another application on a different server? No users will ever hit these services directly. They only provide...
View ArticleOData $expand and $search
In OData 6.1 $search option and some options inside $expand option were announced: http://blogs.msdn.com/b/odatateam/archive/2014/03/21/odata-6-1-and-odata-client-6-1-are-now-shipped.aspxI'm using...
View ArticleWhich TV straming API best for .Net application ?
I want to crate a website look like tv streaming, but i have not getting any best api for TV streaming in .NET application. which is best API in TV streamin, can i used own application.
View ArticleHow to create a webservice/api to get Data in C#?
One of the vendor of my company wants to post xml data in a our URL, How to create a URL in C#,asp.net so that we can accept vendor data and parse.Please help
View Article