Quantcast
Channel: Web API
Browsing all 4850 articles
Browse latest View live

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 Article


Why 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 Article


ASP 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 Article

Error 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 Article

OData: 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 Article


Global.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 Article

problem 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 Article

How 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 Article


Using 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 Article


Getting 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 Article

API 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 Article

Few 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 Article

Using 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 Article


Web 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 Article

qestions 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 Article


Add 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 Article

Comparing 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 Article


Self 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 Article

Swapping 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 Article

ASP.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
Browsing all 4850 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>