How to make a web api method an async method
I am new to Web API. I have wrote a web api method which calls a HttpWebRequest. I access this web api method through Jquery ajax async call. Problem is that, jquery ajax call doesn't wait for the...
View ArticleWhy GrantRefreshToken is not called when i send refresh token ?
When i send request to Oauth2 Server (refresh token ) , i can't get new refresh token , because GrantRefreshToken methos is not called.
View ArticleASP MVC Routes vs webAPI Routes
Hi,I have a webAPI where in the RouteConfig RegisterRoutes I haveroutes.MapRoute ....defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }In WebApiConfig...
View ArticleError while using AspNet.Identity.EntityFramework (Owin/Katana): The...
Hi,I followed all the articles in a series to develop a web api + owin-katana + identity application as described...
View ArticleOData: filter main table based upon a field in a subtable
I"m not sure if you have to expand to do this or not, but I have table A that has table C under it. I'd like to query and get any instances of A where the C table field abc equals '123'I've tried...
View ArticleGlobal.asax and Application_start don't seem to be firing and executing code
It doesn't seem to be working on IIS Express or local IIS. If it was firing, then I wouldn't have the Unity issue of the object not there when trying to do Dependency Injection for an object in the...
View Articleproblem adding route
hi I have controller and i should have multiple get calls there. That's why i need to add different routes: public class bbbController : ApiController { [HttpGet] [Route("ccc")] public...
View ArticleHow to get custom header value?
Hi, I have a controller and I'd like to get something from the headers, a custom value like X-ABC. How do I read this value in the controller? public class bbb : ApiController { [HttpGet]...
View ArticleUsing IQueryable in Web API 2
I am trying to maximize the efficiency of my web api controllers and have read that using IQueryable provides a benefit in skip/take Linq calls by executing the filter on the server, rather than...
View ArticleGetting 401 Unauthorised error while consuming web api from Console application.
While consuming web api from fiddler, its working.And while consuming web api from console application, getting 401 Unauthorised error.Can any one help me for resoving the issue.
View ArticleAPI client server issue
Hello,There is is WebAPI developed using WebAPI2 and running on my client server. It was developed using VS2015 using c# language. On my client server they completely stopped the TLS 1.0, TLS 1.1. They...
View ArticleFew questions about web api versioning in core
just read a article on web api core versioning from this url http://www.c-sharpcorner.com/article/asp-net-core-api-versioning-in-simple-words-update-1-2-0/i have few question about [ApiVersion("2.0")]...
View ArticleUsing ASP.net identity for authentication and authorization in Web API.
I have read a lot of articles and forum threads regarding asp.net identity. I have understood that ASP.net Identity is the integrated form of WIF, in the latest .NET version. I would like to...
View ArticleWeb Api deployed to Azure (end points)
I am trying to support a web api that a developer before me deployed to Azure and I need help with endpoints?I had to redeploy the api through visual studio and it seems that the previous link the user...
View Articleqestions about winform and web api
I have got a project that I need to get data from customer and use it in my winform. Here is my idea:I could right a web api project for customer and publish it on customer's server, that could get...
View ArticleAdd text above image openXML
Hey guys,I see less documentation related to this topic, i am using delopment tool to archieve some results, but it is not helping me in this case, i need to have a text above a image.At the moment in...
View ArticleComparing different options for securing an api
I'm looking at changing a few different web api applications that currently run on our domain to use something other than windows auth. Of the options Im looking at, I think I favor the 1st. The...
View ArticleSelf Host Web Api And Ninect
How do you access the Configuration in SelfHost so as to access the DependencyResolver to in turn get a service from Ninject.In a typical Web Api you use...
View ArticleSwapping out a SOAP-based web service
I'm working on a project for creating a web service to replace a third-party web service. The service is called from a client application using a SOAP WSDL. Ideally, I would like to avoid modifying...
View ArticleASP.NET Core Multiple Authentication - AAD and ADFS
Hi,I am trying to create one ASP.NET Core API with multiple authentication options based on customers preferences.I found online articles on authenticating with AAD (Azure Active Directory) but none...
View Article