Task Unauthorized - Issue
I would like to know, how can I display error message such 'access denied' on the client-side when i press cancel from the login pop-dialog, instead the response going to the header:protected override...
View ArticleBest way to call an API via Javascript
I am working in a WEP API project with MVC5, I use entity framework with controllers for the CRUD actions, in my MVC5 project I called to the API controllers for CRUD method via javascript, but I feel...
View Articleodata unknown function cast
I have a web api project that host my models, in my .net application, when I query this :static void TitleById(MoviesService.Container container, short id) { try { MoviesService.Title title =...
View ArticleError when upgrading to WebAPI 2.1 XmlDocumentationProvider does not...
I'm following the tutorial here:http://www.asp.net/web-api/overview/releases/whats-new-in-aspnet-web-api-21#downloadI created an MVC Web Api project in Visual Studio 2012 using .NET Framework 4.5, and...
View ArticleHow do I use async Task ?
How can I make use of async Task<IQueryable> with EF as in public Task<IQueryable><Category> Get() { // this is not awaitable what todo ? return this.context.Categories; }the only...
View Articlehosting
am using somee.com for free hosting and domaini have one default domain and one addon domain my default domain is working fine but my sub domain is displaying default domain pages i hve upload aspx...
View ArticleTrying to Implement IUserRoleStore - What is UserManager doing?
I'm in a dbFirst situation and I've got the standard AspNetUser tables on my sql server. I've implemented IUserStore, IUserPasswordStore and IUserSecurityStampStore successfully on my UserStore class....
View ArticleREST web service is it possible to PUT a List
Hello,i'm doing a new REST web serviceI managed to PUT an Employee using xml format but I wanted to know if it's possible to put employee list always with XML format ?in the interface we can have...
View ArticleWeb API 2 web service using CORS works in IIS Express, but not when deployed...
I can access my Web API 2 service when I run it from VS 2013 (localhost:22532) and I have tested that CORS is working by adding/removing the [EnableCors(origins:"http://localhost:11705", headers: "*",...
View ArticleWhat difference does it make if you use put or delete vs get?
Can't you have many different routed gets, like GetDeleteEmployee returning an error message as a string if you want. Is there any advantage of using http delete? Sometimes you have to add stuff to...
View ArticleModel Properties
Hi.Just thought I would gather general opinion. When designing models for a web api, do people normally include not only foreign key Id's to related models, but also some basic information, even though...
View ArticleConvert docx to image format at run time
How can I convert docx file (with multiple pages) to image file at run time.? (in VS2005 with C#)does it require third party dll?I tried following code. It generates JPG file but it is blank. pls...
View ArticleFacebook payment API Error Code: 1151
API Error Code: 1151 API Error Description: Sorry, but this app may not be eligible to accept Facebook Credits. If this app has accepted credits before, please try again. Error Message: Invalid...
View ArticleHow pass username and password?
I am writing to seek help, how do i go about designing an API,where I have to pass customer's username and password credientials, to remote client. Then customer's from the remote client platform...
View ArticleHAL and WebApi
I am trying to integrate the HAL for my web api services.Will it be supported for web api? share the document alsoDo anyone have the samples for how to use?Is there any sample client application...
View ArticleAdding array title to Linq-to-SQL-to-JSON in Web API
Hello everyone,I am using Linq to SQL in a Web API web service to retrieve data from a database and return a JSON file.My question is actually pretty simple, but I have been through the forums and...
View ArticleError when using $expand using oData api controller
Hello,I'm experimenting with an oData endpoint in combination with entity framework. I have created the following controller class:Imports System.Net Imports System.Web.Http Imports System.Linq Imports...
View ArticleRoute aliasing with route attributes? How to do it? Bad idea?
I am looking for suggestions on a complex routing scenario.(Both on how to accomplish it if I chose to do it this way, and what you think the best practice / solution would be)As an example, I...
View ArticleWeb Api hosted in IIS - 401 Unauthorized error
I wrote Web Api, for intranet environment. Like as other applications, Web Api configured for Windows Authentication. But the error returned is:HTTP/1.1 401 Unauthorized Cache-Control: private...
View ArticleCan I use OWIN to host a Web API in a MVC application?
I know I can use the WebHost package to mount a Web API in the Global.asax, but I'm curious if I could host a Web API via OWIN instead. I'm sure I've done this or seen this before, but I cannot sort...
View Article