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

How to debug token endpoint in WebAPI2

I don't see any code that i can set breakpoint and debug login 

View Article


ASP.NET Web API Controller output is always buffered

How to send output without buffering? I defined my API controller this way:public class DefaultController : ApiController { [HttpGet] [Route] public HttpResponseMessage Get() { var response =...

View Article


WebApi - How to restrict the call base on the certain conditions

I have a requirement to switch on/off some of the features for my application. I am using WebApi and for each feature we have separate controller/class created which contains the WebApi calls for that...

View Article

Stored procedure with entity framework

I have stored procedures inside my database. I would like to create web api methods, which will return json string for each stored procedure result and accept parameters of stored procedures from my...

View Article

WebAPI + MVC authenication using 1 db context

Hello,I'm not sure where this goes since its a  cross of 2 worlds. I have a project that has a mobile experience and consumes a WEBAPI to carry out CRUD operations on the server. The authentication all...

View Article


pass datetime string in the url

Hello :I am trying to pass, date time string in a url, but I am getting the 400: bad request error.string dte = (EffectiveDate.Replace('/', '-'));//...

View Article

Bad Request -- WCF Restful Service

Hi,I am using WCF Restful Service,(accepts payload as XML).Pay load contains few child nodes like id , description, date etcWhen i try to consume/invoke my service from client(another) machine, its...

View Article

Http client always returns 404 if I do not use a http://localhost

Hi folksHave a web api that works no problem if I call it from a browser.I wanted to use HttpClient to call it: protected async void getOrders(object sender, EventArgs e) { var client = new...

View Article


Call Https RESTful service

Hello,I created a RESTful service using C# .net and I published it out to a server to run. I am able to get the wsdl and view the methods on the service, however, when I attempt to use a web request;...

View Article


windows Auth Forgotten in API Context

I am building a web APi 2 intranet app, using Windows Authentication : Web Config is set as below : <authentication mode="Windows" /><identity...

View Article

An existing connection was forcibly closed by the remote host

Hello,I am encountering the following error."An existing connection was forcibly closed by the remote host"It is occurring as soon as I call my service from the client. I am expecting System.IO.Stream,...

View Article

WebApi oauth from latest template not completing processing after successful...

Using the latest Visual Studio WebApi template with Individual accounts enabled I have configured 3 external providers - twitter, facebook & google for oauth authenticaton. All three are getting to...

View Article

web api 500 exception

I have asp.net web api service which is called by our client.Client sends a request, it get's processed, data ends up in MS SQL. Our app logs don't catch any errors, but the call itself took 30s but...

View Article


Passing Multiple Date Parameters to Web Api2

Hello everyone and thanks for your help in advance.  I am working on an application that utilizes web api2 to perform a database search to return JSON data to a jQuery datatable.  Where I am running...

View Article

Web api CORS

  I tested CORS on my machine using Vs2013, I found Ajax can request web api hosts on localhost with different ports even though I do not enable cors,  Who knows why this happened?

View Article


OData Deep Insert - Response

When my OData service ASP.NET WebAPI 2.2 handles a Deep Insert request it processes the insertion perfectly.  The master and linked entities all update appropriately.  However, when the service...

View Article

Self Host Web API Service Fails When Called

<div class="votingouterbox"> <div class="voting">I have an application that calls Web APIs on my server to perform various lookup and update functions. On the server side, I use...

View Article


No routing convention was found to select an action for the OData path with...

In my ASP.Net Web API project, I have the following entities- Customer, Warehouse, SKU and Vendors. A customer can have multiple Warehouses, SKUs and Vendors. I have get methods in CustomersController...

View Article

Project Template including all needed security feartures

I have been trying to get all the common, needed security features implemented in my Web Api project and even though I was finally able to do it, it was not an easy task and it looks like such an...

View Article

ASP WebSite & API

Hi,Is it possible to combine ASP.NET Web API and ASP.NET WebSite into one project? Can they share same config file?

View Article
Browsing all 4850 articles
Browse latest View live


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