beginner web api => Get => 500 error ?
Hi all,At the moment i read a book about jquery 2 and asp net and i'm trying to do the sample inside this book.(book => beginning jquery 2 for asp net developers ..)In chapter 8, he talk about...
View ArticlePosting object from angularjs to web api. Object is empty
Hi, I was wondering if anyone could help. I am posting data from angularjs to web api. When I look in fiddler there is data there but when I enter the web api method the object is there but none of the...
View ArticleController to receive binary data
I am trying to understand what I would need on the backend to receive binary files uploaded from an html frontend that uses Angular framework. The UI will be sending a file and a short description....
View ArticleWhat is best step-by-step way to building Web API 2 using custom...
Hi,I would like to create a Web API 2 that consume by NFC POS terminal and administrator web app panel as shown below.My questions:1) What is the best design (not too complicated) creating this project...
View ArticleSelf hosting and 404.0 - Not Found
Hi!I'm testing a self hosted web api, but cannot get the routing to the controllers to work. I'm using Ms Owin 3.0.1 and .NET 4.5 and I cannot figure out what is wrong.The following code giver the 404...
View ArticleWeb Api Routing
I needs some help with Routing, I have the below put statement header:public void Put(string name, [FromBody]value v)When I attempt to run the above function in the specific controller, it tells me...
View ArticleAPIExplorer and complex type binding
APIExplorer class does not bind [FromUri] complex parameter to URI Querys string.ex. if i am passing array of string as a parameter in querystring and in my action method i have parameter is of type...
View Articleself hosting web.api inside windows service keeps losing routing
I have a windows service that does a series of chores (powered by a timer) every few minutes. I added web.api so I could report its status out of and send commands into the service. I'm using URL...
View ArticleBreaking change in Microsoft.AspNet.OData (5.6.0 => 5.7.0)?
Hello,we are currently using the Package Microsoft.AspNet.OData 5.6.0 in a project. The Odata service has been setup according to...
View Articlequeries regarding web api
HiI have created a method Save, which calls a stored procedure. The purpose of stored procedure is to insert value in a table.1 - Is this signature fine?[HttpPost] public bool Save(string userName,...
View ArticleThread not completing after installation of Web API hosted on Windows service
Hi Everyone,I have one windows service that i want to print HTML files. So far in debug mode service is able to print the HTML document but when installed the same service print operation would not...
View ArticleUsing Web API for database operations
Hi,My project architecture is like thisMVC web app -- > BAL Layer -- > WEB API 2 --> Data Layer -- > Databaseand i have view model as a separate class library which is used in first three...
View ArticleUse webAPI under web application
Hi,I have web application, and i want to push web-API dll that i can use new services.Any solutions?thanks,
View ArticleWeb API 2.0 "405 method not allowed" frustration
Hi guys.I'm experiencing the wierdest thing I've ever seen.I have a simplest possible Web API 2.0 service. Here's its code:WebApiConfig class contents:public static void Register(HttpConfiguration...
View ArticleMicrophone registers and discovers Web APIs and REST services with Consul
i got it from this url http://www.hanselman.com/blog/NuGetPackageOfTheWeekMicrophoneRegistersAndDiscoversWebAPIsAndRESTServicesWithConsul.aspxbut just do not understand what is it ?what is relation...
View ArticleBest way to publish Database as OData V4 end point (like WCF Data Service)...
The Background :I have a database that is already build and I need to publish database as OData v4 Endpoint WCF Data Service is perfect candidate for this but it does`t support OData V4 as of now.Next...
View ArticleOData Deep Insert - Response
When my OData service ASP.NET WebAPI 2.2 handles a Deep Insert request it processes the insertion perfectly. The master and linked entities all update appropriately. However, when the service...
View ArticleHow to assign Role to user on ASP.NET 4.5 MVC app
I created MVC web app using ASP.NET 4.5 Templates. In Web.config, I changed the SQL Connection string to point my existing SQL Server database.I run the project and created necessary tables into my SQL...
View ArticleConsuming Web API from an AJAX Call
Hi,I'm trying to call a Web API through an AJAX call and I'm getting an error. I'm not sure what i'm missing but it seems to me that the web API is Okay.WebAPI [Route("User/Profile")] [HttpGet]...
View ArticleHow to add WEB API 2 into my MVC 4.5 solution?
Hi,I already created my MVC 4.5 solution. Used Microsoft Identity with my existing Sql Server database. Now I want to add Web Api 2 into my project. My question is should I add seperate WEB API 2 into...
View Article