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

WEB API 2 project - OWIN GetUserManager returning null => Identity 2

I am trying to access the ApplicationUserManager  and the ApplicationRoleManager from the OWIN context. Both these methods are returning...

View Article


Web api 2.1 does not work with a chunked request

I have a application running correctly on web api 2.0 platform.When I upgrade web api to version 2.1, it does not work.The client request code such as :HttpWebRequest hRqst =...

View Article


Call specific method in Web api

in the valuesController.cspublic string GetServers() {return "asd";}public string GetData(){return "dasd";}but when i call ..api/values/ i am getting "Multiple actions were found that match the...

View Article

[URL] : Http 400 + URL

Hello,When I try to call my service with this URL with Fiddler and...

View Article

HTTP 406 when mixing WebAPI RouteTable.Routes.MapHttpRoute and...

Hi, I found a strange behavior when I added an ODATA WebAPI controller to my working WebAPI configuration.With the below configuration I have two WebAPI Controllers that expose their functionality...

View Article


Consuming Web Api uring Http Client with xml option

I have created a Simple Web Api controller action that accepts Post method and takes a poco object as parameter.[HttpPost, Route("getvalue")] public async Task<IHttpActionResult>...

View Article

Throw validation exception in setter of class property

How do I throw a validation exception inside the setter of a property and have the exception caught by the ModelState object?

View Article

How to use JWT bearer token with OAuth in MVC?

I'm trying to figure out how to use a JWT bearer token instead of the default token format when using OAuth 2.0.I'm able to get the standard token working, and I can see my service API calls get hit,...

View Article


Regex for range of numbers 1-11?

Does anyone have an example of a regex that excepts a range of numbers 1-11?

View Article


External rest endpoint with WEBAPI & MVC

I realize the following does not follow the well-established scheme for RESTful url scheme design. But I have to live with what has been established before me.How do you retrieve JSON from an external...

View Article

Send and receive relational data

Hi @ all.I've a complex problem.I've a small Data Model. Head informations like User, Name and so on and a list of values.The head informations are collected from an Html form. The list of values are...

View Article

Geolocator app giving me fits

Split off from http://forums.asp.net/t/2013257.aspx?GeoIP+app+works+in+development+but+not+when+deployed+to+IIS+8I have a semi-related problem but this is with the firewall I think.  When I run the...

View Article

Image may be NSFW.
Clik here to view.

HttpDelete - Method Not Allowed - Only Get,Post and Put.

Dear friends,First of all, I'm sorry if this question has already been solved and I could not find it in the forums.I'm having a strange problem in my WebApi2. I have a fully functioning Get, Post and...

View Article


Differentiate Route Based On QueryString in Web API

I have an ApiController where I have 2 actions:public IEnumerable<Users> GetUsers(){} public IHttpActionResult UsersPagination(int startindex = 0, int size = 5, string sortby = "Username", string...

View Article

IAuthenticationFilter and IAuthorizationFilter

What is ChallengeAsync method?Implementing AuthenticationFilter and Authorization filter as per this post in WEB API...

View Article


How to add OData v4 Endpoint (using asp.net web API 2.2) to MVC client...

Hi,I am new to web api. I have created an OData v4 endpoint using asp.net web API 2.2 using VS 2013. I have followed this article...

View Article

Format response XML

I have a webapi which gets it's data from another server. Sometimes the datetime values get serialized as 1899-12-30T00:00:00 when this happens I want to format the value and return null. It is easy to...

View Article


How to create a JSON restful webservice in ASP.NET Web Api

Hi, It seems Json get every dev talking. I see example on how to consume json using Mobile ad tablet(Win8).  But I have no idea how Json web service is created.Can some1 provide me some reference links...

View Article

Http 404 with Facebook Authentication and Web API

Hi,I'm using Web Api 2 to make an external Login with Facebbok.Every think is working fin in development server (both local and ci server). But the production is not handling this Url and redirect me...

View Article

Customing Validation Summary

Dear Experts,Suppose i have 10 validator controls , (3 diferent type .RequiredFieldValidator,CustomValidator and RegularExpression) and one validator summary control  on page. When validation fires, it...

View Article
Browsing all 4850 articles
Browse latest View live


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