Top "Asp.net-web-api2" questions

ASP.

Stop displaying entire stack trace in WebAPI

When an unexpected error occurs in WebAPI the user sees the entire stack trace. I believe that showing the entire …

c# .net asp.net-web-api stack-trace asp.net-web-api2
Web API 2 identity. /Token Always return 404 error

I have some problems with adopt Web API 2 Identity. In project. I add StartUp.cs Like this: using Microsoft.Owin; …

asp.net asp.net-web-api2 asp.net-identity-2
Web Api 2 Post - UrlHelper.Link must not return null

I have a basic web API 2 setup with some basic routing. Below is the default route and post for inserts. …

asp.net-web-api2
Web API self host - bind on all network interfaces

How do you make a Web API self host bind on all network interfaces? I have the below code currently. …

c# asp.net asp.net-web-api2 self-hosting
Web Api HTTPPost not accepting int

I am trying to just pass in body a int and it does not work Why do I need to …

c# asp.net-web-api asp.net-web-api2 postman asp.net-web-api-routing
Web API 2 RoutePrefix does not working

When defining a RoutePrefix at controller level, when I try to access the API class using the URL with prefix …

c# asp.net-web-api2 asp.net-web-api-routing
Dispose method in web api 2 web service

I am coding an MVC 5 internet application with a web api 2 web service. Do I need a dispose method for …

asp.net-mvc-5 asp.net-web-api2 dispose dbcontext repository-design
WebAPI HttpActionExecutedContext get controller name

I need to get the controller who triggers a filter attribute. I have the following filter: public override void OnException(…

c# asp.net-web-api asp.net-web-api2
ASP.NET Web API multiple RoutePrefix

The opensource Attribute Routing allows to have multiple route-prefixes. Why does ASP.NET Web API 2.0 does not allow to have …

asp.net-web-api2 asp.net-web-api-routing attributerouting