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

Image may be NSFW.
Clik here to view.

HTTP/1.1 500 Internal Server Error in Web API Get

<div class="post-text" itemprop="text">We created a .Net MVC Web API and published them in to the file systems. In the IIS of DEV server(same server where application was created) I created a new...

View Article


What is Owin and katna

please any one can discuss with example what is owin and what it does ?in what kind of scenario people use owin ?looking for some example just to understand the usage or objective of owin.what is katna...

View Article


How to start and stop web api when self host in windows service

windows service has start and stop function. from win service start function we like to start web api like this waystring baseAddress = "http://localhost:9000/"; // Start OWIN host using...

View Article

Calling Web API, string is null?

I'm calling my Web API from a C# client like this:            using (var client = new System.Net.Http.HttpClient())            {                // HTTP POST                client.BaseAddress = new...

View Article

Image may be NSFW.
Clik here to view.

ORA- 12154: TNS:could not resolve the connect identifier specified ASP.NET...

I am trying to host the Web API that was published in the DEV server in to the TEST server.I used the published method as File System in DEV and copied those folder in to Test server and tried to...

View Article


WepApiConfig : Multiple actions were found that match the request

My controller ChartDataController has two methods GetTotals, GetExeuctions,[ActionName("Totals")] [HttpGet] public int GetTotals(string UserID) ....[ActionName("Executions")] [HttpGet] public int...

View Article

POST from client is not working

Hi,I'm trying to POST to my WebAPI server unsuccessfully. What is wrong with this code? I've tested this Web API using Postman am,d it's ok. Here is my code. // Send Fire Event to PMK HttpClient client...

View Article

Posting any type of request object as parameter to the Web API

Hi All,I have a web API which takes a class object as an input parameter and posts it to the WCF service operation contract. The WCF service is designed such that it takes any type of request and does...

View Article


Web API2 session time out for 30 minutes

I have a MVC webapi2 projects in which i am using Bearer authentication token. while login i am storing the token in session storage in client side see code belowsessionStorage.setItem("tokenKey",...

View Article


VS2015 RC WEB API Autentication token

Hello,I have tried to follower this ropic for creating my WEB API Autentication Tokenhttp://bitoftech.net/2014/09/24/decouple-owin-authorization-server-resource-server-oauth-2-0-web-api/but It doesn't...

View Article

How to use task with web api

my every action should return task to make each action asynchronous. so tell me how to do it and also tell me when we call web api action by http client then do i need to add any special code to deal...

View Article

How create asp.net web api on web developer 2008/2010 or sharpdevelop

I have no opportunity to use full visual studio 2010, 2012 or later for simple use of web api. So I would like to use it in other way.So I would like to know does web developer 2008 or 2010 support web...

View Article

Missing link

Updated webapi project, the following was added to the web.config but the link it added is dead:<!-- For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.The...

View Article


Best Method to Secure Web Api

Hello Everyone and thanks for your help in advance.  I am in the early stages of developing a WebApi and need some input on the optimal way to design security for this project.  The majority of the api...

View Article

WebAPI : Returning HttpResponseException

What is the proper way to return HttpResponseException?catch (Exception ex) { throw new HttpResponseException(new System.Net.Http.HttpResponseMessage() { Content = new...

View Article


Http Client - Task was canceled

Hello everyone,I have a strange problem that I cannot resolve, so I was hoping someone could perhaps point me in the right direction.I have a function that I use to GET some data from a WEB API...

View Article

Web API Basic Authentication returns 401

I've build a web api service with basic authentication and using a global DelegatingHandler implementation which I hook up to the web API GlobalConfiguration, in order to extract the username:password...

View Article


Web Api call

Hello,I am trying to do a kind of highscore web api and in my controller i have the following method, and class named HighScore.using System; using System.Collections.Generic; using System.Linq; using...

View Article

How to use Return response with TASK in my web api and repository classes

here i like to discuss my codesee web api code [RoutePrefix("api/customer")] public class CustomerController : ApiController { static readonly ICustomerRepository repository = new CustomerRepository();...

View Article

Using web api I want to upload image from mobile and down load from server

Hello Friends,I want to upload image from mobile to server , and download image from server to mobile (Android phone) .   I am using restful api service . can any one me out on this . I have trying on...

View Article
Browsing all 4850 articles
Browse latest View live


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