The 'ObjectContent`1' type failed to serialize the response body for content...
Hii have add new web api controller and work with EF v6.1.3 Code First from Database, and when i try to get all customers with: public IQueryable<Customer> GetCustomer() { return db.Customer;...
View ArticleASP.NET Web API Auto help page
i do it follow http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/creating-api-help-pageswhen i run my project in vs2012,it run success,but when i release it in iis,it...
View Articlehow to have a get method to find record by email instead of id
Hihow to have a get method to find record by email instead of id?if this is the get method by id, how can we design another one that looks into the email column instead of the id column. // GET:...
View ArticleXml parser copyright
Say... If a company has created their own xml format, say ... VICXml. And many of their clients use this to communicate data over the web. If I created a parser tool which help parsing the data, is it...
View ArticleWebApi oauth from latest template not completing processing after successful...
Using the latest Visual Studio WebApi template with Individual accounts enabled I have configured 3 external providers - twitter, facebook & google for oauth authenticaton. All three are getting to...
View Articlefew basic question about web api
1) why a web api url look like http://localhost:1240/api/productwhy api is there in url? can we omit or give other name to api?2) web api get method is secured.......if not then how to secure get...
View ArticleWeb api cors preflight option request returns 200 ok, but doesn't continues...
I add cors to my web api application, here's my code: [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false)] public class CorsPolicyAttribute : System.Attribute,...
View ArticleWeb Api 2 RegesterExternal returning Internal Server Error
I am having trouble implementing external logins in Web Api 2.I have tried to implement this using the default templates in VS 2013 Community and VS 2015 CTP. The only change I make is uncomment the...
View ArticleTransactionScope integration with Web API
hi,We are migrating an existing web-services application to Web API. The existing solution is using TransactionScope (on top of Oracle DB), for transaction consistency.We would like to use the same...
View ArticleJavaScript authentication/authorization to WebApi 2
Hi,I want to develop a lightweight html, css, js (with bootstrap, jquery and knockoutjs) client that accesses Web Api (REST services) with Active Directory authentication/authorization. I found the...
View ArticleWeb API 2 OAuth - GetExternalLoginInfoAsync always return null
Hi, I have VS2013 Update 2 - Web API 2 OAuth problem. follow step:1. Visual Studio 2013 is Update 2, New Web API Project, Click Change Authentication, Select Individual User Accounts.2. In...
View ArticleEnum deserialization errors ignored
Our project is using Web API 2. While deserializing an incoming message, it is ignoring an invalid enum value.For example, if our class has an enum property like this: public StatusEnum? Status { get;...
View ArticleOData Client Code Generator, create and update containment entities
Software used:ASP.NET Web API 2.2 OData v4.0 OData Client for .NET (v 6.11) I have created an OData endpoint by following this tutorial:The client app uses the OData Client Code Generator for reading...
View ArticleHow to use ODataQueryOptions in case of TypeLess (UnTyped) object in ASP.NET...
I have been referring Asp.net WebApi 2.2 support for OData. It is very interesting where WebApi handles lot of OData V4 protocol related things.I need to implement an Odata service where I dont have...
View ArticleHelp on "Using Web API 2 with Entity Framework 6" Tutorial
Hello all,I'm at step "8.Display Item Details" -> http://www.asp.net/web-api/overview/data/using-web-api-with-entity-framework/part-8and after running the application , when I click in "Details",...
View ArticleHow can I customize this error message?
Hello,I extended System.Web.Http.AuthorizeAttribute, and provided implementation of IsAuthorized method.When the authorization failed, the error message I got is {"message":"Authorization has been...
View Articleconsidering ways to connect ajax call to server
hello.asp.net.4.5 web-form, application.using the built in membership provider form authentication (without SSL).after authentication success the user redirect to a aspx page that run Angular...
View ArticleBasic POST doesn't work.
Hello.I have started using the ASP.NET MVC API, and for some reason i cant get it to work.I am trying to post an http.post to my default api/values (see code below), and for some reason it doesn't work...
View Articleasp.net apicontroller - PUT method not firing
Hi, I am having difficulties to run my MVC application on Windows 8 and IIS 8. Whenever I try to call a MVC PUT method the browser UI hangs. The GET method works fine. The network tab in IE developer...
View ArticleWeb API OWIN self Host - Limit MaxConcurrentRequests
Hi,I have an OWIN self host. My code to host follows the tutorial:http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-apiI would like to be able to configure the HTTP...
View Article