How to bind to a web api model when the request body includes escape characters?
I have an endpoint that looks like:
I have an endpoint that looks like:
I am going to work with Dependency Injection for a ASP.NET Web API project.
Having problem on my web api “Cannot implicity convert type IQueryable<> to Generic.List”. I’m getting the data from Entity Framework.
When I put ToList() it return this error: System.Collections.Generic.List’ to ‘System.Collections.Generic.IList<LM_WebApi.Controllers.Items>
I am in need to add some security headers to my new ASP.NET Core 3.1 Web API. In MVC and webform I used to do with below codes in web.config file:
The specified type member ‘Date’ is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported
I’m working on a web service using ASP.NET MVC’s new WebAPI that will serve up binary files, mostly .cab and .exe files.
I realize session and REST don’t exactly go hand in hand but is it not possible to access session state using the new Web API? HttpContext.Current.Session is always null.
What should be the HttpClient lifetime of a WebAPI client?
Is it better to have one instance of the HttpClient for multiple calls?
I wrote REST service using ASP.NET Web API.
I’m trying to send HttpDelete request, however I get the following error:
I recently upgraded from Visual Studio 2010 to the Visual Studio 2012 RC. The installer also installs IIS 8 Express which Visual Studio now uses as the default web server.