
Newest 'asp.net-web-api' Questions - Stack Overflow
Dec 16, 2025 · I have created a ASP.NET Core Web API app with Docker enabled just using the auto generated boilerplate code. Running on Docker on my Windows dev machine works just fine.
c# - ASP.NET Web API : Correct way to return a 401/unauthorised ...
Jul 3, 2015 · HttpResponseException is part of NuGet package Microsoft.AspNetCore.Mvc.WebApiCompatShim which provides compatibility in ASP.NET Core MVC …
Best practice to return errors in ASP.NET Web API [closed]
May 24, 2012 · Best practice to return errors in ASP.NET Web API [closed] Asked 13 years, 7 months ago Modified 7 months ago Viewed 779k times
Single controller with multiple GET methods in ASP.NET Web API
Feb 29, 2012 · The concept of multiple methods in a single asp.net web api controller makes it easier to have more than 1 method in code. I was able to implement following the steps in the above solutions …
ASP.NET Core return JSON with status code - Stack Overflow
75 With ASP.NET Core 2.0, the ideal way to return object from Web API (which is unified with MVC and uses same base class Controller) is
405 method not allowed Web API - Stack Overflow
Mar 30, 2013 · I had CORS enabled and working as long as the POST returned void (ASP.NET 4.0 - WEBAPI 1). When I tried to return a HttpResponseMessage, I started getting the HTTP 405 response.
How do I make calls to a REST API using C#? - Stack Overflow
Mar 8, 2012 · The ASP.NET Web API has replaced the WCF Web API previously mentioned. I thought I'd post an updated answer since most of these responses are from early 2012, and this thread is …
asp.net web api - What is the difference between a web API and a web ...
Oct 12, 2013 · 75 A web service typically offers a WSDL from which you can create client stubs automatically. Web Services are based on the SOAP protocol. ASP.NET Web API is a newer …
Accessing Session Using ASP.NET Web API - Stack Overflow
Mar 7, 2012 · 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.
How to specify the port an ASP.NET Core application is hosted on?
May 21, 2016 · When using WebHostBuilder in a Main entry-point, how can I specify the port it binds to? By default it uses 5000. Note that this question is specific to the new ASP.NET Core API (currently in …