Odata and relationships in excel
HiDoes some know, if excel can display relationships between OData-Tables?I need to connect fields in OData so the user in excel does not need to connect the tables.I have Products-Tabele with...
View ArticleClient -Handle HttpResponse 404,Conflct
I am creating a webApiwhile getting a response back from webApi I am getting 404 "Not Found" Response how I can handle this on my Client sidefor e.gWeb Apipublic HttpResponseMessage Get(int ID) {...
View ArticleJSon deserial doesn't work?
Hi,This is simple json data.{"high": "1142.99", "last": "1036.51", "timestamp": "1386280775", "bid": "1026.60", "volume": "54867.26024735", "low": "848.42", "ask": "1036.50"}[JsonProperty(PropertyName...
View ArticleIf condition query filter
Hello, I am using the following 'FromUri' method and but I can not get the query string URL to filter result to work properly. The following query string produces incorrect...
View ArticleMVC 4 Web Api Routing
Im a bit confused here... what is the difference between using Route, RoutePrefix vs. MapHttpRoute in your App_Start?Were Route & RoutePrefix decprecated? Route attribute seems to be more flexible...
View ArticleHow do we create route for complex parameters in web api
Hi All,Can any one please explain how do i create route for below action methods in ASP.NET web api?[HttpPost] [ActionName("UpdateRole")] public RoleResponse UpdateRole(RoleRequest roleRequest) { //...
View ArticleMobile number verifiaction api
HI,I want to create Asp.net MVC Web api for mobile number verification through sending SMS.e.g: user enters mobile number, after cliking ok he will receive a code through SMS then he will enter that...
View ArticleSuspicious Login Detected after trying to Fetch Google Contacts through...
Hi all,I'm trying to Implement 'Fetch Google Contacts' functionality in one of my module in my web app.I've my Web Application registered on Google.. I have my ClientID and all. I've evenenabled...
View ArticleWeb APIs bugs?
Hi,Could not load file or assembly 'System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition...
View ArticleWeb API (Authentication:Individual User Accounts) not work with CORS
Hi there,I create WebApi project ASP.NET Web Application -> Web API (Authentication:Individual User Accounts) nextPM> Install-Package Microsoft.AspNet.WebApi.Corsafter this I modify public...
View ArticleAsp.net Identity MVC 5 ODATA problem
I amd using Asp.net Identity got this error after referencing IdentityUser. How do i solve this issue? An exception of type 'System.InvalidOperationException' occurred in System.Web.Http.OData.dll but...
View ArticleIs there a limit to the serialized JSON response? (max-ing at 2000)
I have a linq query that has a result with 2110 records. The returned JSON from different REST ciients would only show an array of 2000 objects. I have set a higher maxJsonLength limit in...
View ArticleAttribute routing in in-memory integration tests
I'm in the process of replacing AttributeRouting with the new attribute routing feature in Web API 2When running my integration tests I get error SetUp : System.InvalidOperationException : This method...
View ArticleBinding for a DateTime properties for my Model class
I have a class with two DateTime properties:public class MyModel { ... public DateTime StartTime { get; set; } public DateTime FinishTime { get; set; } }and my client javascript posts this model...
View Article503 - Service Unavailable response in Web Api Beta
Hi, I'm running on the MVC 4 Beta bits, and I'm running into an issue.In my development environment, the Web Api framework works very well, but when I deploy to our staging environment it just returns...
View ArticleHow to check the port number of a web api deployed in IIS?
Hello, guysI created and deployed a sample web api services into IIS on remote server according this tutorial...
View ArticleMetadata for a custom OData Provider
Hello,I'm building an OData layer on top of a custom data provider using the support of the MS Web API 2 OData package in VS 2012. I've taken the approach explained in...
View ArticleThe virtual path '/' maps to another application, which is not allowed.
We are trying to consume a WCF proxy service form a Web API REST service. When we allow Visual Studio to run under the default URL likehttp://localhost:62664/everything works well. When we trying to...
View ArticleHow to download stream using Web API
We have RESTful service developed using .Net 4. The service contract is below [Description("Preview")] [WebGet(UriTemplate = "PreviewTemplate?eid={eid}&tid={tid}")] public Stream Preview(int eid,...
View Articleprofiling
how to instrument a dll refrenced by web api projectwhen I try profile it by starting web project which refers web api project I keep getting errorhttps://ccc.rr.com/webapp/ does not map to local web...
View Article