Basic Authentication
My manager has created web api basic authentication on the server with credentials username and password.Now, I am creating asp.net applications on my localhost machine and I am trying to create basic...
View ArticleModify Web API 2 Project from "No Authentication" to "Individual User Accounts"
Hello,I've created a Web API 2 Project and set its authentication to "No Authentication".Now, I want to change the authentication from "No Authentication" to "Individual User Accounts".How can I do...
View ArticleDelegatingHandler set per route throws StackoverflowException
when I go to the route http://localhost:port/api/customer in my browser then a Get request is executed and my delegating handler is run again and again... getting a stackoverflow exception in the...
View ArticleCache between users
Hi,I need to cache database queries between users of my EF structure.My app runs on MVC and SPA Durandal (+Breeze) but mainly I need to work with WebAPI and any basic database query caching. I can't...
View ArticleCan I Create a WebApi to an existing MVC 3 application on .NET 4.0?
I'm installed NuGet package like this, PM> Install-Package Microsoft.AspNet.WebApi -Version 4.0.20710The installation was successfully, but the Microsoft.AspNet.WebApi 4.0.20710 only write to...
View ArticleSupport for URLs as ids is required
Many entities or concepts are identified by URLs now, e.g. by Wikipedia/Wikidata/DBpedia or FreebaseBut using a URL as id with the Web API is hard work:1) Slashes in ids are not liked by Routing - but...
View ArticleComplex Json from Web API
Hi,I'm having a play around with Web API and I'm struggling to understand why the json response is a flat object whilst the XML response provides nested objects.e.g. I've created a Product Object with...
View ArticleError: NamingConvention for this server property name does not roundtrip...
I am using Breeze web API and when query data from server using this code, have an error: function getPersonCategoryPartials() { var orderBy = 'categoryName'; var personCategories; return...
View ArticleOData Exception: A recursive loop of complex types is not allowed
I expose a complex type through OData. The class is like this:public class RemoteFile { public int Id { get; set; } public string Resource { get; set; } public virtual ICollection<RemoteFile>...
View ArticleCould not find XmlDocumnet.xml
Created a VB Web APIopen the properties\compile page and checked the Generate XML documentation fileUncommented the...
View ArticleI am having two applications in one solution, one is Web API and another is...
I am having two applications in one solution, one is Web API and another is ASP.NET applications. Now how to consume Web API in ASP.NET JavaScript? (Self Host)
View ArticleASP.Net Web API as RESTful SOA
Does Microsoft intend to gear the ASP.Net Web API towards the SOA community? Is it a viable solution for building an internal Restful SOA Platform?
View ArticleUsing Web API in existing Web Form business application
Hi all,I'm working on business ASP.NET 4 Web Form app with common 3-tier architecture. Communication with database is implemented using ADO.NET.I'd like to use Web API in application. What are your...
View ArticleAdd ASP.NET Identity (User Management) to OData via Web API 2
I have an OData project that was created from Web API template (including credentials).I have an ApplicationUser:IdentityUser class.I have a TournamentContext : IdentityDbContext class.I have the...
View Articlecall from uri methods from business logic layer
I would like to know how to call from uri methods from business logic layer. This is what I have so far and I am getting few compilers error. if someone could direct to right approach/framework to...
View Articleweb api unble to upload audio files
Hi ,I have implemented api that works fine for text files but when I try to upload any audio files .I got 404 error,Thanks,Bilal Ahmed
View ArticleThinktecture.IdentityModel session tokens
I am hoping someone can help me as I have been trying to get my security to work for a couple of days now. I have simple WEBAPI project that is servicing a SenchaTouch mobile client. The project...
View ArticleHow to traverse in json?
HiI want to know how to read specific data from JSON .For example:"results" : [ {"address_components" : [ {"long_name" : "dsdsdsdi","short_name" : "sdsdi","types" : [ "locality", "politichjkal" ] },...
View Articlejson format - root element is missing
Is there a way to configure the webapi project to wrap the json data with a root element for instance, "GetProductResults" - see below{ "GetProductResults":[...
View Articletutorials on web api and windows 8 phone development
Please I am quite new to using web api as a web service for windows 8 phone app development. I would like a link that can give me videos on how to use Windows phone 8 apps to perform a CRUD on web api...
View Article