Top "Asp.net-web-api2" questions

ASP.

The route template separator character '/' cannot appear consecutively - Attribute routing issue

The configuration has nothing to do with the error This is my configuration for the Web API in App_Start/…

c# asp.net .net asp.net-web-api asp.net-web-api2
How to integrate Autofac with WepApi 2 and Owin?

I am using this package to integrate Autofac with my WebApi Owin application: https://www.nuget.org/packages/Autofac.WebApi2.…

c# asp.net-mvc-5 autofac owin asp.net-web-api2
Creating Custom AuthorizeAttribute in Web API (.Net Framework)

I'm using OAuth2.0 Owin (password grant) in my WebAPI.My initial token Response is like below { "access_token": "_ramSlQYasdsRTWEWew.....................", "token_…

c# oauth-2.0 asp.net-web-api2 authorize-attribute
UseOAuthBearerTokens vs UseOAuthBearerAuthentication

In our Startup class, I have configured the following auth server options: OAuthAuthorizationServerOptions OAuthServerOptions = new OAuthAuthorizationServerOptions() { AllowInsecureHttp = true, TokenEndpointPath = new …

asp.net-identity asp.net-web-api2 owin asp.net-identity-2 katana
Web API 2 OWIN Bearer Token purpose of cookie?

I am trying to understand the new OWIN Bearer Token authentication process in the Single Page App template in MVC 5. …

asp.net-mvc-5 owin katana asp.net-web-api2
Web Api 2 - How to return an image (MemoryStream from Azure Storage) from a HTTPGET without saving to disk?

I'm using Web Api 2 with C# and Azure, and having issues with how to return the image (base from Memorystream) …

c# angularjs asp.net-web-api2 http-get memorystream
Always receiving 'invalid_client' error when POSTing to /Token endpoint with ASP Identity 2

About a month ago I had a project working perfectly with ASP Identity OAuth. I'd send a POST request to …

c# asp.net asp.net-web-api asp.net-identity asp.net-web-api2
Default model example in Swashbuckle (Swagger)

I'm running ASP WebAPI 2 and successfully installed Swashbuckle. I am trying to figure out how one defines what the default …

asp.net-web-api asp.net-web-api2 swagger swagger-ui
The route template cannot start with a '/' or > '~' character and it cannot contain a '?' character

I am getting the an exception with the following route attribute: [Route("{id}?action=decline")] Exception: An exception of type …

asp.net-web-api asp.net-web-api2 routeattribute
Issue with sending XML to Web Api via http Post request

I would like to send the following XML document to my Web Api 2 controller; however, the [FromBody] parameter is always …

asp.net-web-api2 webapp2